473,500 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reply-to works with some but not mail clients

As I am just beginning to learn php I had to fish a free form script from the
web. The script works fine, it processes the data filled in, including the
sender's email address and sends an email to me with the data.

When I hit the reply-button in my default email client (TheBat!), all is well
and a new email with the sender's address in the to: - field is generated.

But when that same email is opened in Outlook Express, and I hit the reply-to
button, the to: field only shows the name of the sender, not the full email
address (it does appear in the body of the message though).

What do I have to change so that someone using OE can just hirt the reply
button to respond to an email generated by the form?

I hope the following is the relevant code:

================================================== =====

$name = strtok( $name, "\r\n" );
$email = strtok( $email, "\r\n" );
if (get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}

$messageproper =

"boodschap van:\n" .
$name = $_POST['name'] .
"\n\n" .
"boodschap:\n\n" .
$comments .
"\n\n" .
"telefoonnummer: " .
$phone .
"\n\n------------------------------------------------------------\n" ;

mail($mailto, $subject, $messageproper, "From: \"$email\" <$email>\r\nReply-To:
\"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" );
header( "Location: $thankyouurl" );
exit ;

================================================== ==========================

All help is greatly appreciated.

--
Groet,
Adriana
[ gooi de vuilnis weg als je me wilt mailen ]
www.spinsister.nl
Dec 13 '06 #1
6 1485
>As I am just beginning to learn php I had to fish a free form script from the
>web. The script works fine, it processes the data filled in, including the
sender's email address and sends an email to me with the data.

When I hit the reply-button in my default email client (TheBat!), all is well
and a new email with the sender's address in the to: - field is generated.
Beware: TheBat! is well-known as a spammer's mailer (even if the
spammers just fake headers from TheBat!) and it's often blocked.
>But when that same email is opened in Outlook Express, and I hit the reply-to
button, the to: field only shows the name of the sender, not the full email
address (it does appear in the body of the message though).
It's my observation that although OE only *SHOWS* the name, the
email address really is there, and it will really send it. Where
it gets irritating is when the email address is there but WRONG,
and OE refuses to show it to the user, so you can't get the actual
email address to correct it.
Dec 13 '06 #2
Gordon Burditt schreef op 13-12-2006
>When I hit the reply-button in my default email client (TheBat!), all is
well
and a new email with the sender's address in the to: - field is generated.
Beware: TheBat! is well-known as a spammer's mailer (even if the
spammers just fake headers from TheBat!) and it's often blocked.
I am aware of the unfair and unjust accusations about TheBat! TB! definetely is
not a spammer's mailer and I have never had any problems about being blocked,
but thanks for warning me. It has however nothing to do with the issue I am
adressing.
>But when that same email is opened in Outlook Express, and I hit the
reply-to
button, the to: field only shows the name of the sender, not the full email
address (it does appear in the body of the message though).
It's my observation that although OE only *SHOWS* the name, the
email address really is there, and it will really send it. Where
it gets irritating is when the email address is there but WRONG,
and OE refuses to show it to the user, so you can't get the actual
email address to correct it.
I have tested it with OE, hoping it was indeed a question of OE only showing
the name. But it isn't : I cannot reply to a message generated by the form in
OE, where I can using TB!

--
Groet,
Adriana
[ gooi de vuilnis weg als je me wilt mailen ]
www.spinsister.nl
Dec 14 '06 #3
A.Translator wrote:
As I am just beginning to learn php I had to fish a free form script from the
web. The script works fine, it processes the data filled in, including the
sender's email address and sends an email to me with the data.

When I hit the reply-button in my default email client (TheBat!), all is well
and a new email with the sender's address in the to: - field is generated.

But when that same email is opened in Outlook Express, and I hit the reply-to
button, the to: field only shows the name of the sender, not the full email
address (it does appear in the body of the message though).

What do I have to change so that someone using OE can just hirt the reply
button to respond to an email generated by the form?
>message cut <<

mail($mailto, $subject, $messageproper, "From: \"$email\" <$email>\r\nReply-To:
\"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" );
header( "Location: $thankyouurl" );
exit ;

Adriana,

I'm not sure this will address your problem, as I don't currently have
access to the mentioned mail clients for testing, but I don't believe
your message headers conform to the "Internet Message Format"
standards.
See http://www.ietf.org/rfc/rfc2822.txt

The "Reply-To:" field value is expected to be in address-list format,
while you are adding the address in mailbox format. In short, try
sending only the email address as the value to the Reply-To field, not
the name.

Hope that helps,
Carl.

Dec 14 '06 #4
Carl schreef op 14-12-2006
The "Reply-To:" field value is expected to be in address-list format,
while you are adding the address in mailbox format. In short, try
sending only the email address as the value to the Reply-To field, not
the name.
Thank you. I will try what you suggest.

--
Groet,
Adriana
[ gooi de vuilnis weg als je me wilt mailen ]
www.spinsister.nl
Dec 14 '06 #5
Gordon Burditt schreef op 13-12-2006
Beware: TheBat!
Perhaps this will clarify things:
http://www.ritlabs.com/ru/products/t...ail.php?ID=189

--
Groet,
Adriana
[ gooi de vuilnis weg als je me wilt mailen ]
www.spinsister.nl
Dec 14 '06 #6
Carl schreef op 14-12-2006
The "Reply-To:" field value is expected to be in address-list format,
while you are adding the address in mailbox format. In short, try
sending only the email address as the value to the Reply-To field, not
the name.
That did the trick.
Thank you!

--
Groet,
Adriana
[ gooi de vuilnis weg als je me wilt mailen ]
www.spinsister.nl
Dec 14 '06 #7

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

Similar topics

2
1565
by: MIKE AKU | last post by:
I am a Nigerian=2C 27years in possession of my dad's prNigeria before he died =2ESince then I have been in charge of his business and I have got no problem with that since I have been doing that...
4
1241
by: dorcas | last post by:
i sent in a message yesterday on c++ code for a transpose of matrix pls is it ready?
3
1545
by: hitendra15 | last post by:
Can it be possible to create trigger/procedure in following case 2 server server A and server B A has db1 db1 has tblA B has db2 db2 has tblB can it be possible to create trigger on server...
2
1627
by: Bill Yin | last post by:
Please tell me where can download <Beginning C# web Applications with Visual studio .net> 's code Thanks in advance!
19
1685
by: wcfinvader | last post by:
I have known this girl forever every since 3rd grade we are both in 10th grade now and I feel like I am in love with her and I want to ask her out but I dont know if I should call her tonight or...
1
9591
by: manikandan.r | last post by:
Hi I am accessing remote url through curl in my script. Sometimes i am getting the curl response as 'Empty reply from server', when the program runs. Can someone help me? --- Mani
1
1089
by: Artem | last post by:
here: http://www.thescripts.com/forum/thread638947.html why I cannot reply on this post?
105
3164
by: guthena | last post by:
Can we write a C programe with out a semicolon ? printing HELLOWORLD !
2
1555
by: jjviz | last post by:
I have this code: if (dr.HasRows) { dr.Read(); TxtHouseNbr.Value = dr.GetOracleString(5).ToString(); } else { string msgDesc = "That number does not exist. Add it?";
7
1230
by: Andy2500 | last post by:
.....
0
7136
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
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
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
7232
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...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.