Jump to content

Emails to Webmaster +......


PBCool1

Recommended Posts

Hi all,

As our new updated site sits now, the webmaster (President) is the only one who receives new pilot join auto-emails.

Can that be expanded so that multiple staff personnel get the auto-emails also?

Not sure if there is a module for this out there...I havent seen any.

Any constuctive help on this would be very helpful.

Preston B.

VP UPSVAC

http://upsvac.com/new

Link to comment
Share on other sites

Since the PHP mail function does not allow multiple receipients, you would need to repeat the line that sends the email, I think it starts Email::send. All you would do is repeat the line and change the receipient to the email itself, so instead of the variable $to (for example), you would enter the email, i.e 'email@site.com'.

Link to comment
Share on other sites

  • Administrators

The native email system is actually set up to send to multiple recipients, you just have to supply the addresses in array form.

From util.class.php - start line 293

//allowing function to send to an array of email addresses, not just one
if(is_array($email)) {
   foreach($email as $emailrec) {
    $mail->AddAddress($emailrec);
		 }
   }

Link to comment
Share on other sites

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...