To send mail from linux terminal the below is the command as example.
To send mail from terminal you need to be login as a root or you must have root privileges
# mail -v -s 'testing email' recipientmailid@gmail.com <press enter>
write your message
and press (dot). key
mail sent successfully
'testing email' - is to be treated as a subject of a mail
recipient email - it represent which person mail id going to be received mail.
To send mail from terminal you need to be login as a root or you must have root privileges
# mail -v -s 'testing email' recipientmailid@gmail.com <press enter>
write your message
and press (dot). key
mail sent successfully
'testing email' - is to be treated as a subject of a mail
recipient email - it represent which person mail id going to be received mail.
0 comments:
Post a Comment