This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

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

Result:

  • 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 "[email protected]" <<EOF
subject:"test subject"
from:"[email protected]"

Example Message
EOF 

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 [49.207.200.40] 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 https://support.google.com/mail/?p=NotAuthorizedError 18si14075339plg.91 - gsmtp
050 root@8f4830ad0a22… Connecting to local…
050 root@8f4830ad0a22… Sent
250 2.0.0 05OE85F2001748 Message accepted for delivery
[email protected]… Sent (05OE85F2001748 Message accepted for delivery)
Closing connection to [127.0.0.1

2 Likes