|
Posted by Manuel Lemos on 09/27/83 11:26
Hello,
on 09/12/2005 06:48 PM Chris W. Parker said the following:
>> If you use
>> the mail() function, it uses whatever is installed in your machine
>> because by default it calls the sendmail program.
>
> I am aware of that but the problem I'm having is inconsistent mailings.
> For example, an email is supposed to be sent to me everytime someone
> creates a new account on our website but I only get about 1 out of 5 of
> these emails and I have no idea why. I was trying to take PHP out of the
> loop with regards to sending email so that I could rule out PHP as being
> the problem.
If you use PHP mail() function it just calls the sendmail wrapper. If
you loose messages, you should check the logs of the installed MTA. Your
problem seems to be misconfiguration like you are not setting a valid
return path address or your machine does not have a reverse record for
its IP in the DNS.
For certain kinds of problems, I usually recommend this class that comes
with a wrapper function named smtp_mail(). It works like the mail()
function but injects the message via the SMTP server. However, I am not
sure if it will work any better if your problems are one of those that I
suggested above. In any case, you can try it:
http://www.phpclasses.org/mimemessage
You also would need this:
http://www.phpclasses.org/smtpclass
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
[Back to original message]
|