note 75664 deleted from ref.mail by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 20:07:46 +0000 |
| Subject: | note 75664 deleted from ref.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155337@lists.php.net to get a copy of this message | ||
Note Submitter: mail [ at ] wietse [ dot ] com
----
[ THIS NOTE IS FOR MY POST ABOUT THE SEND_MAIL() FUNCTION ]
In addition to the already posted PHP Mail-functions, I decided there wasn't one that fitted
all my needs, so I wrote my own. I have tested it, and I use it at a Windows 2000 server, but I
don't think it won't function at *nix.
Usage:
send_mail(string $MailTo, string $SenderName, string $SenderMail, string $Subject, string-or-path
$Mailcontent [, string $Attachment ] [, string $Servername ] [, string $nohtml])
The function returns true or false, depending on if the E-mail has been sent succesfully.
Note 1: $Mailcontent can be a string OR a path to a file.
Note 2: Function works without attachment too
Note 3: Function works to Hotmail
Note 4: Function needs PHP module [ mime_magic ] to detect attachment-type!