Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

e-mails NOT bouncing using mail() - but I WANT them to.

the mail() function

Moderators: macek, egami, gesf

e-mails NOT bouncing using mail() - but I WANT them to.

Postby Aleknevicus » Mon Feb 21, 2005 4:53 pm

I have a very simple script to send bulk e-mails to about 1200 addresses. Everything seems to be working correctly except that I am NOT receiving the many bounced messages that I expected once I used live data. (The address list is known to have at least 100 invalid addresses.)

The relevant bit of code is as follows:

-----------------
$headers = 'From: editor@thegamesjournal.com'. "\r\n" .
'Reply-To: editor@thegamesjournal.com'. "\r\n" .
'Return-Path: editor@thegamesjournal.com'. "\r\n" .
'Return-Receipt-To: editor@thegamesjournal.com'. "\r\n" .
'X-From_: editor@thegamesjournal.com'. "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail("invalid@thegamesjournal.com", "hi", "here we are", $headers);
-----------------

I would have thought the supplied header information would be more than adequate but perhaps not? Any ideas on why I'm not receiving bounced messages? Thanks in advance.
Aleknevicus
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Feb 21, 2005 4:44 pm

Postby ruturajv » Tue Feb 22, 2005 9:33 pm

check using email client like thunderbird if bounced mails are coming...
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby Aleknevicus » Tue Feb 22, 2005 10:12 pm

Yes, I use Eudora to check for incoming e-mails and have received no bounced messages (from the use of the PHP script I described). If I use Eudora to send an e-mail to an invalid address, I receive a bounced message almost immediately.
Aleknevicus
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Feb 21, 2005 4:44 pm

Postby ruturajv » Sun Feb 27, 2005 3:29 am

check through php if you are actually able to send mails
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby Aleknevicus » Sun Feb 27, 2005 11:48 am

Hmmm, I'm not sure exactly what you mean by "check through PHP to see if you are actually able to send e-mails".

The script I quoted above does work for actually sending the e-mails (that is, they are received without problem when sent to a valid recipient).

The problem is purely that when sent to an invalid address, no bounced message is returned. Since I have used this script to send a message to at least 100 invalid addresses, I can only assume that the problem is on my end rather than the receivers end.
Aleknevicus
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Feb 21, 2005 4:44 pm


Return to PHP coding => Mail

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.