![]() |
mail script sends mail when testing locally but not live
hi,
When i was testing my site, the send mail code was working fine, now I have uploaded it to my live server, I'm not recieving any email and there are no errors?! here is the code: PHP Code:
|
Does it say the message is sent? If so, the mail is queued and this is an issue with your smtp server, not a PHP one.
If it said it failed, than you likely haven't configured the smtp options in the php.ini. Either configure them there, or provide the configuration options as the fifth argument in the mail call. |
it says Message sent!
|
Then you can take a dive into the sendmail logs on the machine. This isn't directly a PHP issue, so you'll need to find out what's wrong with the sendmail.
|
Just adding an option to the one Fou-Lu has stated,
Did you check your spam folder? |
Also, I've known PHP to pass mail to sendmail but sendmail doesn't actually send it due to the 4pth parameter being missing in the call to mail().
@jarv what this means is that you need to set an additional 'from' field in the 4th parameter. PHP.net will show you how to do this. As the others have said though, you also need to check your logs if you have access (not everyone does) and any spam folders etc. |
| All times are GMT +1. The time now is 12:53 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.