postmark-php icon indicating copy to clipboard operation
postmark-php copied to clipboard

Add ability to clear "to" addresses

Open coffeeshopped opened this issue 14 years ago • 1 comments

It would be useful to have a method named clearRecipients() or something that would allow for the recipients (to, cc, bcc) to be cleared out. That way a single instance of the postmark class could be reused to send an email to a few people without them all being in the same email.

coffeeshopped avatar May 02 '11 20:05 coffeeshopped

Agree. But until I implement it, you could use ::to() which will will clear the "to" recipients.

https://github.com/Znarkus/postmark-php/blob/master/Postmark.php#L415

But I can't really recommend that, because the to() method is deprecated.

Znarkus avatar May 02 '11 20:05 Znarkus