• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mail


  • Subject: Re: mail
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 25 Jul 2013 21:44:56 +0200 (CEST)
  • Importance: Medium

hi Luther, hi all,
 
Yes, I looked earlier at the man pages
The man pages doesn't show an option to force the "From Sender"
 
But sendmail does: man sendmail

-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

 _______________________________________________
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: Axel Luttgens <email@hidden>
    • Re: mail
      • From: Doug McNutt <email@hidden>
References: 
 >mail (From: "email@hidden" <email@hidden>)
 >Re: mail (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: mail
  • Next by Date: Re: mail
  • Previous by thread: Re: mail
  • Next by thread: Re: mail
  • Index(es):
    • Date
    • Thread