Wednesday, 18 April 2007
Solve Your Problem of Sending Mail with PHP Mail Function |
| |
|
| |
Sometimes e-mails never reach their intended destination. A post in Dotvoid.com finds out why? It says, the trouble maybe caused while sending mails using the built in mail () function in PHP.
The author uses a short cut of applying a PHP class that allows him to send e-mails using a remote Simple Mail Transfer Protocol (SMTP) Server through an account on that Server.
The author further says, his friend has investigated the same problem for his client. He found out that the problem seems to be that PHP use the ini directive sendmail_from to set the from email address in the SMTP. If this is not correctly set, or if it does not match the from header in the email headers, the e-mail is caught by spam protection software.
With the help of a code, the author concocts a solution to set the directive during execution. He says, that the solution was already known but he was confused with the operating System, which was Windows. He got caught in the dilemma as there are differences in the implementation between the Windows and Linux version of mail(). Still he is not sure whether the problem exists in both the platforms or not.
|
| |
|
Read the Post
|
| |
|
|
| |
|
|
| |
|