Computing.Net > Forums > Web Development > PHP mail() vs PHP PEAR:mail

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP mail() vs PHP PEAR:mail

Reply to Message Icon

Name: angelcool
Date: November 19, 2007 at 20:05:08 Pacific
OS: Linux
CPU/Ram: 3 Ghz
Product: Intel
Comment:

Hello,

I want to create a script to send an e-mail to a given address using PHP.
I have been reading I can use the PHP's built in mail() function, but in order to do that I have to specify the sendmail path (or whatever SMTP in used)

a) Does that mean I have to be running my MTA in the same machine where I have my LAMP?

I have also read that another solution to send mail is using the PHP PEAR's mail(http://pear.php.net/package/Mail)

b)If I use the latter, will I be able to use a remote MTA rather than a local one?

Any comments, suggestions,solutions, answers will be greatly apreciated.




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP mail() vs PHP PEAR:mail

cant send mail from localhost www.computing.net/answers/webdevel/cant-send-mail-from-localhost/3788.html

Is there a php / mySQL editor? www.computing.net/answers/webdevel/is-there-a-php-mysql-editor/3335.html

php/mysql help www.computing.net/answers/webdevel/phpmysql-help/3524.html