4pack wrote:
Ah b
**ks to it. Unbelievably this is just too much like hard work...
Not sure what your script looks like, but this auto-reply script (set up as a Mail Rule) replies in Rich Text (from
http://macscripter.net/viewtopic.php?id=34041) :
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #E6E6EE;
overflow: auto;"
title="this text can be pasted into the AppleScript Editor">
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with thisMessage in theMessages
set theName to extract name from sender of thisMessage
if exists reply to of thisMessage then
set theAddress to reply to of thisMessage
else
set theAddress to extract address from sender of thisMessage
end if
set theNewMessage to make new outgoing message
tell theNewMessage
make new to recipient at end of to recipients with properties {name:theName, address:theAddress}
set visible to false
set subject to "Re: " & subject of thisMessage & "- Change of address"
set sender to "My Name <myusername@mydomain.com>"
set content to "Dear " & theName & ",
This is an automated reply. Your message has been forwarded to my new e-mail address. For future reference, please update your records by replacing my former address myoldusername@myolddomain.com with my new address mynewusername@mynewdomain.com .
Thankyou,
Me"
end tell
delay 5
send theNewMessage
tell thisMessage
set was replied to to true
end tell
end repeat
end tell
end perform mail action with messages
end using terms from</pre>