Current location: Hot Scripts Forums » Programming Languages » PHP » PHP email script problems (bounces go to wrong address).


PHP email script problems (bounces go to wrong address).

Reply
  #1 (permalink)  
Old 04-28-04, 05:42 PM
MTO MTO is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
PHP email script problems (bounces go to wrong address).

I have a "postcard script", or should I say "send to friend" script that I am having trouble with.

I want it set up so that when it is sent to an email that does not exist, it is returned to the sender, and not to my system's postmaster.

This is what I have:

PHP Code:

<?php

$headers  
"From: $yourName <$yourEmail>\nReply-To: $yourEmail\nReturn-Path: $yourEmail\n";
$subject="$yourName has sent you a postcard.";
$message .= "Hello,\n\n$yourName ($yourEmail) has sent you a postcard.\n\nAlso, $yourName has included a personal note for you:\n-> $note <-\n\You can see the postcard at:\n$URL\n";
$success mail($mail$subject$message$headers);

if (
$success)
include(
"sent.php");
else
echo 
"There wasa problem, please try again.";

?>
This is sending me all the returned mail, and not to $yourEmail
I want it to send bounces to $yourEmail, not to me. What am I doing wrong?
Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-28-04, 11:13 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

From what I hear, the following headers are often used as the catch-delivery-failure address:

Errors-To:
Acknowledge-To:
Return-Path: (you got it)

I don't really know which works exactly in what way, though - if someone clarifies it, I'd appreciate it, too. =)
__________________
Blavv =|
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
will pay. php script needed. upload, resize, & email jamjammo Script Requests 4 02-29-04 08:30 PM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 12:31 AM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 03:28 AM
Affiliate script (PHP) whtiebear Job Offers & Assistance 2 12-21-03 12:12 AM


All times are GMT -5. The time now is 10:30 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.