Jump to content

Multiple to addresses with wireMail


bora
 Share

Recommended Posts

Hello,

When I try to mail via wiremail, using an array of email addresses to send I always receive them as if only sent to me. ( What I mean is, I only see one address on to field when I receive mail)

$mail = wireMail();
$to = ['myemail@email.com','otheremai@email.com'];
$mail->to($to);

Is there any way to send them together?

Thanks ahead

Link to comment
Share on other sites

@bora: with the WireMailSmtp you can use one To and the rest in a CC field.

But you also can have a look to the wiremail core class and how you can extend it, and build a small extension that does what you want.

EDIT: btw, thats a friendly looking new avatar, you have! :)

Edited by horst
  • Like 1
Link to comment
Share on other sites

@bora: with the WireMailSmtp you can use one To and the rest in a CC field.

But you also can have a look to the wiremail core class and how you can extend it, and build a small extension that does what you want.

EDIT: btw, thats a friendly looking new avatar, you have! :)

Thank you for the tip :) I put the main email that collects all form submissions of the site in TO and rest of them in CC. This solves the problem fine for now, if it's needed I'll extend the class

And thank you for compliment, the old one looked like a mafia guy in deed :)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...