PDA

View Full Version : Dont want hostmonster written in emails sent from the server



bharatpe
01-06-2009, 09:03 AM
Just got someone to write a php script for me which sends user feedback from a form in one of the domains hosted with my account here.

We want a copy of the feedback to go to the visitor.

It goes, but it goes - sent by xyz.host74.hostmonster.com

Does it have to be so?

Can I not have the Email sent from one of the email addresses that I have already created for that domain

say admin@myxyz.com

I am sure I know what i am talking about.

I couldnt find any thing in my control panel that could fix it for me.

Thanks for any help

Abhijit

Please email to abhijit8086@yahoo.com

shadmego
01-06-2009, 11:26 AM
You should make sure the email address configured in the script is a real email account for your domain. If you configure this script to use the address:

contact@yourdomain.com

But you don't create the contact@yourdomain.com email address, then the server will default to the address you mentioned in your post above.

Once you create the email address and reconfigure your php script, you should be alright.

~regards, and welcome to the community

bkdotcom
01-07-2009, 01:57 PM
I am also curious about this..
how do I determine the default from address?
PHP's $_SERVER['SERVER_ADMIN'] is set to webmaster@mydomain.com which is an email address that's been setup on my account...

using php's mail function without setting any from address, the email comes from whatever@hostXXX.hostmonster.com..

niels
01-10-2009, 10:32 PM
http://stackoverflow.com/questions/179014/how-to-change-envelope-from-address-using-php-mail

I have a hostmonster account and that worked for me - really simple too!