MemphiS Posted June 12, 2007 Share Posted June 12, 2007 The idea i had at doing this was: Example: <?php $mailpost = $_POST['mail']; $allmail = explode(",",$mailpost); for ($i=0; $i<count($allmail); $i++){ mail(); // subject etc.. would be entered but not for this example. } ?> Can someone tell me or give me an example of where im going wrong... Thanks Link to comment https://forums.phpfreaks.com/topic/55261-mailing-multiple-users/ Share on other sites More sharing options...
MemphiS Posted June 12, 2007 Author Share Posted June 12, 2007 ... Link to comment https://forums.phpfreaks.com/topic/55261-mailing-multiple-users/#findComment-273142 Share on other sites More sharing options...
r-it Posted June 12, 2007 Share Posted June 12, 2007 i struggled with arrays, so my solution was to store the emails in a table, and read the database and mail, thats all Link to comment https://forums.phpfreaks.com/topic/55261-mailing-multiple-users/#findComment-273154 Share on other sites More sharing options...
MemphiS Posted June 13, 2007 Author Share Posted June 13, 2007 bumP.. Link to comment https://forums.phpfreaks.com/topic/55261-mailing-multiple-users/#findComment-273584 Share on other sites More sharing options...
gtk Posted June 13, 2007 Share Posted June 13, 2007 If I was in your place i did it in this way <?php $mail = new mail($_POST['mail'], "Subject", "Mail Body"); //3 Arguments Are Given //$mail = new mail("to@domain", "Mail Subject", "Mail Body"); if($mail->send()) { echo "Mail Sent Succfully\n"; } else { echo "Sorry Mail Sending Failed\n"; print_r($mail->error);//Print The Errors } ?> Class aviliable at http://zigmoyd.sourceforge.net/man/mail.php#mail Installation and Instruction on http://zigmoyd.sourceforge.net/man/index.php Link to comment https://forums.phpfreaks.com/topic/55261-mailing-multiple-users/#findComment-273717 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.