Php Mail Function Internal Server Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this sendmail php site About Us Learn more about Stack Overflow the company Business Learn more
500 Internal Server Error Php
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP Mail() Function returning error 500 Internal Server up vote 2 down vote favorite I have no idea why this is happening... I get an error 500 internal server error every time I try to run this PHP code. This is the ONLY line of code (it used to be more; narrowed it down to this for testing). Error logs have been of no help. Unfortunately. I have read the other topics posted about this - none of them helped. ONLY code: php share|improve this question asked Jun 26 '15 at 0:57 Namone 569 1 This is helpful: stackoverflow.com/questions/2323463/… –Drakes Jun 26 '15 at 1:06 1 Upvoting for actually narrowing it down to one line of code. Virtually no one does that around here. It's usually just a code dump. –John Conde Jun 26 '15 at 1:12 Nothing is working. Any more help available? I am dealing with Plesk from GoDaddy... –Namone Jun 26 '15 at 2:48 At this point you need to contact your hosting provider. Better yet, switch to a professional one. Workaround alternatives: PHPMailer/SwiftMailer. –mario Jun 26 '15 at 3:25 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote You need to look into php error log. Post your logs here if you cant discern which logs are relevant. Most likely smtp settings are be blamed. mail function opens a socket connection. using smtp settings. SMTP settings can be managed through ini or by : ini_set('SMTP', 'smtphost'); ini_s
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each http://stackoverflow.com/questions/31063235/php-mail-function-returning-error-500-internal-server other. Join them; it only takes a minute: Sign up PHP 500 Internal Server Error- mail function up vote 0 down vote favorite I'm getting the 500 Internal Server Error. I called goDaddy and they told me it's not something on their end. I also don't have a .htaccess file. I checked the contact page and checked spelling http://stackoverflow.com/questions/31434919/php-500-internal-server-error-mail-function it is calling the right .php file. This code was working perfectly. I tried to change something it didn't work. I tried going back to the original code and now that doesn't work either. I don't have a backup. I commented out line by line to pin-point the problem if I erase the mail($to, $subject, $message, $headers); part I don't get an error but obviously don't receive anything. Here is the website if that helps to inspect. http://www.crownjewelre.com/contacts.html
Name: | ".$first_name." | ".$last_name." |
---|---|---|
Email: | ".$email." | |
Telephone: | ".$telephone." |
Comments: ".$comments."