Mail Helper ->to

Permalink
Hi, is there a way to clear out a previous address in Mail helpers $mh->to() or do you have to call a second instance of the helper if you want to send a second message to a different address?

pvernaglia
 
pixel8 replied on at Permalink Reply
pixel8
According to the docs you will have to create another instance if you don't want to send the email to multiple addressees at the same time..

http://www.concrete5.org/documentation/developers/helpers/mail...

hope that helps?
Mnkras replied on at Permalink Reply
Mnkras
maybe a foreach could do it
pvernaglia replied on at Permalink Reply
pvernaglia
Yeah, I was thinking that too, if you had a bunch of addresses to send to, I only had 2, so i just called a 2nd instance.