Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fEmail clear on send

posted by darren 8 years ago

Hi Will,

Any reason why after $email->send() is called it doesnt clear the to,cc,bcc headers without explicitly calling $email->clearRecipients()?

That was my expectation but how wrong was i and got caught out big time as when i sent emails to individuals via a foreach loop from db call it appended email addresses 1 by 1 until the loop was finished.

End result was all users received a duplicate email X number of times based of the user list in this case 200 :(

Regards,

Darren

I'm sorry that you had a bad experience working with fEmail - that doesn't sound like fun to find out after the fact. I don't believe it is documented anywhere that the recipients will be reset after sending a message, but I can add some documentation explicitly saying that does not happen.

posted by wbond 8 years ago