note 51324 deleted from function.imap-mail by bjori

From: Date: Sun, 23 Apr 2006 16:11:01 +0000
Subject: note 51324 deleted from function.imap-mail by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109168@lists.php.net to get a copy of this message
Note Submitter: npeelman at cfl dot rr dot com ---- 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);

« previous php.notes (#109168) next »