note 51324 added to function.imap-mail

From: Date: Sun, 27 Mar 2005 13:53:21 +0000
Subject: note 51324 added to function.imap-mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-87057@lists.php.net to get a copy of this message
It appears that there is no difference between imap_mail() and mail() as neither require an open imap stream to function as long as your php-ini is set up correctly. As you will notice there is no IMAP stream identifier in the arguement list for imap_mail($to, $subject, $msg). I'm guessing this is a way to bypass using mail(), or sendmail() and not worrying which OS you are on. ex: // no need to open stream $mb = imap_open("{pop-server.???:110/pop3}INBOX", "<username>","<password>"); imap_mail($to, $subject, $msg); // no need to close stream imap_close($mb); ---- Manual Page -- http://www.php.net/manual/en/function.imap-mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51324 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51324&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51324&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51324&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51324&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51324&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51324&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87057) next »