0

<?php

$to='gsankar5181@gmail.com';
$message='hai';
$sen=mail($to, 'My Subject', $message);
if($sen)
echo "yes";
else
echo "no";

?>
14-04-04 14:35:44 : Message is missing sender's address
14-04-04 14:39:37 : Message is missing sender's address
14-04-04 14:39:39 : Message is missing sender's address

4
Contributors
3
Replies
18
Views
3 Years
Discussion Span
Last Post by titos97
0
$headers = 'From: webmaster@example.com' . "\r\n";
$sen=mail($to, 'My Subject', $message,$headers);
0

Sending Email

$message="Hello ".$_POST['fname'].",<br>

First name:".$_POST['fname']."<br>

Last name:".$_POST['lname']."<br>

Email:".$_POST['email']."<br>

Phone number:".$_POST['phone']."<br>

Subject:".$_POST['subject']."<br>

Message:".$_POST['message']."<br>

Thanks.<br><br>

Regards,

";

$sub = "Contact User";

$headers = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

@mail("XYZ@gmail.com",$sub,$message,$headers);


$message1="Thank you for your conact";


$headers = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

@mail($_POST['email'],$sub,$message1,$headers);
0

$to='gsankar5181@gmail.com';
$subject = 'My Subject';
$email = 'xyz@xyz.com' ;
$headers = 'From:$email';

$message='hai';
$sen=mail($to,$subject, $message,$headers);
if($sen)
echo "yes";
else
echo "no";

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.