websoftexpert Posted June 20, 2012 Share Posted June 20, 2012 Hi I have a website in which I am facing problem in sending EMAIL from FROM. Below is the error details. ================================================================= This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [email protected] Gid 5369 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail. ================================================================= Below is code I am using for sending email mail($your_email, $subject, $message, "From: $YourName <$EmailAddress>\r\n" . "Reply-To: $YourName <$EmailAddress>\r\n" . "Return-Path: $YourName <$EmailAddress>\r\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); mail($your_email, $subject, $message, "From: $YourName <$EmailAddress>"); Both of above was working in php 5.2 but not in php5.3 Plz advice/help Thanks Quote Link to comment https://forums.phpfreaks.com/topic/264479-php-form-to-email-problem/ Share on other sites More sharing options...
Barand Posted June 20, 2012 Share Posted June 20, 2012 does php.ini have correct mail server address after the upgrade? Quote Link to comment https://forums.phpfreaks.com/topic/264479-php-form-to-email-problem/#findComment-1355415 Share on other sites More sharing options...
websoftexpert Posted June 20, 2012 Author Share Posted June 20, 2012 I think so following value in php.ini file sendmail_from = no value sendmail_path = /usr/sbin/sendmail -t -i Path to sendmail = /usr/sbin/sendmail -t -i If you need full php.ini file info, let me know Thanks Quote Link to comment https://forums.phpfreaks.com/topic/264479-php-form-to-email-problem/#findComment-1355452 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.