This topic is locked
[SOLVED]

 Mail reply address overwritten by system address

6/23/2006 9:12:23 AM
PHPRunner General questions
O
osluk author

Techie query for someone.

I have defined the reply address in th login options but I get a sysytem email quoted.

The server techies have replied below.

What do I need to do to get the reply address as I have set it.

The Hsphere cluster system uses an external server for mail - which is what has caused the problem.
Cheers Chris
[Jun 23, 2006 4:54:39 AM]

Q: I have defined the send reply address but it still shows Httpd Daemon. Is there any way round this? Is it beacause the server is external?
Cheers Chris
A: You have to use the -f name@domain.com to overrride that. I beilve that goes into the headers section.

Alexey admin 6/23/2006

Chris,
try to modify all calls to mail() function in your files and add fourth parameter with From and Reply-To headers.

I.e. replace this line:

mail($strEmail,"...",$message);

with this one:

mail($strEmail,"...",$message,"From: my@address.com\nReply-To: my@address.com\n");

O
osluk author 6/24/2006

mail($strEmail,"Notification on registering",$message);

Ok this is in register.php
Cool I have changed the message as well.
OK so to the best of my deductions and sluething 2 messages sent by

register.php 1 to the user 1 to admin
1 message sent by remind.php to the user
Does this sound about right?
Cheers Chris

O
osluk author 6/24/2006

Now to fine tune
I receive a totally functional message as follows:

BordeauxReport.com Password Reset Request

You asked us to reset your password at

http://bordeauxreport.com/db-2005/adminB/remind.php

Your User Name: chris3@digitol.net

Your New Password: pfulzj
)


$message="BordeauxReport.com Password Reset Request\r\n";

$message.="You asked us to reset your password at\r\n";

$message.="http://".$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"]."\r\n";;

$message.="Your User Name: ".$data[0]."\r\n";

$message.="Your New Password: ".$password."\r\n";

mail($data[2],"BordeauxReport.com Password Reset",$message,"From: myemail@gmail.com\nReply-To: myemail@gmail.com\n");

$reminded=true;


What I would like to do is add a blank line embolden and underline the first line

leave a blank line
Then add Kind regards the BordeauxReport.com membership team
Then add : PS you may want to reset your password to one of your own at link

What is the syntax required / would this cause any problems.
I want to avoid support calls or users failing to login!
Cheers Chris

Alexey admin 6/26/2006

Chris,

OK so to the best of my deductions and sluething 2 messages sent by

register.php 1 to the user 1 to admin
1 message sent by remind.php to the user
Does this sound about right?


Yes. Also you need to vhange all your event handlers if you have any.
You can send your letter in HTML.

Just add HTML tags to $message and add Content-Type header.

I.e.

mail($data[2],"BordeauxReport.com Password Reset",$message,"From: myemail@gmail.com\nReply-To: myemail@gmail.com\nContent-Type: text/html\n");