Re: Re: Sending Mail with PHP.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can anyone tell me how to configure the SMTP server in the .ini file? For instance, does it take an IP address, or what? We are running WindowsNT 4 and our SMTP line is set to 'localhost' which I am almost sure is incorrect.

Any help would be great!

Thanks!


On Aug 31, 2003, at 10:53 PM, Manuel Lemos wrote:


Hello,

On 08/31/2003 03:26 PM, Trystano@aol.com wrote:
Hi all, I've been using PHP over the last year now, and have become quite capable with the language, but, there is one function/feature that I have yet to try/use, and that is the mail() function.
I am gonna start to learn it to night, but was wondering if there was any adjustments that were needed within the php.ini file before I actually start writing up the code.
The function seems staright forward enough to execute, but are there any other things i should know that is required to send email via PHP scripts.
I am using AOL to send and recieve emails.

You need to configure the SMTP server and the sendmail_from address in the php.ini file. If your SMTP server requires authentication you may get errors and it does not deliver messages.


The mail() function is mostly to send simple messages. To send more complex messages (HTML, images, attachments, etc..) you may want to try this class that makes your task easier and compliant with the e-mail standards. The class also comes with a sub-class specialized in deliverying via SMTP with authentication support if necessary:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux