What's the script? (be sure to edit out the email addresses)
I usually just use sendmail directly, like this:
sendmail [email]email@domain.com[/email] < ~/maildir/mailmessage
and that works out just fine, never had a problem. You could even use a variable if you wanted:
sendmail $email_addy < ~/maildir/mailmessage
That's always worked for me, assuming that your MTA is sendmail, or it is at least available.
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
Thanks for your reply.
I tried using sendmail and it gave me error --
sendmail: not found
How can I solve this?
Thanks!
Install sendmail? try usingmail instead of sendmail, too.
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
I would like to send mail to myself using a for loop.
Like I would like to send email to myself 100 times with a bash shell script. I use to have a script that does this, but I seem to have lost it.
This thread is over four years old. Please start a new thread to ask your questions.
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735