Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If we give the same email in TO, we are getting duplicate emails #38

Open
balakrishnan178 opened this issue Mar 7, 2024 · 2 comments
Open

Comments

@balakrishnan178
Copy link

If we give the same email in TO, we are getting duplicate emails. but it is working fine in the older version (4.0.4).

We analysed your code and found the reason.

Previously we used the switch message "getTo" function. So that function handled duplicate emails. Please see the below screenshots
https://prnt.sc/y03OuEG64wBU
https://prnt.sc/ccKrF6fHQV1O

Now we are using our own "getTo" function. we didn't remove duplicate emails
https://prnt.sc/6G3ZUophwTcn
https://prnt.sc/YwRHZ8P-4B7E

So kindly fix this issue in an upcoming version. Thank you

@danijelk
Copy link
Contributor

danijelk commented Mar 7, 2024

Hi,

we could filter the to addresses to remove duplicates I guess, but if you want a quick fix why not just array_unique your emails before feeding them into the ->to() method?

@balakrishnan178
Copy link
Author

Yes sir. we did that.

But if bcc or cc have the same emails which present in "to" list. we are facing issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants