LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-21-2003, 07:34 AM   #1
richard22
Member
 
Registered: Apr 2001
Posts: 60

Rep: Reputation: 15
php mail script return path


I have a php script that automatically mails people with updates.

It is not spam.

I have been getting the AOL mails bounce back as suspected spam.
On looking at the message source the return path might be the problem. The following is part of the source.

Return-path: <wwwrun@desktop.norton>
Envelope-to: joebloggs@mailaddress
Delivery-date: Thu, 21 Aug 2003 12:12:34 +0100
Received: from [213.249.143.254] (helo=desktop.norton)
by store0.mail.uk.easynet.net with esmtp (Exim 4.10)
id 19pnMk-0006xF-00
for joebloggs@mailaddress; Thu, 21 Aug 2003 12:12:30 +0100
Received: by desktop.norton (Postfix, from userid 30)
id 2C492542FA; Thu, 21 Aug 2003 12:13:39 +0100 (BST)
To: joebloggs@mailaddress
Subject: Norton-Hall & Co. Clients email update service.
From: emailupdates@norton-hall.co.uk,
"Return-path:emailupdates"@norton-hall.co.uk
Message-Id: <20030821111339.2C492542FA@desktop.norton>
Date: Thu, 21 Aug 2003 12:13:39 +0100 (BST)

I set Return-path in the php script as my email address but it the mail seems to actually pick up my machine on my domain as the return path. Is there any way of correcting this (it is not practical to change the domain - possible but not practical. Any suggestions much appreciated.

Richard
 
Old 08-22-2003, 05:10 AM   #2
richard22
Member
 
Registered: Apr 2001
Posts: 60

Original Poster
Rep: Reputation: 15
I didn't get a reply but on further investigation, if any one is interested. I have found that adding a 5th argument to the mail() function with the return path and an -f flag replaces wwwrun@desktop.norton as the return path with the variable ie
-f$myaddress variable. This only works in php 4.05 onward.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squerril mail login.php path problem tkmuthuvel Linux - Networking 1 10-13-2005 11:26 PM
What is wrong with my mail script?(PHP) Alexander.s Programming 2 05-16-2005 05:18 AM
Php to return a binary not html logicdisaster Programming 3 10-07-2004 02:25 PM
Is it possible to return variables from a script? pedrosan Linux - Newbie 6 04-20-2004 06:51 AM
Sendmail return path dj_relentless Linux - General 2 06-07-2002 07:40 AM


All times are GMT -5. The time now is 04:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration