Link to home
Start Free TrialLog in
Avatar of iamtgo3
iamtgo3

asked on

Using PHP mail() function on godaddy shared serves not working

I have switched from one ISP to GoDaddy. I have used the PHP mail() function on numerious servers with other ISP's and it works great. Now that I switch to GoDaddy it is not going LOL. Here is what I get when using the code below. Any suggestions?

500 Internal Server Error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at www.ipdg3.com Port 80
ini_set("SMTP", "relay-hosting.secureserver.net");
  mail ($To, $Subject, $Msg, $From);

Open in new window

Avatar of hielo
hielo
Flag of Wallis and Futuna image

mail() It's probably  if on a windows platform:
http://www.sitepoint.com/forums/showthread.php?t=348488
Maybe the problem is in the ini_set? Are they allowing it?
ASKER CERTIFIED SOLUTION
Avatar of iamtgo3
iamtgo3

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you have to install phpmailer to your godaddy account? If so where did you install it to? The root of your website?
You don't have to install PHPmail, just upload it to any directory of your website.  Make sure the following line represents the location accurately:

require("class.phpmailer.php");