I will make it very simple. I want to send an email via php. now here is the code.
$line = '\n'; $a = "Customer Phone: "; $b = "Customer Last Name: "; $message = $a.$number.$line.$b.$LastName; $to = " forgotten_tarek@yahoo.com "; $subject = "Umrah Booking"; $from = $mailer; $headers = "From:" . $from; mail($to,$subject,$message,$headers);
here is the result:
Customer Phone: 0712345678\nCustomer Last Name: Showkot
and thereβs no sender in the email. He says nobody .
I want the letter to look like this:
Customer Phone: 0712345678 Customer Last Name: Showkot
and I also want to show that the email from example@example.com
source share