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:

 

p.rma@xxxx.com

    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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.