Jump to content

Recommended Posts

Posted

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

Posted (edited)

@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
Posted

@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

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
×
×
  • Create New...