VITAL! PHP: Setting SMTP relay servers during runtime?

SpaceshipSpaceship
Watch

user-7256

VIP Member
Impact
111
Hello...

I have a client who has GoDaddy hosting (purchased it before I could offer alternatives) - and the mail() function does not seem to work. It can't find the SMTP server, is my guess... but no errors are displayed other than my line:

if (!mail( ... etc ... echo("ERROR"); ... etc.

So basically, all I know is the mail isn't sending.

GoDaddy support says I need to set the "relay server" to: relay-hosting.secureserver.net - but I don't know what it is or how to do that.

Any help, please? His business rests on this contact form functionality. Please don't offer suggestions, just answers.

Thanks!
-Matt
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Edit the php.ini file: http://us2.php.net/mail

Tell him to ask GoDaddy where php is looking for it within his home directory and put it there.
 
0
•••
Edit it during runtime? And edit what? The page you linked me to, while I appreciate it, doesn't seem to explain INI settings for, (I should have mentioned this) Linux hosting.
 
0
•••
My bad :) I just assumed windows hosting...no competent paid-for linux host denies access to the sendmail facility.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Payment Flexibility
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back