1. Home
  2. Knowledge Base
  3. Website
  4. Website Tips
  5. Sample script in sending email via PHP mailer function

Sample script in sending email via PHP mailer function

Step : Add the below code to the php file and execure the link.

<?php
$to = “someone@example.com,someother@example.com”;
$subject = “Test mail”;
$message = “Hello! This is a test email message.”;
$from = “someonelse@example.com”;
$headers = “From:” . $from;
mail($to,$subject,$message,$headers);
echo “Mail Sent.”;
?>

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support