Hi !! When I try send a mail using mail function, the next message appears:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing
And yes, I put From address, but ....
Please, can someone help me?
Help !! I don't know why this error when I use mail function
Moderator: General Moderators
Re: Help !! I don't know why this error when I use mail func
Open up your php.ini and search for sendmail_from. Set it to something and try again.jvizuete wrote: Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing
Sometimes just setting the From field doesn't work, you need to set an additional -f flag:
Code: Select all
mail($to_address,$subject,$message,$from_address,"-fmyemailaddress@domain.ca");Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
This happened to me while my DNS was propagating. After it resolved and it was a valid domain name and nameservers, my mail functions no longer need the -f thingermabob.pickle wrote:Sometimes just setting the From field doesn't work, you need to set an additional -f flag:Code: Select all
mail($to_address,$subject,$message,$from_address,"-fmyemailaddress@domain.ca");
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.