Newbie - Setting Up Some Basic Sendmail Scripts

From: Date: Tue, 05 May 2009 17:20:09 +0000
Subject: Newbie - Setting Up Some Basic Sendmail Scripts
Groups: php.general 
Request: Send a blank email to php-general+get-292291@lists.php.net to get a copy of this message
[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      = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" .     'Reply-To: webmaster@example.com' . "\r\n"; mail($to, $subject, $message, $headers); ?> -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09]

« previous php.general (#292291) next »