PHP provides us a predefined function named as mail() for sending mails.
Syntax:
mail(to,subject,message,headers,parameters);
Ex:-
$mail_msg = "This is my test mail";
mail("abc@gmail.com","My subject",$mail_msg); // Sent mail
Output: You will get a mail on given mail id with set message and subject
0 Comment(s)