Linux – How to send emails from linux terminal



Linux – How to send emails from linux terminal

Linux - How to send emails from linux terminal

SCRIPT BELOW

Visit my blog post for this and more tutorials.
https://placefortech.com/how-to-send-emails-from-a-linux-terminal/

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids | 1000
# Make this empty to disable rewriting.
#root=postmaster
SERVER=[YOUR EMAIL]

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587
#Or whatever domain you using

AuthUser=[YOUR EMAIL]
AuthPass=[YOUR PASSWORD]
UseTLS=YES
UseSTARTTLS=YES

# Where will the mail seem to come from?
#rewriteDomain=
rewriteDomain=gmail.com
#Or whatever @domain.com you using
# The full hostname
hostname=[HOSTNAME]
#Get the hostname by issuing the command hostname

# Are users allowed to set their own From: address?
# YES – Allow the user to specify their own From: address
# NO – Use the system generated From: address
FromLineOverride=YES

Visit our tech blog, lots of tutorials here.
https://placefortech.com

Follow my Facebook page and group.
https://facebook.com/elricit
https://www.facebook.com/groups/2066530200304406/

Don’t forget to subscribe to my channel! šŸ™‚

Thank you for watching.

TambiƩn puedes encontrar este video en espaƱol en el siguiente enlace:
https://www.youtube.com/watch?v=l5Diwe3g4bA&feature=youtu.be

Comments are closed.