mail not arriving at destination

the mail() function

Moderators: egami, macek, gesf

Post Reply
rupali
New php-forum User
New php-forum User
Posts: 140
Joined: Thu Oct 13, 2011 10:32 pm
Location: Chandigarh, INDIA

Sat Jan 21, 2012 4:06 am

hello,

i think your defined syntax is not correct, so try like this as given below :

<?php
$from = "webmaster@stmarysplattchurch.org.uk";
$to = "dominicdem@gmail.com";
$reply_to = "contact@stmarysplattchurch.org.uk"
$subject = "test email from mail_php";
$message= "test email !!!";

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= 'From: '. $from . "\r\n";
$headers .= 'Reply-To: '.$reply_to."\r\n";


mail($to,$subject,$message,$headers);

echo "mail sent";
?>

rupali
New php-forum User
New php-forum User
Posts: 140
Joined: Thu Oct 13, 2011 10:32 pm
Location: Chandigarh, INDIA

Sat Jan 21, 2012 7:31 pm

my pleasure Dom :)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest