Skip to content

Email "from" does not work #32

@GovSat1

Description

@GovSat1

It seems that email "from" is not getting set properly?

Smtp config appears correct at startup

timeoff   | get_send_email:  true
timeoff   | Using SMTP for email delivery
timeoff   | smtp_config: {"host":"mail.smtp2go.com","port":"2525","from":"aaa <xxx@abc.com>","requireTLS":false,"auth":{"user":"xxx","pass":"xxx","required":true}}

But fails when trying to send out

response: '550 to send email from a blank sender, enable blank senders',
  responseCode: 550,
  command: 'RCPT TO',
  rejected: [ 'xxx' ],
  rejectedErrors: [
    Error: Recipient command failed: 550 to send email from a blank sender, enable blank senders
        at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:807:19)
        at SMTPConnection._actionRCPT (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1662:24)
        at SMTPConnection.<anonymous> (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1629:30)
        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:517:28)
        at addChunk (node:internal/streams/readable:368:12)
        at readableAddChunk (node:internal/streams/readable:341:9)
        at Readable.push (node:internal/streams/readable:278:10)
        at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
      code: 'EENVELOPE',
      response: '550 to send email from a blank sender, enable blank senders',
      responseCode: 550,
      command: 'RCPT TO',
      recipient: 'xxx'
    }
  ]

I also had to add the SEND_EMAIL env variable to the docker compose file as it's missing from the one in the repo and thus not enabled by default.

I tried to debug further but not sure exactly where app.json comes into play with your fork?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions