Use variables in mail function : mail function « Email « PHP






Use variables in mail function



<?php
$address = "a@b.com";
$Subject = "All I want for Christmas";
$body = "Joe";
$mailsend = mail("$address", "$Subject", "$body.");
print("$mailsend");
?>
           
       








Related examples in the same category

1.Mail cc and bcc
2.Mail to multiple recipients
3.Multiple recipients all go into the address field, with commas separating them
4.Use the mail function