Sending an SMTP Mail using Curl in a Batch file
Posted: 18 Apr 2020 16:05
Hey there!
I'd like to send an email using curl in a batch file.
I tried the following lines:
curl --url 'smtps://securesmtp.t-online.de:587' --ssl-reqd --cacert cacert.pem --mail-from 'user@t-online.de' --mail-rcpt 'user@t-online.de' --user 'user@t-online.de:password'
And this works out well!
Now I'd like to make the connection more secure. In the end, it says: " Connection #0 to host securesmtp.t-online.de left intact"
How could this be closed?
And furthermore, how could I kind of protect the password I type in?
Could someone help me with that?
I'd be grateful for every help!
Kind regards,
X3nion
I'd like to send an email using curl in a batch file.
I tried the following lines:
curl --url 'smtps://securesmtp.t-online.de:587' --ssl-reqd --cacert cacert.pem --mail-from 'user@t-online.de' --mail-rcpt 'user@t-online.de' --user 'user@t-online.de:password'
And this works out well!
Now I'd like to make the connection more secure. In the end, it says: " Connection #0 to host securesmtp.t-online.de left intact"
How could this be closed?
And furthermore, how could I kind of protect the password I type in?
Could someone help me with that?
I'd be grateful for every help!
Kind regards,
X3nion