• 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
mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail


  • Subject: mail
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 25 Jul 2013 16:31:00 +0200 (CEST)
  • Importance: Medium

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>
  • Prev by Date: Re: [sul] Smile opens at least 11 other applications
  • Next by Date: Re: mail
  • Previous by thread: Re: [sul] Smile opens at least 11 other applications
  • Next by thread: Re: mail
  • Index(es):
    • Date
    • Thread