I will make it really simple. I want to send an email by php. now here is code.
$line = '\n';
$a = "Customer Phone: ";
$b = "Customer Last Name: ";
$message = $a.$number.$line.$b.$LastName;
$to = "[email protected]";
$subject = "Umrah Booking";
$from = $mailer;
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
here is the output:
Customer Phone: 0712345678\nCustomer Last Name: Showkot
and the email is showing no sender. It says nobody.
I want the email to be look like:
Customer Phone: 0712345678
Customer Last Name: Showkot
and I also want to show that the email is from [email protected]