Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 PHP mail(), Can send back error message?

views
     
TSyumish
post Feb 7 2006, 05:53 PM, updated 20y ago

Getting Started
**
Junior Member
57 posts

Joined: Sep 2005
Hi, I have a question about the php mail() function.
For example:
CODE

$to = "ajdkfasff1256853@lalala.com";
$subject = "Hello";
$message = "Hi";
$from = "yumish@yahoo.com";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: ' . $from . "\r\n";
mail($to, $subject, $message, $headers);

In this case, the email address of the recipient is invalid. Will the sender get an error message about that invalid recipient email address? If yes, how? Thanks.
karhoe
post Feb 7 2006, 06:01 PM

Look at all my stars!!
*******
Senior Member
6,238 posts

Joined: Sep 2005
From: Kuala Lumpur


May I know, where do you host ur PHP files?
TSyumish
post Feb 7 2006, 06:06 PM

Getting Started
**
Junior Member
57 posts

Joined: Sep 2005
QUOTE(karhoe @ Feb 7 2006, 06:01 PM)
May I know, where do you host ur PHP files?
*
In the local server.
goldfries
post Feb 7 2006, 06:21 PM

40K Club
Group Icon
Forum Admin
44,415 posts

Joined: Jan 2003




if you manage to send it out, it will bounce back to your SENDER address.
sinister
post Feb 7 2006, 08:12 PM

Enthusiast
*****
Senior Member
963 posts

Joined: Jan 2003
Is ur local server configured for SMTP transfer, and is it configured properly?
TSyumish
post Feb 8 2006, 08:46 AM

Getting Started
**
Junior Member
57 posts

Joined: Sep 2005
QUOTE(sinister @ Feb 7 2006, 08:12 PM)
Is ur local server configured for SMTP transfer, and is it configured properly?
*
As far as I know, it is configured for SMTP transfer. However, the email that sent from the local server to yahoo accounts always end up in Bulk.

 

Change to:
| Lo-Fi Version
0.0151sec    1.77    5 queries    GZIP Disabled
Time is now: 23rd December 2025 - 08:33 AM