-
Notifications
You must be signed in to change notification settings - Fork 361
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
Allow verifying multiple emails in one SMTP connection #65
Comments
I'm really new to rust, but I could maybe try this. I'm not quite understanding step 1 though. Is it already calling |
Nice! That'd be great.
Yes exactly, it just means, at line 229 above, call the So step 1 is actually probably 90% of this issue, I'm not sure dividing it into 2 steps was actually clever 😄 |
@redoxeon Have you done some progress implementing this yet? Can I try to implement this feature? Also, @amaurymartiny , do I understand you right, that all API that accepts params like |
I was initially thinking |
@WaffleLapkin I haven't gotten very far on this at all, so if you beat me at it, that'd be totally fine :) |
hey,did you get around to implementing it? |
Nope, never implemented this. I guess this is a good hacktoberfest issue, if you want to tackle it. |
BREAKING CHANGE: The library's main function `check_email`'s argument `CheckEmailInput` nows takes a single `to_email` field, instead of a `to_emails: Vec<String>` ```diff pub struct CheckEmailInput { - pub to_emails: Vec<String>, + pub to_email: String, // --snip-- } ``` This effectively makes the public API more similar to the v0.7.* series. I'm still thinking about how to best verify multiple emails in one SMTP connection, but it most likely will be a new function with a different API. Follow [issue #65](#65) for more info.
BREAKING CHANGE: The library's main function `check_email`'s argument `CheckEmailInput` nows takes a single `to_email` field, instead of a `to_emails: Vec<String>` ```diff pub struct CheckEmailInput { - pub to_emails: Vec<String>, + pub to_email: String, // --snip-- } ``` This effectively makes the public API more similar to the v0.7.* series. I'm still thinking about how to best verify multiple emails in one SMTP connection, but it most likely will be a new function with a different API. Follow [issue #65](reacherhq/check-if-email-exists#65) for more info.
Assume we get as input to the main function something like a
Vec<&str>
, with all emails in the same domain. Is it possible to verify multiple emails on that same domain?In this case, we should just call
email_deliverable
multiple times, using the samesmtp_client
, to avoid too many connections.https://github.com/amaurymartiny/check_if_email_exists/blob/f8acd1ee61a3f7fefe2b1af93d744bb3a9d9095a/core/src/smtp.rs#L219-L239
The text was updated successfully, but these errors were encountered: