473,699 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP mail script to bad address not bouncing

I'm trying to create a PHP script to send mail to a list of addresses.
I'm sending mail okay, because the messages arrive in an account that I
can check, but messages to a known bad address aren't being bounced
back to the sending address.

Here's the line of code I'm using:

$mailok = mail("me@goodad dress.com,me@ba daddress.com"," this is a test",
"this is a test", "From: me@sendaddress. com");

I receive the message at me@goodaddress. com just fine. If I send a
manual message to me@badaddress.c om, the message bounces. If I manually
bounce the message that I received at me@goodaddress. com then it
bounces back to me@sendaddress. com.

I need to figure out why messages to me@badaddress.c om sent by the PHP
script aren't bouncing back to me@sendaddress. com.

Aug 9 '05 #1
2 2478
st***@hunnicutt .com wrote:
I'm trying to create a PHP script to send mail to a list of addresses.
I'm sending mail okay, because the messages arrive in an account that I
can check, but messages to a known bad address aren't being bounced
back to the sending address.

Here's the line of code I'm using:

$mailok = mail("me@goodad dress.com,me@ba daddress.com"," this is a test",
"this is a test", "From: me@sendaddress. com");

I receive the message at me@goodaddress. com just fine. If I send a
manual message to me@badaddress.c om, the message bounces. If I manually
bounce the message that I received at me@goodaddress. com then it
bounces back to me@sendaddress. com.

I need to figure out why messages to me@badaddress.c om sent by the PHP
script aren't bouncing back to me@sendaddress. com.

The bouncing is handled by the server the mail is sent to. If that
server just deletes mail to bad addresses, nothing will bounce.

Perhaps someone can tell us what will happen when the other server is
not existing?
Aug 9 '05 #2
st***@hunnicutt .com says...
I'm trying to create a PHP script to send mail to a list of addresses.
I'm sending mail okay, because the messages arrive in an account that I
can check, but messages to a known bad address aren't being bounced
back to the sending address.

Here's the line of code I'm using:

$mailok = mail("me@goodad dress.com,me@ba daddress.com"," this is a test",
"this is a test", "From: me@sendaddress. com");

I need to figure out why messages to me@badaddress.c om sent by the PHP
script aren't bouncing back to me@sendaddress. com.


Bounces are usually sent to the "reply-to" rather than the "from" address,
and you haven't set one. In any case you are better off setting a
canonical sender address as well as or instead of setting one in the
header, as some spam-catchers will ditch your mail.

Try:
$mailok = mail("me@goodad dress.com,me@ba daddress.com"," this is a test",
"this is a test", "From: me@sendaddress. com", "-f me@sendaddress. com");

As suggested in:
http://php.planetmirror.com/manual/e...mail.php#51406

Geoff M
Aug 10 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4224
by: pee2pee | last post by:
Hi, I have below code: <html> <head> <title>Contacting Worldpay, Please wait.......</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body text="#CCCCCC">
1
1503
by: dave | last post by:
Hi, Thanks to everyone who helped with my previous form parse issue, i can't believe it was something so simple. Anyway i tried to work the script and it for some reason sent from www which is the user my web server executes under even though i explicitly gave it an email address and it tried to send the mail to yourname@your-address.com even though i filled in the recipient of the message. I clear my mail queue and the message keeps...
9
710
by: AJ | last post by:
Hi All I've got a little newsletter system that I put together for one of my customers. Basically, it's a table with firstname, lastname and e-mail address. The script then goes through the database, line by line, and sends out a personalised e-mail to the recipient. At the moment, the table is about 1500 odd recrods. When I did the send for the first time, this probably took around 30 minutes to run. Once you click on the send...
14
22608
by: OldGuy | last post by:
Hi All Sendmail 8.12.11 php 4.3.9 Sendmail is installed and works properly. php is NOT in safemode from the command line; mail user@domain.com < testmsg works fine.
2
1511
by: MostlyH2O | last post by:
Hi Folks, I run a small website for a membership organization - and I have created an ASP front end for an access database that allows the board members to manage their membership roster (names, addresses, membership dues paid, etc)... Part of the site is an ASP SMTP script that allows members to send emails to all the people listed in the access database. It's a simple script that just loops through the database and sends an...
6
2052
by: Mike the Canadian | last post by:
I am having a very strange problem sending email with php. I have two domains. I can send an email to one domain using php but not the other. If I put both email addresses in the mail command only the one email will arrive. I can send emails the traditional way to the problem domain and they arrive fine. Is there anything that might explain this? _______ Free Windows Clipboard Utility http://www.clipboardmagic.com/
6
11182
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
39
3313
by: Viken Karaguesian | last post by:
Hello all, <SIGH> I'm soooooo sick and tired of getting spam e-mails. I'm sure that part of the reson for this is that my e-mail address is publicly available on my website, ready to be picked by e-mail harvesting programs. I tried to thwart them by adding a REMOVE_THIS in my e-mail address (username@REMOVE_THISispname.net), but the e-mails have not stopped. As for NG's, I have the return address blocked in a similar fashion.
6
1264
by: Vik Rubenfeld | last post by:
I've got this form mail program that is called as an action from an HTML form. It runs with no errors, but the email is never sent - at least, it's never received. Here's the code: <? $email = $_REQUEST ; $message = $_REQUEST ; $address = $_REQUEST ; $city_state = $_REQUEST ;
0
9034
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7750
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.