Email Question

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

Guest

Hello,

I have a button which opens an email and enters information from selected
fields in the body of the email and all works fine. My questions is this:

I want one of the fields to be "Bold". Also, I would like to change the
color as well.

I know it can be done from outlook once the email is displayed but I was
hoping to somehow code it so it is already completed when the email displays.

Any help would be most appreciated!!

Thanks!!!
 
Here is the code to do that using Outlook:
You will have to use <bold>all of the fields or text to be bold</bold>

Also you will have to do some other research on the color/font aspects
of HTML
First the html references then the Outlook code:

+++++++++++++++++++++++++++++++


The following link is to a HTML reference page that covers the above
and a whole lot more.


http://www.html-reference.com/


The in there you will also find perhaps another alternative to the
table thought. It is an html
reference to text format <tt>


http://www.html-helper.net/tutorial003.htm


and also


http://www.html-reference.com/TT.htm


Hope all of this has given you some ideas.


+++++++++++++++++++++++++++++++

Set o = CreateObject("Outlook.Application")
Set m = o.CreateItem(0)


m.To = Forms![HiddenKey]![HManagerEmail]
' m.cc = for copies

' m.bcc = for blind copies

m.Subject = "Defect Analysis for " & Forms![fieldname]

' m.body = "now is the time" if html not
desired

==================================
m.bodyformat = 2 ' not necessary if no html

m.htmlbody = Chr(13) & Chr(13) & _
"<body><Table><tr><td><b> Date: </b></td><td>" & Date &
"</td></tr>" & _
"<tr><td><b>Manager: </b></td><td>" &
Forms![HiddenKey]![HManager] & "</td></tr>" & _
"<tr><td><b>Name: </b></td><td>" &
Forms![HiddenKey]![HCompany] & "</td></tr>" & _

"<tr><td></td><td></td></tr>" & _
"</Table></body>"
===================================

' m.send ' to send it instead of displaying it.
m.Display

m=nothing
o = nothing

+++++++++++++++++++++++++++++++++


Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top