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

Fwd: Re: mail


  • Subject: Fwd: Re: mail
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 26 Jul 2013 14:43:47 +0200 (CEST)
  • Importance: Medium

hi Axel,
 
With forcing the sender, I meant sendmail will use the computers host name by default with -f you can force a real domain user, command line 'mail' doesn't seem to have that option only 'sendmail'
 
hm, your syntax looks interesting and very useful.
 
just one question... From and To needs to be in the command line before <<END-OF-EMAIL 
and also in the From: , To: header?
 
Already many thanks for your effort,
/John
 
PS. no spam.... only internal mail notifications :)


Le 25 juil. 2013 à 21:44, email@hidden a écrit :

> 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"

Hello "J",

Not sure what you mean by "forcing the from sender"...


> [...]
> ---- works but I don't know how to add CC recipient and how to add body text,
> [...]
> many thanks for any feedback,
>
> /J

... but perhaps could you try to build your MailshellScript so that it contains a string similar to this one:

"/usr/sbin/sendmail -i -t -f '<email@hidden>' '<email@hidden>' <<END-OF-EMAIL
From: Jack Zero <email@hidden>
To: John One <email@hidden>
Cc: John Two <email@hidden>
Subject: subject is OK

This is the body.
Bye!
END-OF-EMAIL
"

This should work with a stock configuration of Postfix on Mac OS X (but may require to manage mail queues in case a delivery doesn't succeed immediately).
And of course, this also assumes your intent is not to increase the worldwide spam volumes... ;-)


HTH,
Axel


_______________________________________________
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
 _______________________________________________
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>
  • Prev by Date: Re: Recording AppleEvent Class Codes
  • Next by Date: Re: Recording AppleEvent Class Codes
  • Previous by thread: Re: mail
  • Next by thread: Re: mail
  • Index(es):
    • Date
    • Thread