note 22126 added to function.mail
| From: | fedebaseggio at hotmail dot com | Date: | Fri, 07 Jun 2002 14:34:11 +0000 |
| Subject: | note 22126 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31564@lists.php.net to get a copy of this message | ||
i've noticed that sometimes, when you're trying to get a listo of email adresses from
somewhere and put them into the mail() function they mess up making a part of the headers become a
part of the text, and so headers dont work right. maybe in the list there are some unwanted chars
wich the trim function seems to clear. try:
mail( trim($adress), etc, etc);
after contributing to the php knowdlege i'd like you answer to this question: how can i send a
mail with an attached file???? i just can't bealive no one can answer to my question
anywhere... thanks
--
http://www.php.net/manual/en/function.mail.php
http://master.php.net/manage/user-notes.php?action=edit+22126
http://master.php.net/manage/user-notes.php?action=delete+22126
http://master.php.net/manage/user-notes.php?action=reject+22126