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
|