Mail function allows your website to automatically send emails like an auto response to customers or website viewers. This is done through sending email via php script. You may try the example below. Please replace all the necessary information to the correct ones.

Sending email via PHP script

phpmailer.php

<?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.”;

?>

If you are sending through an external server, you might want to view Mailing Script with External Server (URL).

If you need assistance or have any further enquiries, feel free to contact our support team.

Was this answer helpful? 0 Users Found This Useful (29 Votes)