sevl said 1 year ago:
Hi, I’m trying to use a php script to send an email to myself. The script works on other hosting sites but when i ported it over to goDaddy hosting, it didnt seem to work. Any help/ideas on this? it says PHP 5 is enabled. Thanks.
Joe 64 said 1 year ago:
For security concerns, PHP mail functions a bit differently in our shared hosting. You cannot connect to an external SMTP server, you must use our server of relay-hosting.secureserver.net on port 25 (do not use a username or password).
If the FROM address in the header appears to be an address not hosted by us (i.e. Gmail, Yahoo!, Hotmail, etc.), our system will block these messages (otherwise it would appear as if our server was spoofing these other mail servers, which could get us blacklisted). You’ll want to define the FROM address as being an address hosted by us, or don’t define one at all (it’ll arrive with the FROM address as being an address from our hosting relay server).
If you’re trying to set any PHP5 settings, make sure it is in a file called php5.ini (php.ini will only set changes to PHP4 in our hosting).
We also provide a couple of form mail scripts you can use: