View Full Version : to send to multi mail address ?
OKtrust
January 13th, 2005, 11:37 AM
hi guys !
in a 'project' I have a barrier, I wonder how to send a contain to multi mail address ?
thanks in advance for your helping
Digitalosophy
January 13th, 2005, 12:21 PM
you could use carbon(sp) copies and/or blind copies.
have you tryed searching? i'm not sure what you are trying to do this in, php/asp, etc.
edit: or you could just join emails with a ","
OKtrust
January 13th, 2005, 12:26 PM
oh dear, you dont understand whatI mean
here is my code:
<?
$name ="tim"
$mail = "tim@yahoo.com"
$subject="subject";
$headers = "From: lecorps@le-corps.com";
$message = "hello";
if ($email && $message && $name) {
if (mail($mail, $subject, $message, $headers)) {
print ("OK mail is sent"); }
}
?>
I want to send to more mail address, not just to only tim@yahoo.com
CyanBlue
January 13th, 2005, 12:46 PM
Howdy... :)
You need to CC it as Digitalosophy said already... :)
// After this line...
$headers = "From: lecorps@le-corps.com\n";
// Add this line...
$headers .= "cc: someone@somewhere.com\n";
and take a look at this page for more information...
http://www.sitepoint.com/print/advanced-email-php
Gazler
January 13th, 2005, 12:49 PM
<?
$name ="tim";
$to = "mary@example.com" . ", " ; // note the comma
$to .= "kelly@example.com";
$subject="subject";
$headers = "From: lecorps@le-corps.com";
$message = "hello";
mail($to, $subject, $message, $headers);
print ("OK mail is sent");
?>
OKtrust
January 13th, 2005, 01:59 PM
your helpings are very very great !
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.