0

hey guys,

I'm trying to simply use the mail function. I'm using ubuntu 8.10 and have installed sendmail. My php.ini config is:

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

and for testing purposes my php is:

$to = 'myemail@myemail.com';	
		$subject = 'test';
		$message = 'text';
		$headers = 'From: myemail@myemail.com' . "\r\n" .
    			'Reply-To: myemail@myemail.com' . "\r\n" .
    			'X-Mailer: PHP/' . phpversion();

			mail($to, $subject, $message, $headers);

		echo 'message sent';

Can anyone confirm whether this is correct or if i'm going wrong somewhere?
Thanks, nonshatter

2
Contributors
1
Reply
4
Views
7 Years
Discussion Span
Last Post by nileshgr
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.