Ready to get started with anonymous questions today? It's easy! Learn more.
<?php $email = $_REQUEST['email']; $name = $_REQUEST['name']; $email1 = $_REQUEST['email1']; $email2 = $_REQUEST['email2']; $email3 = $_REQUEST['email3']; $email4 = $_REQUEST['email4']; $email5 = $_REQUEST['email5']; $message = $_REQUEST['message']; #this will be used for the BCC $email_ids = "$email1,$email2,$email3,$email4,$email5"; #Will show the sender's id in the From field $headers = "From: $email" ; #Will send the mail to sender(which is not required) $to = "$email"; #Subject with name and email $subject = "Refered by your friend $name($email)"; mail ($to, $subject, $message, $headers, "Bcc:$email_ids"); ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.