Jump to content

Recommended Posts

Posted

Nabeel, I've been working on a solution to the mass-mailing feature, but I need to know if Util::SendEmail supports sending multiple e-mails (i.e. separated by a comma like Outlook or GMail, for example).

  • Administrators
Posted

It will, however all the emails will be shown.

I haven't started it yet, but I'll be using the PHPMailer class (the util::sendmail()) is just an alias to it

You can do:

<?php
$mail = new PHPMailer(); 
	  
$mail->From     = ($fromemail == '') ? ADMIN_EMAIL : $fromemail;  
$mail->FromName = ($fromname == '') ? SITE_NAME : $fromname; 
$mail->Mailer = 'mail';

$mail->AddAddress($email); 
$mail->Subject = $subject;
$mail->Body = $message;
$mail->AltBody = strip_tags($message);

$mail->Send();

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...