Cant send mail with core.sendmail

I was trying to send details and results of my actionchain via mail on completion, but I don’t know how core.sendmail works and i couldn’t find anything that can explain it to me.

For now, i tried:
- Sending a mail from CLI to some “XYZ” email using core.sendmail


  • It says mail has been sent successfully but I never receive it.

The command I used:

Hi @piyush.a! Can you see if you can get this working at the command line first? It might give you more visibility to what may be going on.

I had issues with sendmail a while ago. my guess is that your ISP’s IP address could be blocked and because of which the e-mails are not being sent. You can verify that with the following command. Make sure you run this command from action runner.

sendmail -v "" <<EOF
subject:"test subject"

Example Message

If your ISP’s address is blocked you should see something like this in the output since you have enabled the verbose mode

050 >>> DATA
050 250 2.1.5 OK 18si14075339plg.91 - gsmtp
050 354 Go ahead 18si14075339plg.91 - gsmtp
050 >>> .
050 550-5.7.1 [] The IP you’re using to send mail is not authorized to
050 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your
050 550-5.7.1 service provider instead. Learn more at
050 550 5.7.1 18si14075339plg.91 - gsmtp
050 root@8f4830ad0a22… Connecting to local…
050 root@8f4830ad0a22… Sent
250 2.0.0 05OE85F2001748 Message accepted for delivery… Sent (05OE85F2001748 Message accepted for delivery)
Closing connection to [