Click to See Complete Forum and Search --> : php mail( ) problem


sssan
02-16-2006, 03:06 AM
Hello all !

This is my first post on this forum.

I want help in php.

I have a linux reseller webhosting, and design and sell websites.

The problems is ...

php mail( )

mail () is not deliverying only to my domain not working when other recipients.

the send mail path is /usr/sbin/sendmail -t -i

mail('somebody@yahoo.com', 'the subject', 'the message', null,
'-fwebmaster@mywebsite.com');

That is the script.

Thank you in advance.

NogDog
02-16-2006, 03:54 AM
Problem could be lack of required headers:

$headers = "From: webmaster@mywebsite.com\r\n" .
"Reply-To: webmaster@mywebsite.com\r\n" .
"X-Mailer: PHP/" . phpversion();
mail('somebody@yahoo.com', 'the subject', 'the message', $headers);

sssan
02-18-2006, 01:17 PM
The below is the message i am getting

*************************************************
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

sudarsan50@yahoo.com
unrouteable mail domain "yahoo.com"

------ This is a copy of the message, including all the headers. ------

Return-path: <admin@vigneshsystems.com>
Received: from nobody by linux.stafi.net with local (Exim 4.52)
id 1FAXVN-0001j7-94
for sudarsan50@yahoo.com; Sun, 19 Feb 2006 00:42:29 +0530
To: sudarsan50@yahoo.com
Subject: the subject
Message-Id: <E1FAXVN-0001j7-94@linux.stafi.net>
From: Nobody <admin@vigneshsystems.com>
Date: Sun, 19 Feb 2006 00:42:29 +0530


the message