User Tools

Site Tools


mywiki:experience:emailsmtp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mywiki:experience:emailsmtp [2016/05/10 15:02] – [Gmail SMTP] shaoguohmywiki:experience:emailsmtp [2019/09/15 18:55] (current) – external edit 127.0.0.1
Line 12: Line 12:
          
 ====== Test SMTP ====== ====== Test SMTP ======
 +===== Test SMTP With telnet =====
 <file> <file>
 # telnet localhost smtp # telnet localhost smtp
Line 37: Line 38:
 Connection closed by foreign host. Connection closed by foreign host.
 </file> </file>
 +
 +
 +===== Test SMTP With sendmail =====
 +
 +<file>
 +cat /tmp/email.txt
 +
 +Subject: Terminal Email Send
 +
 +Email Content line 1
 +Email Content line 2
 +</file>
 +
 +<file>
 +sendmail user@example.com  < /tmp/email.txt
 +
 +</file>
 +
 +===== Test SMTP With Mail =====
 +Without attachment: mail -s "Test Subject" user@example.com < /dev/null
 +
 +With attachment: mail -a /opt/backup.sql -s "Backup File" user@example.com < /dev/null
 +
 +===== Test SMTP With Mutty =====
 +Without attachment:  mutt -s "Test Email" user@example.com < /dev/null
 +
 +With attachment: # mutt  -s "Test Email" -a /opt/backup.sql user@example.com < /dev/null
 +
 +===== Test SMTP With ssmtp =====
 +# ssmtp admin@example.com
 +Subject: Test SSMTP Email
 +Email send test using SSMTP
 +via SMTP server.
 +^d
 +
 +
  
mywiki/experience/emailsmtp.1462863769.txt.gz · Last modified: (external edit)