Jump to content

php mail()


optikalefx

Recommended Posts

how do you mail to multiple people?

<?php

$name = $_POST["namee"];

$sendTo = "[email protected]";
$subject = "Prompt Service Estimate";

$headers = "From: " . $_POST["namee"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];

$message = "Name:: " . $_POST["namee"] ."\r\n";
$message .= "Email:: " . $_POST["email"] ."\r\n";
$message .= "Home Phone:: " . $_POST["hphone"] ."\r\n";
$message .= "Cell Phone:: " . $_POST["cphone"] ."\r\n";
$message .= "Address:: " . $_POST["adres"] ."\r\n";
$message .= "Message:: " . $_POST["message"];


mail($sendTo, $subject, $message, $headers);
header("Location: http://www.promptroofingmd.com/thankyou.htm");

?>

 

 

would i just add $sendTo .= "other address"; as many times as needed?

 

Link to comment
https://forums.phpfreaks.com/topic/64359-php-mail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.