User Tools

Site Tools


sendemail

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
sendemail [06.10.2013 12:59]
derk
sendemail [09.10.2013 19:24] (current)
derk
Line 4: Line 4:
  
 Execute this command to install sendEmail: Execute this command to install sendEmail:
-<file bash>​sudo apt-get install sendemail</​file>+<code bash>​sudo apt-get install sendemail</​code>
  
 This command will send a simple e-mail with subject and message: This command will send a simple e-mail with subject and message:
-<file bash>​sudo sendemail -f mail@from-email-address.de -t mail@to-email-address.de -u "​Subject"​ -m "​Message"​ -s mail.my-smpt-server.de:​25 -xu smtp-user -xp smtp-password</​file>+<code bash>​sudo sendemail -f mail@from-email-address.de -t mail@to-email-address.de -u "​Subject"​ -m "​Message"​ -s mail.my-smpt-server.de:​25 -xu smtp-user -xp smtp-password</​code>
  
 This command will send an e-mail with file attachment: This command will send an e-mail with file attachment:
-<file bash>​sudo sendemail -f mail@from-email-address.de -t mail@to-email-address.de -u "​Subject"​ -m "​Message"​ -s mail.my-smpt-server.de:​25 -xu smtp-user -xp smtp-password -a /​path/​to/​my/​file</​file>+<code bash>​sudo sendemail -f mail@from-email-address.de -t mail@to-email-address.de -u "​Subject"​ -m "​Message"​ -s mail.my-smpt-server.de:​25 -xu smtp-user -xp smtp-password -a /​path/​to/​my/​file</​code>
  
 As always the help is appears with this command: As always the help is appears with this command:
-<file bash>​sendemail -h</file>+<code bash>​sendemail -h</code>
 {{:​sendemail.png|}} {{:​sendemail.png|}}
sendemail.txt ยท Last modified: 09.10.2013 19:24 by derk