Drillster / drone-email

Drone plugin for sending email notifications
Apache License 2.0
45 stars 43 forks source link

Invalid address "": mail: no address #61

Closed maartenbrakkee closed 2 years ago

maartenbrakkee commented 2 years ago

Hi I'm getting the following error:

latest: Pulling from drillster/drone-email
Digest: sha256:cfa526be2c76c4d01006d2541df2290daa6dbf8a103287ad35b4a8d3ac747315
Status: Image is up to date for drillster/drone-email:latest
time="2022-03-29T19:35:38Z" level=error msg="Could not send email to \"redacted@redacted.com\": gomail: could not send email 1: gomail: invalid address \"\": mail: no address" 
gomail: could not send email 1: gomail: invalid address "": mail: no address

with the following Drone step:

- name: notify
  image: drillster/drone-email
  settings:
    from.address: from@domain.com
    from.name: Drone
    host: mail.domain.com
    port: 587
    username:
      from_secret: email_username
    password:
      from_secret: email_password
    recipients_only: true
    recipients:
      - redacted@redacted.com
StarGate01 commented 2 years ago

I am hitting the same issue;

latest: Pulling from drillster/drone-email
Digest: sha256:cfa526be2c76c4d01006d2541df2290daa6dbf8a103287ad35b4a8d3ac747315
Status: Image is up to date for drillster/drone-email:latest
time="2022-04-11T16:11:24Z" level=error msg="Could not send email to \"redacted@redacted.com\": gomail: could not send email 1: gomail: invalid address \"\": mail: no address" 
gomail: could not send email 1: gomail: invalid address "": mail: no address

Both with

  recipients_only: true
  recipients:
      - redacted@redacted.com

and without (commit author only).

radokristof commented 2 years ago

I have the same problem as well.

yauhen-vastraknutau-epam commented 2 years ago

Same issue for me