0

Hi guys,

I am using following code for sending out confirmation email after successful transaction to the user. But, I users are not getting any confirmation emails. Can somebody help me out here. May be I am doing wrong in "$to" function as $sender_email is at previous form, So how can I use Session here? If I am wrong here?
Any someone help? Many Thanks in advance.

$to = "$sender_email";
$subject = "Your Transaction";

$headers = "From: Company <company@abc.com>\n";
$headers .= "Reply-To: Company <company@abc.com>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\n";
$message = "Dear ".$rs["sender_name"].", ".$_email_nl.$_email_nl;
$message .= "Your paid amount ".$amount." ".$rs["currency"]." has been added to desired account.".$_email_nl.$_email_nl;
$message .= "Regards,";
$message .= "my company";
mail($to, $subject, $message, $headers);

Edited by yashbhav: n/a

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by monica singh
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.