Jump to content

Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "[email protected]" port 26, verify yo


xanie

Recommended Posts

$message= "$first <br />
  $last <br />
  $pass

  <p>Your email address will serve as your username.</p>
  <p>Thank You!</p>";

echo"$message";

$send_to= $email;
$subject= "Register";
$headers .= 'From: '.$email.'' . "\r\n";
$headers .= "Reply-To: [email][email protected][/email]\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 8bit;\r\n\r\n";
$headers .= stripslashes($input);
$headers .= "\r\n";

mail($email,$subject,$message,$headers);

 

here is my php.ini settings

[mail function]

; For Win32 only.

; http://php.net/smtp

SMTP = [email protected]

; http://php.net/smtp-port

smtp_port = 26

 

; For Win32 only.

; http://php.net/sendmail-from

sendmail_from = [email protected]

Does the server require authentication? Can you connect to it? Are there any error messages? Have you tried troubleshooting this on your own? Tried running some search terms through Google?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.