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

mailgun-js cannot parse all emails #226

Open
edutucci opened this issue Oct 25, 2018 · 2 comments
Open

mailgun-js cannot parse all emails #226

edutucci opened this issue Oct 25, 2018 · 2 comments
Assignees

Comments

@edutucci
Copy link

Hi I am using mailgun-js 0.21.0.
var api_key = 'pubkey-XXXXXXXXX';
var domain = 'XXXXXXXXXXXX';
var mailgun = require('mailgun-js')({apiKey: api_key, domain: domain});

mailgun.parse(
[ 'alice@example.com', 'bob@example.com', 'fake@email.com' ],
function (error, body) {
if (error) {
console.log(error)
} else {
console.log(body);
}
}
);

result:
{ parsed: [ 'alice@example.com' ], unparseable: [] }

@bojand bojand self-assigned this Dec 5, 2018
@ianvonholt
Copy link

This is an issue that I'm seeing as well.

The example provided on https://documentation.mailgun.com/en/latest/api-email-validation.html#example

Does not return the proper results, and only the first e-mail address in the list is evaluated.

@chderen
Copy link

chderen commented Jan 7, 2020

it's error in the example.
the address should be send as string spereted by comma "alice@example.com,bob@example.com,fake@email.com"
not as array

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

4 participants