note 75664 added to ref.mail
| From: | Date: | Mon, 11 Jun 2007 07:35:39 +0000 | |
| Subject: | note 75664 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127378@lists.php.net to get a copy of this message | ||
[ 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!
----
Server IP: 83.137.20.120
Probable Submitter: 85.146.90.180
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- https://master.php.net/note/edit/75664
Del: integrated -- https://master.php.net/note/delete/75664/integrated
Del: useless -- https://master.php.net/note/delete/75664/useless
Del: bad code -- https://master.php.net/note/delete/75664/bad+code
Del: spam -- https://master.php.net/note/delete/75664/spam
Del: non-english -- https://master.php.net/note/delete/75664/non-english
Del: in docs -- https://master.php.net/note/delete/75664/in+docs
Del: other reasons-- https://master.php.net/note/delete/75664
Reject -- https://master.php.net/note/reject/75664
Search -- https://master.php.net/manage/user-notes.php