Live data from Hacker News

curl can be used to send emails with SMTP

mastodon.social

1–6 of 6 posts

Re: curl can be used to send emails with SMTP

#2
Interesting and good to be aware of

When on a random CLI though my personal preference though is still to use telnet as the commands are easily memorized and there’s something more natural about typing the email out and then sending it.

Re: curl can be used to send emails with SMTP

#4
post #2

Interesting and good to be aware of When on a random CLI though my personal preference though is still to use telnet as the commands are easily memorized and there’s something more natural about typing the email out and then sending it.

me too, but more and more relays enforce tls or startssl (which is good!) and that's where telnet isn't a good fit imho.

I came across curl when I tested the mailgun.com smtp relay (mandatory tls + auth) and it worked immediately.

Re: curl can be used to send emails with SMTP

#5
post #4
post #2

Interesting and good to be aware of When on a random CLI though my personal preference though is still to use telnet as the commands are easily memorized and there’s something more natural about typing the email out and then sending it.

me too, but more and more relays enforce tls or startssl (which is good!) and that's where telnet isn't a good fit imho. I came across curl when I tested the mailgun.com smtp relay (mandatory tls + auth) and it worked immediately.

If you really want to do things manually, like telnet but with ssl, see OpenSSLs sclient:

  openssl s_client -connect my.mailserver.com:465