E-mail not from norepky?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
blair.sawler
Posts: 8
Joined: Fri Jun 09, 2006 1:41 pm

E-mail not from norepky?

Post 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
Last edited by blair.sawler on Wed May 16, 2007 9:32 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Can you paste a sample e-mail with all headers (e-mail source code)?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
blair.sawler
Posts: 8
Joined: Fri Jun 09, 2006 1:41 pm

Post 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}
Last edited by blair.sawler on Wed May 16, 2007 9:31 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
blair.sawler
Posts: 8
Joined: Fri Jun 09, 2006 1:41 pm

Post by blair.sawler »

Thanks I will try that.
blair.sawler
Posts: 8
Joined: Fri Jun 09, 2006 1:41 pm

Post 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
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
blair.sawler
Posts: 8
Joined: Fri Jun 09, 2006 1:41 pm

Post by blair.sawler »

That was it. Thanks very much. Now I just need a secure PHP Mail form.
Post Reply