Re: email question
| From: | Brent Baisley | Date: | Thu, 03 Mar 2005 14:18:41 +0000 |
| Subject: | Re: email question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38752@lists.php.net to get a copy of this message | ||
First, you don't use POP3 for sending emails, you use SMTP. POP3 is a retrieval mechanism, like IMAP. You actually don't need POP3 or IMAP to send and receive emails, you need it to read them with a typical mail client (i.e. Outlook). Postfix, Sendmail, etc., don't support POP3 and IMAP directly, you need to use another product like Cyrus, Courier or Qpopper to add POP3 and IMAP.
So, that said, PHP has built-in commands for sending email.
http://us2.php.net/manual/en/ref.mail.php
http://us2.php.net/manual/en/function.mail.php
If you read the documentation, you'll notice that there is no option for authenticating. Which means you would need to setup your mail server to allow relaying from your PHP machine. Don't take open relaying lightly, if you do it wrong, you'll be in the spam business. So if you don't know how to setup your mail server for restricted open relaying, you should look at another PHP package (i.e. PEAR) that will authenticate when sending emails.
On Mar 2, 2005, at 3:54 AM, Balwant Singh wrote:
can anybody guide me how i can get subscribed to PHP-DEV forum. excuse me, i am asking one off the list question. i want to use PHP to send email. my webserver has linux OS but we are using POP3 for sending emails (on Windows OS). May pls. inform all the setting needs to be done for sending an email. with best wishes balwant -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577