Re: need some ideas here...
| From: | Christian Dechery | Date: | Wed, 16 May 2001 13:45:26 +0000 |
| Subject: | Re: need some ideas here... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53037@lists.php.net to get a copy of this message | ||
At 09:27 16/5/2001 +0100, James Holloway wrote:
Hi Christian, I have an account with f2s.com that I use for sampling scripts with - I set up a mailform yesterday after reading this, using mail() to send the email to myself. It got here - albeit 6am today (I sent it yesterday lunchtime).... Perhaps you're using the mail() function incorrectly?Well.. maybe something is wrong with my account or something cuz I'm using it fine... I've tried 3 different ways to send mail that works everywhere else.... I just put up this little script to send a sample mail... $to="christian@webstyle.com.br"; $from="MySelf <test@nowhere.com>"; $subject="just testing"; $body="<h1>Hello! Just testing here....</h1>"; $headers="Content-type: text/html\nFrom: ".$from; $rs=mail($to,$subject,$body,$headers); $result=($rs)?"successfull.":"failed."; echo "Mail to ".$to.": ".$result; guess what was the output? "Mail to christian@webstyle.com.br: failed." what's wrong with the script above?