Reply To, insert html code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to create a method for our Receptionist to reply to a message
via outlook and then insert the following html code which I wrote. When word
and/or outlook creates the code it's bloated and some users are reporting
problems with the links.

I would also like to attach the word doc below linked in the html.

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Thank you for your interest in a position with CSI Leasing,
Inc</title>
<style>
p{ font-size: 10pt; font-family: arial, verdana, sans-serif;}
a:hover{color: #336699;}
a:visited {color: dark blue;}
</style>
</head>

<body lang="en-us">
<p>Thank you for your interest in a position with CSI Leasing, Inc. We will
review your resume to see if there is a match with our open position.</p>
<p>So that we can fulfill our obligations, we ask that all applicants click
on the following <a
href="http://www.csileasing.com/FillableCSIVoluntaryDisclosure04-05.doc">link</a>
or complete the attached form. When you have completed the form, simply
e-mail it to <a
href="mailto:[email protected]">[email protected]</a>.Thank you
again for your interest and we look forward to speaking with you.</p>
<p>
Human Resources Department<br />
CSI Leasing, Inc.<br />
9990 Old Olive St. Rd.<br />
St. Louis, MO 63141<br />
314.997-7010<br />
314.997.7203 fax<br /></p>

</body>

</html>

Any help would be greatly appreciated. I am really familiar with VBA in
Excel but after doing a preliminary glance at Outlook VBA and macro's they
seem quite different.

Thanks
 
You can always control the HTML by using the Mailitem.HTMLBody property. Put
your HTML there.

However, with replies and forwards going back and forth the HTML will be
changed by the Outlook and Word editors. It will also be rearranged and some
of your tags will be rewritten. You have no control over that. Even
ContentID GUID's will change.
 
Since you mentioned that it would alter my code anyways, I just made an
autotext entry with all the text and links and made a button on toolbar to
insert the autotext.

Although not as easy as I was originally hoping it saved her several clicks :)

Thanks for the Heads up Ken and the time you took to try and assist.

Joshua
 
Back
Top