mail command settings
Hi!
I want to be able to send an email using a shell script, with the mail command on my Fedora 11 box. It seems easy enough, either simply typing: #mail <address> Subject: <subject> <body> . or: #mail -s "subject" "address" < ~/temp/body.txt How do i assign an smtp server that the mail command can use to send emails? //john |
Did you try googling this? It's quite easy to do:
set smtp=server in your .mailrc, where server is your SMTP server. |
|
Quote:
|
thanks for helping..
i googled .mailrc and found that i should create a .mailrc file in my home folder. I made one that looked like this (considering how i set up the account in a regular client) Quote:
this doesn't work... it gives me the output Quote:
//john |
forget it... i removed the line set smtp-use-starttls (Uses SSL)
and now it works... thank you so much //John |
Quote:
|
All times are GMT -5. The time now is 05:50 AM. |