Jump to content

php form to email problem


websoftexpert

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/264479-php-form-to-email-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.