Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A simple e-mail script

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I've searched for e-mail keyword and the FAQ for a simple e-mail script and found this script that will do it for me:

at the command line I typed:

mailx -s "File Transferred" myname@mycompany.com < sometext.txt

This is to test sending an e-mail to my e-mail address (Lotus Notes server). I did not get the e-mail.

I went to /var/mail and the e-mail was sent successfully.

What am I doing wrong? Any help will be greatly appreciated.
 
You should set the SMTP server in sendmail or your mailserver (the host who is sending the mail). As pete91z state, read the sendmail man page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top