General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 4th, 2003, 02:05 PM
honeykane honeykane is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Fairfield, Connecticut
Posts: 3 honeykane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
bad email addresses not returning mail

I have been having this problem for a couple of years now and can't find anyone who can explain this.

I run php on my sites which are all on shared hosting.
I use the following code to generate email headers.
The problem is that I cannot get any "undeliverable emails" back.
Any ideas?
Linda

<?php
$from = "webmaster@LakeHillsFairfield.com";
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header .= "From: Lake Hills <$from>\r\n";
$header .= "Reply-to: Lake Hills <$from>\r\n";

$header .= "Errors-to: Lake Hills <lkrlinda@aol.com>\r\n";

$header .= "X-Sender: < $from >\n";
$header .= "X-Mailer: lakehillsfairfield.com form\n"; // mailer
$header .= "X-Priority: 1\n"; // Urgent message!
$header .= "Return-Path: <webmaster@lakehillsfairfield.com>n";

$ENV{'QMAILHOST'} = "lakehillsfairfield.com";

$ENV{'MAILHOST'} = "lakehillsfairfield.com";

$ENV{'QMAILUSER'} = "lkrlinda@optonline.net";

$recipient = "junkemail@junkmail.com";

mail($recipient, "test", "test", $header);

?>

Reply With Quote
  #2  
Old September 4th, 2003, 02:27 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Try this:

Code:

mail($recipient,"test","test",$header,"-fwebmaster@lakehillsfairfield.com");

Reply With Quote
  #3  
Old September 4th, 2003, 03:36 PM
honeykane honeykane is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Fairfield, Connecticut
Posts: 3 honeykane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
* F A N T A S T I C * !!!!!
CAn't believe it!
It has had many people stumped for a long time!
I presume the -f means the delivery failure email address?
THANK YOU SO MUCH!

Reply With Quote
  #4  
Old September 4th, 2003, 03:48 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Yeah, I think that's what the -f means. An administrator of one of the hosts I work with told me about this option because he got tired of getting bounced mail from my forums.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > bad email addresses not returning mail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT