Page 1 of 1

E-mail not from norepky?

Posted: Tue May 15, 2007 8:48 pm
by blair.sawler
Script URL: helpdesk.XXX.com
Version of script: .094
Hosting company: hostmonster
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
no reply
E-mail

Write your message below:

I was with iPower and have switched to hostmonster. Now my E-mails are coming from woodlawn@XXX.com instead of noreply@prodataconnectivity.com

Any ideas what I have to do to change this? If I hit reply then the To field is populated with NOREPLY@prodataconnectivity.com.

Thanks!

-Blair

Posted: Tue May 15, 2007 11:02 pm
by Klemen
Can you paste a sample e-mail with all headers (e-mail source code)?

Posted: Tue May 15, 2007 11:07 pm
by blair.sawler
Return-path: <woodlawn@XXXX.com>
Envelope-to: blair@XXXX.com
Delivery-date: Tue, 15 May 2007 17:04:41 -0600
Received: from localhost ([127.0.0.1] helo=host98.XXX.com)
by host98.XXXXX.com with esmtp (Exim 4.63)
(envelope-from <woodlawn@XXXX.com>)
id 1Ho64P-0006OS-Aj; Tue, 15 May 2007 17:04:41 -0600
X-Originating-IP: [74.106.220.98]
Date: Tue, 15 May 2007 17:04:40 -0600
To: support@XXX.com,blair@XXX.com,halifax@XXX.com
Subject: New support ticket submitted
From: woodlawn@host98.XXX.com
Reply-to: NOREPLY@XXX.com
X-Identified-User: {780:host98.XXX.com:woodlawn:XXX.com} {sentby:program running on server}

Posted: Wed May 16, 2007 8:36 am
by Klemen
Seems like your server changes the From: address to "woodlawn@host98.hostmonster.com", probably some security settings by your host.

You can try if this makes any difference:

1. create a plain text file "htaccess.txt"
2. write this inside:

Code: Select all

php_value sendmail_from NOREPLY@prodataconnectivity.com
3. upload to your server in ASCII mode
4. rename the file on the server to .htaccess (note the dot before "htaccess"!)

Then try again. If that doesn't work you will need to contact your host and ask them if they can change the default sendmail_from address for PHP for you.

Posted: Wed May 16, 2007 9:32 am
by blair.sawler
Thanks I will try that.

Posted: Fri May 18, 2007 11:46 pm
by blair.sawler
Here is what I have found, I just need to know where to change it, can you assist?

This is because our servers require you (or your script) to use a properly formatted, valid From: header in your email. If the From: header is not formatted correctly, empty or invalid our system will change the from address to be <username>@<host##>.hostmonster.com. To stop this, you must change the script you are using to correctly use a valid From header.

Examples of headers that should work would be:
From: user@domain.com
From: <user@domain.com>
From: "name" <user@domain.com>

Examples of headers that will NOT work:
From: "user@domain.com"
From: user @ domain.com

Posted: Sat May 19, 2007 12:55 am
by Klemen
Hesk does include a valid From: header in this format:

From: user@domain.com

Maybe your hsot checks if the "From:" e-mail address exists, make sure an e-mail account NOREPLY@prodataconnectivity.com exists. e

Posted: Sat May 19, 2007 12:16 pm
by blair.sawler
That was it. Thanks very much. Now I just need a secure PHP Mail form.