Re: do shell script "mail...."
Re: do shell script "mail...."
- Subject: Re: do shell script "mail...."
- From: Jean-Baptiste <email@hidden>
- Date: Thu, 9 Oct 2003 20:17:30 +0200
You might try XMail (you'll find it there
<
http://www.atilla.org/~macfan/> or <
http://www.osaxen.com>) that will
let you send an mail and you can specify the SMTP server to use.
Jean-Baptiste LE STANG
Le jeudi, 9 oct 2003, ` 18:00 Europe/Paris, Steve Thompson a icrit :
I've looked through the archives and can't find an answer to this
question. I've also done a search on google and read the man pages and
have to come to the conclusion that I'm looking in the wrong place.
Additionally, this is a Unix question which I apologise for - but it
is being called from an AppleScript so someone might have seen this
before!
A script that I've written is meant to run unattended. If something
went wrong it would write to a log file. It has now been requested
that an email is sent if there's an error. Which I thought would be
easy - but here's the question.
I already have an SMTP server on my network 192.168.0.20 - so I want
mail to use that instead of sendmail on the local machine to send the
mail. So there's either a setting somewhere that tells mail to use
192.168.0.20 or there's a setting somewhere that tells sendmail to
route all mail to 192.168.0.20. But I can't find information about
either. It seems that mail ONLY sends mail through sendmail and
sendmail wants to do all the work.
Grateful to anyone who can point me in the right direction (or another
way of doing this). The end result, to clarify, is that I want to:
try
doing something
on error errmsg
send an email to email@hidden with subject "It failed" body "It
didn't work - error: " & errmsg relaying through 192.168.0.20
end try
Thanks
Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.