#!/bin/bash #Server name/ehlo header curl --url smtp://mail.recipientservername.ru/srv.mydomain.ru\ --mail-from testmail@mydomain.ru \ --mail-rcpt postmaster@recipientdomain.ru \ --upload-file send-curl.txt -v : ' Множественный комментарий #--user 'developer@gmail.com:your-account-password' '
Содержимое файла send-curl.txt
From:"Support"<info@mydomain.ru> To:<postmaster@recipientdomain.com> Subject: This is an HTML message Content-Type: text/html; charset="utf8" <html> <body> <p>Just a test!</p> <div style=" background-color: #abcdef; width: 300px; height: 300px; "> </div> Just a test! </body> </html>