Setting Email From Address

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
JeanneMeier
Posts: 3
Joined: Tue Jan 04, 2011 5:10 am

Setting Email From Address

Post by JeanneMeier »

Script URL: http://www.unibindphotobooks.com/support/
Version of script: ? Most current, downloaded 12/2010
Hosting company: Hostmonster
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: several related to email and from but was getting an error that the terms were too general (not sure what else to put in to search for).

Write your message below:

Here is my dilemma - All of our emails are going to the customer and admin from "hostusername@server#.hostmonster.com, rather than the preset emails set in the admin panel. This doesn't look professional and (I think) gives out too much information, should someone want to hack us.

Image

Can anyone tell me how to fix this?
Thank you so much!
Jeanne

PS. Very nice program, TY!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Setting Email From Address

Post by Klemen »

Try this:

1. open Notepad (or some other plain text editor)
2. plaste this code inside:

Code: Select all

php_value sendmail_from 'name@mysite.com'
3. save file as "htaccess.txt" and upload it to your help desk folder
4. when the file is on the server, rename it to ".htaccess" (note the dot before htaccess)

See if that helps. If not you will need to ask your hosting company to change the sendmail_from php setting 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
JeanneMeier
Posts: 3
Joined: Tue Jan 04, 2011 5:10 am

Re: Setting Email From Address

Post by JeanneMeier »

Thank you for the prompt reply.

I tried this but it didn't work, so I'll ask my webhost. You helped me to at least figure out what to ask them, I really appreciate it.

If it's something that I can do without them, (I'll know once I post a ticket to them), I will reply back with their instructions in case anyone else has this same problem.

Thanks again!
JeanneMeier
Posts: 3
Joined: Tue Jan 04, 2011 5:10 am

Re: Setting Email From Address

Post by JeanneMeier »

I am so very sorry for the delay getting back to you, I have been swamped with our shopping cart.

Anyway, I did hear back from my webhost regarding this issue and this is what they've said (btw, it's Hostmonster for anyone else having this problem).
About 2-3 months ago we made a change to our system that forces all email sent from our customer accounts to be checked for spoofing. Due to this measure, you can no longer send emails that appear to be from an email address that is not on your account.
Therefore, if you have a contact form or email program that attempts to set the "From:" header to anything but an email address that exists in your bluehost account, the mail will be rejected by our spoofing filter.

If you are sending email through SMTP, you must connect to "localhost" to send your email. Remote SMTP connections are no longer allowed from our servers and you must use AUTH when you connect to the SMTP.

Lastly, there is only one other change you should be aware of. Our mail system will not allow this header:

From: email@domain <email@domain.com>

Even if the email is valid, our system will fail the message due to the double declaration of the email address.

Please check your script and ensure that these requirements are being met by your script. If you feel that your script meets these requirements and it's still failing, we will be happy to examine it for you. Please just provide the script code and a way to test the issue so we can troubleshoot.
I write back and say, "Wouldn't the email work from [my-email-addy]@xxxxx.com since that is an email on my account?"
Even if the address exists, You have to look at your mail function code to be sure that it's actually setting that as the "From:" header. If it is set to anything else, it will default to the username@box.bluehost.com format.

If you can turn on debugging of any kind for your software, you can generally tell what is being input into the system.

However, We are not very familiar with your program so we can't tell you what you need to change without being able to examine the script indepth. You might want to ask the company that Created the software if they can tell you what to modify in order to comply with our spam/spoofing filters.
Any thoughts? I am so lost!

Thank you!
Jeanne
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Setting Email From Address

Post by Klemen »

Try setting your working "[my-email-addy]@xxxxx.com" e-mail address as "No reply e-mail:" in the Hesk settings and see if that helps.
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
Post Reply