Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts
On Tue, May 5, 2009 at 1:20 PM, revDAVE c...@hosting4days.com wrote: [Newbie] Hi folks, I'm trying to set up some basic php send mail scripts - and I'm curious of the best way to go... I checked these basics out: http://us.php.net/manual/en/function.mail.php And got this code below going, but I'll bet I need a bit more - like adding authentication - smtp - port - sending user / pass etc. Any hints how to get this to the next level? Thanks in advance - dave ?php $to = 'nob...@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmas...@example.com' . \r\n . 'Reply-To: webmas...@example.com' . \r\n; mail($to, $subject, $message, $headers); ? -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php use phpmailer or pear mailer -- Bastien Cat, the other other white meat
Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts
On 5/5/09 1:41 PM, Bastien Koert phps...@gmail.com wrote: On Tue, May 5, 2009 at 1:20 PM, revDAVE c...@hosting4days.com wrote: And got this code below going, but I'll bet I need a bit more - like adding authentication - smtp - port - sending user / pass etc. Any hints how to get this to the next level? use phpmailer or pear mailer agree. php's interface is a bit basic. and if you compile php with openssl then you can also use pear mail with smtp over ssl. http://pear.php.net/manual/en/package.mail.mail.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts
On 5/5/2009 10:41 AM, Bastien Koert phps...@gmail.com wrote: Thanks Bastien - I'll check them out... use phpmailer or pear mailer On 5/5/2009 10:59 AM, Tom Worster f...@thefsb.org wrote: use phpmailer or pear mailer agree. php's interface is a bit basic. and if you compile php with openssl then you can also use pear mail with smtp over ssl. http://pear.php.net/manual/en/package.mail.mail.php Thanks Tom, I'm working with php 5 so is the 1.2.0b1 (beta) safe to use or should I go with the older stable 1.1.14? - - - - - From: Mail Location: http://pear.php.net/package/Mail - - - - - Info: Current ReleaseĀ» Bug Summary 1.2.0b1 (beta) was released on 2008-07-02 (Changelog) 1.1.14 (stable) was released on 2006-10-11 (Changelog) -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts
On 5/5/09 2:07 PM, revDAVE c...@hosting4days.com wrote: I'm working with php 5 so is the 1.2.0b1 (beta) safe to use or should I go with the older stable 1.1.14? i don't know if the beta is safe but i always use the most recent stable release of whatever-it-may-be unless i have a compelling reason to use a beta or something older. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie - Setting Up Some Basic Sendmail Scripts
And got this code below going, but I'll bet I need a bit more - like adding authentication - smtp - port - sending user / pass etc. Any hints how to get this to the next level? Hi Dave, As others have said, it is convenient to use a library/framework to send mails from your PHP script via SMTP with authentication. You might also want to check out Zend_Mail component of Zend Framework. http://framework.zend.com/ -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php