> From: peter.e.lind@xxxxxxxxx > Date: Mon, 12 Apr 2010 13:09:48 +0200 > Subject: Re: Mail Function Problem > To: kdk@xxxxxxxxxx > CC: ajwei@xxxxxxxxxxxxx; php-general@xxxxxxxxxxxxx > > On 12 April 2010 05:22, Kevin Kinsey <kdk@xxxxxxxxxx> wrote: > > > > Thanks to the worldwide brotherhood of crooks known as spammers, > > sending e-mail these days isn't nearly as easy as PHP makes it look. > > You might wanna look into an "errors-to" header to help debug any > > problems with sender authorization, bad ports, etc. > > > > Along these lines: there's a chance that sending a mail from yourself, > to yourself, through PHP like this, will cause mail servers to think > it's spam. For testing email sending, normal scenarios are better > (i.e. send an email to another account). > > Regards > Peter > > -- > <hype> > WWW: http://plphp.dk / http://plind.dk > LinkedIn: http://www.linkedin.com/in/plind > Flickr: http://www.flickr.com/photos/fake51 > BeWelcome: Fake51 > Couchsurfing: Fake51 > </hype> I have changed my $to to $email, so it is not the same email address as the $from. I also added Kevin's lines with the parameters that April suggested, and it looks like I still get Sending Mail failed. Which function should I use to find out why my sending mail failed? Thanks for your help. Alice _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5