//One liner to send an email via smtp
curl -vn --user 'username:password' --url smtps://smtp.server.com:465 --mail-from "postmasterr@sender.net" --mail-rcpt "postmaster@recipient.net" --upload-file <(echo -e "Subject:Mail Test 1\nTest message sent with CURL.\n")//On windows a test file needs to createdcurl -vn --user "username:password" --url smtps://smtp.server.com:465 --mail-from "postmasterr@sender.net" --mail-rcpt "postmaster@recipient.net" --upload-file mail-test.txt#mail-test.txtSubject: Mail test 1Text messsage sent from CURL.
« Go back
Powered by Help Desk Software HESK, in partnership with SysAid Technologies