Re: Recycling Email Drafts in Mail
Re: Recycling Email Drafts in Mail
- Subject: Re: Recycling Email Drafts in Mail
- From: James Cook <email@hidden>
- Date: Fri, 27 Mar 2009 11:13:33 -0400
Thanks to all who've responded but I'm still after the script as originally described.
why not just put the guts of your frequently sent message right in a script, and then have the script make a new outbound message when you need it
I'm sending a marketing email to a lot of people. (It's an opt in list, not spam) I need to have a styled email with some images embedded, so putting a message into my script doesn't work. The idea is to have the message written and saved in Mail, then have AppleScript open it, then address and send it without eliminating the original Draft. My database can then loop through a list of addresses.
Mail does have "Stationary", but it's not the same as Eudora's Mail Stationary is more like blank paper with a design on it. Unlike Eudora stationary, it's not for saving messages themselves for future use.
At 1:56 PM -0400 3/26/09, James Cook wrote: I've got an AppleScript for Eudora that works for sending pre-written email to a recipient from my database.Is there a way to do this with Apple Mail? I want to save a Draft to use whenever, so the original needs to remain in Drafts, but I want to open, address and send a copy.
Because I have multiple accounts, I can't seem to save into the Drafts folder itself. Mail has a separate folder for each within Drafts. In my case I'm trying to utilize a message in Drafts:Gmail
Apple's Mail.app has Send Again available in the Message menu, but I found nothing in its library to indicate I can Send Again via AppleScript.
Here's what works in Eudora. Rcpnt is assigned the value of the Email Address from my database. Fdbck returns with the AppleScript Result showing either the subject on a successful send, or the error on a failure.
set Rcpnt to $«Email Address»$
tell application "Eudora"
try
send again last message of mailbox "Templates"
set Fdbck to subject of message 0
set field "to" of message 0 to Rcpnt
queue message 0
set Fdbck to Fdbck
end try
end tell
|
_______________________________________________
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