mails from php

From: Date: Wed, 21 Jun 2000 06:39:35 +0000
Subject: mails from php
Groups: php.general 
Request: Send a blank email to php-general+get-2447@lists.php.net to get a copy of this message
hi, i use a linux-apache-php for my webservice. and ms-exchange as mailserver. i don't have sendmail/qmail installed in my webserver and don't intend to do so!! from php script, how do i send a mail to say ram@mailtest.com? can anybody help me on this? preferably with eg. this is part of my script: <? $str_subject = "This was Posted in the Web Site"; // Set Message Body $str_message = "Name:" . $saluation . $name . "\n"; $str_message = $str_message . "Date:" . strftime("%Y-%m-%d %H:%M:%S") . "\n "; $str_message = $str_message . "Phone:" . $phone . "\n"; $str_message = $str_message . "Email:" . $email . "\n"; $str_message = $str_message . "Thanks \n"; $str_message = $str_message . str_repeat('-',75) . "\n"; $str_message = $str_message . "Webmaster - Auto mailer notification \n"; $str_message = $str_message . str_repeat('_',75) . "\n" $success = mail("msp@mailtest.com", $str_subject, $str_message, "From: ram@mailtest.com\n Reply-To: ram@mailtest.com\n Cc:ram@mailtest.com"); if (success) { echo "E-mail Notification sent Successfully"; else echo "E-mail Notification Error"; ?> ______________________________________________________ 123India.com - India's Premier Portal Get your Free Email Account at http://www.123india.com

« previous php.general (#2447) next »