Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Does not send if only one To: address #48

Closed
aws-ew-dev opened this Issue · 6 comments

2 participants

Elastic Wolf team eleith
Elastic Wolf team

e=require('emailjs')
s=e.server.connect()
s.send(e.message.create({to:'root',from:'vlad',text:test'}),function(e,m){console.log(e,m)});
undefined

{ [Error: bad response on command 'RCPT']
code: 2,
smtp: '550 5.1.1 : Recipient address rejected: User unknown in local recipient table\n' } { attachments: [],
alternative: null,
header:
{ 'message-id': '1349894146526.2.32016@backend',
to: 'root',
from: 'vlad' },
content: 'text/plain; charset=utf-8',
text: 'test' }

eleith eleith was assigned
eleith
Owner

it looks like emailjs is sending but the smtp server is rejecting it. what are you expecting to happen?

Elastic Wolf team

oops, sorry, this is the correct error, note the undefined in the to, if i add comma it will deliver, root exists of course

s.send({to:'root',from:'vlad',text:'test'},function(e,m){console.log(e,m)});
undefined
{ [Error: bad response on command 'RCPT']
code: 2,
smtp: '550 5.1.1 : Recipient address rejected: User unknown in local recipient table\n' } { attachments: [],
alternative: null,
header:
{ 'message-id': '1349896746321.0.586@backend',
to: 'root',
from: 'vlad' },
content: 'text/plain; charset=utf-8',
text: 'test' }

Elastic Wolf team

s.send({to:'root',from:'vlad',text:'test'},function(e,m){console.log(e,m)});
undefined
{ [Error: bad response on command 'RCPT']
code: 2,
smtp: '550 5.1.1 <undefined> Recipient address rejected: User unknown in local recipient table\n' } { attachments: [],
alternative: null,
header:
{ 'message-id': '1349896746321.0.586@backend',
to: 'root',
from: 'vlad' },
content: 'text/plain; charset=utf-8',
text: 'test' }

Elastic Wolf team

resubmitted, parse stripped , even in the first submit it was there

eleith
Owner

thanks for pointing this out, was able to dive deeper and see that the address parsing was wrong

eleith
Owner

latest master should work for this case now

eleith eleith closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.