Reputation: 3043
I'm trying to send verification mail but it showing some error
my error is URI malformed
First,error screenshot
I added email package and at the server side i added something like
Accounts.config({
sendVerificationEmail:true
});
i set env_url like this
process.env.MAIL_URL = 'smtp://postmaster%[email protected]:587';
Upvotes: 0
Views: 400
Reputation: 64342
URIs use percent encoding for reserved characters, and a %
by itself is invalid. Also, there should be a :
between the username and the password (see the docs). This should be the format you want:
'smtp://postmaster%40sandbox.mailgun:[email protected]:587'
which decodes to:
'smtp://[email protected]:[email protected]:587'
Upvotes: 2