Unable to send invitation email to user #1623

Closed
opened 2026-04-05 19:37:46 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @zulredfrog on 4/9/2025

I have configured the email part in the configuration file with following configuration:

 email:
        smtp_host: "smtp.resend.com"
        smtp_port: 587
        smtp_user: "resend"
        smtp_pass: "XXXXXXXXXX"
        no-reply: "no-reply@mydomain.com"

When I tried to send invite email to user, I encountered this error:

2025-04-09T10:03:04.687Z [error]: Mail command failed: 501 Error: Bad sender address syntax
Stack: Error: Mail command failed: 501 Error: Bad sender address syntax
    at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:807:19)
    at SMTPConnection._actionMAIL (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1616:34)
    at SMTPConnection.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1085:18)
    at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:991:20)
    at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:772:14)
    at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
    at TLSSocket.emit (node:events:524:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5) {"code":"EENVELOPE","response":"501 Error: Bad sender address syntax","responseCode":501,"command":"MAIL FROM"}

I also tried to use SMTP port 465 with smtp_secure: true config but still encountered the same error. I've tested the SMTP host with cURL test through both ports (465 & 587, SSL & TLS), seems working and the email was sent and received.

I saw OP in issue #203 was able to make it work using port 587, so I'm not sure why it's not working and wonder if anyone had encountered this similar issue before.

*Originally created by @zulredfrog on 4/9/2025* I have configured the email part in the configuration file with following configuration: ``` email: smtp_host: "smtp.resend.com" smtp_port: 587 smtp_user: "resend" smtp_pass: "XXXXXXXXXX" no-reply: "no-reply@mydomain.com" ``` When I tried to send invite email to user, I encountered this error: ``` 2025-04-09T10:03:04.687Z [error]: Mail command failed: 501 Error: Bad sender address syntax Stack: Error: Mail command failed: 501 Error: Bad sender address syntax at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:807:19) at SMTPConnection._actionMAIL (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1616:34) at SMTPConnection.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1085:18) at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:991:20) at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:772:14) at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44) at TLSSocket.emit (node:events:524:28) at addChunk (node:internal/streams/readable:561:12) at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) at Readable.push (node:internal/streams/readable:392:5) {"code":"EENVELOPE","response":"501 Error: Bad sender address syntax","responseCode":501,"command":"MAIL FROM"} ``` I also tried to use SMTP port 465 with `smtp_secure: true` config but still encountered the same error. I've tested the SMTP host with cURL test through both ports (465 & 587, SSL & TLS), seems working and the email was sent and received. I saw OP in issue #203 was able to make it work using port 587, so I'm not sure why it's not working and wonder if anyone had encountered this similar issue before.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1623