PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

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:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old July 20th, 2003, 10:47 AM
scamout scamout is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 scamout User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to scamout Send a message via AIM to scamout
PHP mail() question - I think

I have a PHP routine that sends out a mail message upon completion of a form. It works fine but....

If someone enters a non-existent email address (like badaddress@yahoo.com) it would seem to me that
a bounce message would go to the FROM: address but it doesn't.

Could someone explain why not or better still, how can it be made to do so? It would help screen bad applications.

Here's the code:

<?
$EMailText = "Thank you for applying for membership with us (blah blah)

$FromId = "From: admin@mydomain.org";

$EMailSubject = "Your Application Received";

mail( $jf_email, $EMailSubject, $EMailText, $FromId );

# $jf_email is the applicant's address pulled from mySQL.
?>

Reply With Quote
  #2  
Old July 20th, 2003, 01:39 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
You need to send the return path in the headers:
PHP Code:
 $headers "From: $some_name <$address>\n\r";
$headers .= "Return-path: <$return_address>\n\r";

mail$to$subject$message$headers ); 
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > PHP mail() question - I think


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 | 
  
 

Iron Speed




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