473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can't overwrite Return-path

I want to use mail() function but I can't overwrite Retun-Path info. Most
mail servers overwrite the 'Return-path' header sent by the PHP mail()
function by a default email address (ht***@hostingcompany.com or
ap****@domain.org).

I tried :

$headers = 'From: MyName<'.$from.'>\r\n';
$headers .= 'Return-Path: MyName<'.$from.'>\r\n';

even:

$headers,"-f".$from

can't help.

Any idea? Thanks.
--
--------------------------------------
Adam Raszkiewicz
Brothers-in-arts.com
--------------------------------------
Apr 5 '07 #1
2 2050
*** Adam R escribió/wrote (Thu, 05 Apr 2007 19:12:01 GMT):
$headers = 'From: MyName<'.$from.'>\r\n';
$headers .= 'Return-Path: MyName<'.$from.'>\r\n';

even:

$headers,"-f".$from
Return path cannot be specified as header, you must use the -f parameter.
Whether you can do it or not depends on your host's security settings.
Also, return path doesn't accept a name, only an e-mail address.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Apr 6 '07 #2
On Fri, 6 Apr 2007 08:59:38 +0200, Alvaro G. Vicario wrote:
*** Adam R escribió/wrote (Thu, 05 Apr 2007 19:12:01 GMT):
>$headers = 'From: MyName<'.$from.'>\r\n';
$headers .= 'Return-Path: MyName<'.$from.'>\r\n';

even:

$headers,"-f".$from

Return path cannot be specified as header, you must use the -f parameter.
Whether you can do it or not depends on your host's security settings.
Also, return path doesn't accept a name, only an e-mail address.
When I use -f parametr I can't receive messages even when I use e-mail
address at $from. Can be Return-Path compared with Message-ID to avoid
spam?

I would simply like to create a script which will enable sending sms
notifications about new e-mails in my mailbox.

--
--------------------------------------
Adam Raszkiewicz
Brothers-in-arts.com
--------------------------------------
Apr 7 '07 #3

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

Similar topics

5
by: Gord | last post by:
Hello, If you set the flag for an overwrite prompt using the 'Save' common dialog, how do you read the response when the user clicks the Yes or No in the 'overwrite' message box? Everything...
2
by: chris | last post by:
hi, i am tinkering with properties of new style classes: class Base(object): def m(self): return 'p of Base' p = property(m) class Sub(Base):
16
by: mrDumbass | last post by:
#include <iostream> #include <algorithm> #include <string> #include <fstream> using namespace std; /* i would like to keep the numbers of the output : Power , step etc, on the same place...
1
by: johngilmer | last post by:
By default, when I type into a text box, it inserts the text into the existing text rather than overwriting the existing text. If I hit the "insert" key on my keyboard, it switches the mode to...
2
by: B-Dog | last post by:
Is there a way to make vb.net to overwrite the file when moving? Here is what I'm trying to do: If System.IO.File.Exists(dest) Then 'handle overwrite here If MessageBox.Show("Do you want...
3
by: Developer | last post by:
I use the RichTextBox and sometimes put it into overwrite mode. I'd like the cursor to show whether its in overwrite or insert mode. I often use Cursor.Current = Cursors.WaitCursor and...
1
by: ma740988 | last post by:
Trying to some of my reading on file manipulation (ifstream/ofstream/fstream) into action. So now consider. # include <iostream> # include <fstream> # include <cstring> # include <sstream> ...
1
by: alexvodovoz | last post by:
Hi, I have a quick question on the following scenario. Given the below static member: public Class Example1 { public static Test(int x) {
2
by: hzgt9b | last post by:
I know how to overwrite a function. Normally this is what I would do: function someFunction() { /* orig definition here */ } //later in the execution stream I would do... someFunction = function...
8
by: Joe Duchtel | last post by:
Hello - I have the following code to detemine a file name when my application is saving a file. The problem is that if the file already exists and I select the Yes button in the "Do you want to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.