Outline ·
[ Standard ] ·
Linear+
PHP mail(), Can send back error message?
|
TSyumish
|
Feb 7 2006, 05:53 PM, updated 20y ago
|
Getting Started

|
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
|
Feb 7 2006, 06:01 PM
|
|
May I know, where do you host ur PHP files?
|
|
|
|
|
|
TSyumish
|
Feb 7 2006, 06:06 PM
|
Getting Started

|
QUOTE(karhoe @ Feb 7 2006, 06:01 PM) May I know, where do you host ur PHP files? In the local server.
|
|
|
|
|
|
goldfries
|
Feb 7 2006, 06:21 PM
|
40K Club
|
if you manage to send it out, it will bounce back to your SENDER address.
|
|
|
|
|
|
sinister
|
Feb 7 2006, 08:12 PM
|
|
Is ur local server configured for SMTP transfer, and is it configured properly?
|
|
|
|
|
|
TSyumish
|
Feb 8 2006, 08:46 AM
|
Getting Started

|
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.
|
|
|
|
|