mail
mail
hi,
Does anyone knows the syntax for: (in Sendmail)
Add a body text 'from a file'
Add a CC recipients
I wanted to use sendmail instead of mail since I can not find how to force the "From Sender" in mail.
That said, now I have trouble to find the right syntax to add body text and CC's in Sendmail.
Any help much appreciated.
set status to "subject is OK"
set fromSender to "email@hidden"
set toSender to "email@hidden"
set ToSenderCC to "email@hidden"
set logPath to "Path/Of/A/File"
set MailshellScript to ("printf 'Subject: " & status & "' | sendmail -f " & fromSender & " " & toSender & "")
set MailResult to (do shell script (MailshellScript))
--- works but don't know how to force the From Sender
do shell script ("mail -s '" & status & "' -c " & ToSenderCC & " " & toSender & " < " & "" & logPath & "")
many thanks, John
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
- Follow-Ups:
- Re: mail
- From: Luther Fuller <email@hidden>