xanie Posted January 16, 2013 Share Posted January 16, 2013 $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]roxanie.alcances@yahoo.com[/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 = mail@genasiabiotech.com ; http://php.net/smtp-port smtp_port = 26 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = mail@genasiabiotech.com Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/ Share on other sites More sharing options...
requinix Posted January 16, 2013 Share Posted January 16, 2013 SMTP = mail@genasiabiotech.com That doesn't look like an hostname to me. Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/#findComment-1406020 Share on other sites More sharing options...
xanie Posted January 16, 2013 Author Share Posted January 16, 2013 i change the smtp into "localhost" together with its smtp_port.. still it didn't work. Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/#findComment-1406029 Share on other sites More sharing options...
requinix Posted January 16, 2013 Share Posted January 16, 2013 Do you have a mailserver running on your computer? If not do you know of a mailserver you can connect to? Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/#findComment-1406032 Share on other sites More sharing options...
xanie Posted January 16, 2013 Author Share Posted January 16, 2013 yes, i do have.. it's mail.genasiabiotech.com, i've already put this in my smtp still, it didn't work out Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/#findComment-1406034 Share on other sites More sharing options...
requinix Posted January 16, 2013 Share Posted January 16, 2013 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? Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/#findComment-1406038 Share on other sites More sharing options...
tommhans Posted January 16, 2013 Share Posted January 16, 2013 i had the same prolbem but i used this: http://glob.com.au/sendmail/ If you follow those instructions you should be able to send mail Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/#findComment-1406052 Share on other sites More sharing options...
xanie Posted January 17, 2013 Author Share Posted January 17, 2013 thanks for the suggestion guys.. I've already made it. Quote Link to comment https://forums.phpfreaks.com/topic/273218-warning-mail-functionmail-failed-to-connect-to-mailserver-at-quotmailgenasiabiotechcomquot-port-26-verify-yo/#findComment-1406269 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.