mail function and smtp
Posted 14 July 2006 - 07:44 PM
I'm trying to send the e-mails through my AOL e-mail account for the time being until i complete my site and host it somewhere else. I changed php.ini correctly, but then i realised that AOL requires authentication to send the e-mails. Apparently the mail function doesn't support this....(correct me if i'm wrong).
Can anyone suggest a possible solution for me? It doesn't matter what it is as long as the e-mails send
Posted 14 July 2006 - 09:13 PM
I would recomend contacting Aohell and seeing if the offer any kind of Smart Host support for out going mail.
I am not sure if you can send mail with port 25 being blocked or not. If it is not blocked then you should look into a mail server. I use Mecury Mail Server. There are many of them out there and I am sure most are better the mecury.
If you do decide to use mecury. Post back here and I will assit you with setting it up.
Posted 14 July 2006 - 09:23 PM
"Warning: mail() [function.mail]: SMTP server response: 500 please set from & to first... in C:\Program Files\Apache Group\Apache2\htdocs\register.php on line 83
Your membership information has been mailed to your email address! Please check it and follow the directions! "
Here is lines 81 & 82:
mail($email, $subject, $message, "From: Tandem<Tandem@localhost>\n");
Any idea why this is happening? And would you reccommend mercury instead of this?
Posted 14 July 2006 - 09:30 PM
$headers = "From: firstname.lastname@example.org\r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n"; mail($to, $subject, $message, $headers)or die('something went wrong');
Posted 14 July 2006 - 09:45 PM
Warning: mail() [function.mail]: SMTP server response: 500 please set from & to first... in C:\Program Files\Apache Group....etc.
Any suggestions? :/
Posted 14 July 2006 - 09:53 PM
mail($headers, $to, $subject, $message)or die('something went wrong');
Now I may be way off base with that one but give it a go any way.
Posted 14 July 2006 - 10:27 PM
Surely thats a problem with the server?
I'm not really sure, but i've decided that i don't like PostCast and i'm uninstalling it anyway.
I'd appreciate it if you could talk me through setting up Mercury
Posted 15 July 2006 - 01:44 PM
Also, if you are using a router, you will need to enable Port Range Forwarding to the ip address of the box that the mail server will reside. You can find your ip by going to commad prompt with the following command. ipconfig.
The out put should look like the
Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : xxx.xxx.xx.xxx Subnet Mask . . . . . . . . . . . : xxx.xxx.xxx.x Default Gateway . . . . . . . . . : xxx.xxx.xx.x
*note: only pertinent if using a router
After you do this go to the link above and go throught the port scan. This will bring up a list of your availiable ports
If your port 25 is not blocked the message from myserver.org should look like this.
SMTP Port 25 Server detected and it is publicly accessible. Your ISP is not blocking port 25.
If you follow the instructions above, reguarding opening port 25 and you still get this message
SMTP Port 25 Unable to detect server on this portor something similar error then ether you did not properly open port 25 or your Isp has blocked it(which is the most likely)
If this is the case then you will need to contact your host about Smart Host support or unblocking port 25.
Also if you are unwilling or unable to get port 25 unblocked then Mecury Mail server is not for you.
I am not sure but I think that you can send mail from another port but I think that you have to have some kind of Smart Host support. If any one else knows if this can be done, please post the answer. This would be good for future refference.
Post back here if you are able to open port 25 and I will continue guiding you through the setup process.
Also, if anyone knows of any better free mail server, please post or pm me.
Thanks and good luck,
Posted 15 July 2006 - 10:11 PM
The aol smtp server requires AUTH and i don't know how to use this. When i send the mails they are at least recieved by the server even though they cannot be sent to the e-mail address, so i should be able to successfuly build and test my site, which is all i'm looking to do atm. Thanks for your help amyway Tom!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users