-F full_name
Set the sender full name. This overrides the NAME environment
variable, and is used only with messages that have no From: mes-
sage header.
-f sender
Set the envelope sender address. This is the address where
delivery problems are sent to. With Postfix versions before 2.1,
the Errors-To: message header overrides the error return
address.
If I proceed with sendmail, I need to know how to add CC recipient and how to load the body text.
Here the original post:
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"
---- works but I don't know how to add CC recipient and how to add body text, but over here I can force the sender. Man page doesn't ring a bell to me, maybe someone understands the options.
do shell script ("printf 'Subject: " & status & "' | sendmail -f " & fromSender & " " & toSender & "")
--- works but don't know how to force the "Sender", I think it's not possible in mail (command line)
do shell script ("mail -s '" & status & "' -c " & ToSenderCC & " " & toSender & " < " & "" & logPath & "")
many thanks for any feedback,
/J