Forum Moderators: coopster

Message Too Old, No Replies

PHP mail() test function.

Anybody have one?

         

Polinelio

1:38 pm on Jun 11, 2006 (gmt 0)

10+ Year Member



I think I have a problem of some sort on my server because my friend isn't receiving mail. But it was sending mail the other day.

I was wondering if anybody has a test function, like a wrapper. Which will try to send mail to an address, and if it fails for some reason will output what the reason is. Maybe someone has needed this before and has a function like this lieing around.

Thanks.

webdudek

4:01 pm on Jun 11, 2006 (gmt 0)

10+ Year Member



I'm using PHPMailer, it is an open source "Full featured email transfer class for PHP"
Look it up in Google, it works great for me.
Their home page has a very clear example.

I had some problems using mail() because of configuration restrictions from my service provider.
They said they did it to fight spam...

dreamcatcher

4:53 pm on Jun 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It may that your server is restricting the use of the PHP mail function to domain only e-mail addresses. If this is the case, the solution provided by webdudek will work fine.

dc

Polinelio

5:20 pm on Jun 11, 2006 (gmt 0)

10+ Year Member



Thanks guys.