Sending mail from your website on our Windows shared services requires pointing your code at the dedicated SMTP host mailer.anaxanet.com. No authentication is needed. We have disabled our primary mail server systems from accepting mail from the web servers themselves; these dedicated servers handle all website-generated email and give us tighter control over volume, security, and deliverability.

The FROM address must exactly match one of your hosted domains. Attempting to spoof a different domain will fail. The PHP mail() function is disabled for security; even if enabled it produces poor deliverability. Use a proper SMTP library instead. The samples below are ready to adapt and have been tested on our platform.

#Prerequisites

Your site must be hosted on our Windows shared services. No additional server-side configuration is required for basic SMTP access. Decide which port fits your stack: 25 for plain, 465 for implicit SSL, or 587 for STARTTLS. For PHP you will need to deploy a library such as PHPMailer. Classic ASP sites using Persits Mailer must run in a 32-bit application pool.

#SMTP Server Details

Only one host is provided for web-generated mail. It accepts connections exclusively from servers inside our hosting network. External hosts, local development machines, and desktop clients such as Outlook cannot use it.

  • Host: mailer.anaxanet.com (no authentication required)
  • Ports: 25, 465 (SSL), 587 (STARTTLS)

Set the port explicitly in your code when using 465 or 587. The default for most libraries is port 25. Always specify a FROM address that belongs to your own domain or the send will be rejected.

#PHP mail() Function

The built-in PHP mail method has been disabled on our servers for security purposes. We recommend against using it even on platforms where it remains available. Direct SMTP libraries give you control over headers, authentication, and encoding, resulting in significantly better inbox placement. PHPMailer and Swift Mailer are both reliable choices and require only a few lines of configuration to point at our SMTP host.

#Code Samples

#ASP.NET (C#)

Use System.Net.Mail. The example below sends a basic message. Add try/catch blocks and consider setting Port and EnableSsl properties when using 587 or 465.

csharp
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("mailer.anaxanet.com");
mail.From = new MailAddress("from@yourdomain");
mail.To.Add("to@theirdomain");
mail.Subject = "Test Mail";
mail.Body = "This is for testing SMTP mail"; SmtpServer.Send(mail);

#ASP.NET (VB)

VB.NET version of the same System.Net.Mail pattern. Remember to set the SmtpClient.Port and EnableSsl properties when moving away from port 25.

vbnet
Dim SmtpServer As New SmtpClient("mailer.anaxanet.com")
Dim mail As New MailMessage() mail = New MailMessage()
mail.From = New MailAddress("from@yourdomain")
mail.To.Add("to@yourdomain")
mail.Subject = "Test Mail"
mail.Body = "This is for testing SMTP mail" SmtpServer.Send(mail)

#Classic ASP with CDOSYS

CDOSYS remains functional on our Windows servers. The configuration below uses port 25. Adjust the smtpserverport field for SSL or STARTTLS.

vbscript
<% Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mailer.anaxanet.com"
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
ObjSendMail.Configuration.Fields.Update ObjSendMail.To = "to@theirdomain"
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = "from@yourdomain" ObjSendMail.TextBody = "this is the body"
ObjSendMail.Send Set ObjSendMail = Nothing
%>

#Classic ASP with Persits Mailer

Persits.MailSender is installed on our servers. It requires the application pool to be set to 32-bit mode in your site settings. The component supports attachments and HTML bodies; consult its documentation for advanced options.

vbscript
<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "mailer.anaxanet.com"
Mail.Port = 25
Mail.From = "from@yourdomain"
Mail.FromName = "Your Name"
' Optional Mail.AddAddress "to@theirdomain", "Their Name"
Mail.Subject = "Message Subject"
Mail.Body = "This is a message sent through Persits Mailer"
Mail.Send Set Mail = Nothing
%>

#PHP with PHPMailer

PHPMailer is the recommended library for PHP sites. The example uses port 587 with STARTTLS. Upload the PHPMailer files to your site, update the from and to addresses, and add exception handling for production use.

php
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = 'mailer.anaxanet.com';
$mail->Port = 587;
$mail->SMTPAutoTLS = true;
$mail->setFrom('from@yourdomain', 'Your Name');
$mail->addAddress('to@theirdomain', 'Their Name');
$mail->Subject = 'First PHPMailer Message';
$mail->Body = 'Hi! This is my first e-mail sent through PHPMailer.';
if(!$mail->send())
{
    echo 'Message was not sent.';
    echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
    echo 'Message has been sent.';
}

#Troubleshooting and Best Practices

Most delivery failures trace back to an incorrect FROM domain or attempting to use the SMTP server from outside our network. Enable detailed error logging in your chosen library so you can capture exact SMTP responses. For HTML mail or attachments, follow the library documentation; the core connection settings remain identical.

  • FROM address must match your hosted domain exactly
  • SMTP host is restricted to our hosting network only
  • Use port 587 with STARTTLS for best compatibility
  • Set application pool to 32-bit when using Persits Mailer

Implement these patterns in your contact forms, order notifications, and password-reset flows. Test end-to-end on the live server, then monitor your mailbox reputation. For additional scenarios such as bulk mail or advanced templating, extend the same SMTP configuration with the features of your chosen library.