M
Mortimer.mail
Hi
I have an applescript that creates an email in entourage. For the body
I was using normaly HTML which worked fine. I am now trying to use CSS
format. The email is created ok and the body is populated ok except
all of the formating of the text is missing and I am left with plain
text. Do i need to use the CSS in a different format to get it to
work?
Below is a copy of my applescript with the CSS code.
set theRecipient to {"(e-mail address removed); "}
set theCCRecipient to {""}
set theBCCRecipient to {""}
set theSubject to "Attached CVs"
set theContent to "<HTML><body>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" >Thank you </
SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;font-weight:
bold;\" >very</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > much for </
SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;text-
decoration:underline;\" >taking</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > the time to
</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 18px;color:
#AA0000;\" >interview</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > . </SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;font-weight:
bold;\" ><BR></SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" ><BR><BR></
SPAN>
</Body></HTML>"
tell application "Microsoft Entourage"
set msg to make new outgoing message with properties
{subject:theSubject, content:theContent, recipient:theRecipient, has
html:true, CC recipients:theCCRecipient, BCC
recipients:theBCCRecipient}
activate
end tell
I have an applescript that creates an email in entourage. For the body
I was using normaly HTML which worked fine. I am now trying to use CSS
format. The email is created ok and the body is populated ok except
all of the formating of the text is missing and I am left with plain
text. Do i need to use the CSS in a different format to get it to
work?
Below is a copy of my applescript with the CSS code.
set theRecipient to {"(e-mail address removed); "}
set theCCRecipient to {""}
set theBCCRecipient to {""}
set theSubject to "Attached CVs"
set theContent to "<HTML><body>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" >Thank you </
SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;font-weight:
bold;\" >very</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > much for </
SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;text-
decoration:underline;\" >taking</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > the time to
</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 18px;color:
#AA0000;\" >interview</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > . </SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;font-weight:
bold;\" ><BR></SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" ><BR><BR></
SPAN>
</Body></HTML>"
tell application "Microsoft Entourage"
set msg to make new outgoing message with properties
{subject:theSubject, content:theContent, recipient:theRecipient, has
html:true, CC recipients:theCCRecipient, BCC
recipients:theBCCRecipient}
activate
end tell