[AccessD] Bold In an Email

Stuart McLachlan stuart at lexacorp.com.pg
Thu Mar 3 15:18:14 CST 2022


Since you are uilding your body elsewhere with a string which is being converted from text 
to  HTML  you probably need to do something like this to get it at the end of the HTML body:

strHTML = myItem.body
strAddition =  <BR> <b style='color:red;'> *** This is a blended
course, so please send out the prework and testing instructions. We
will be doing the certificates on this.</b> </BODY>"

myItme.body = Replace (strHTML,"</BODY",strAddition)


On 3 Mar 2022 at 8:39, Rocky Smolin wrote:

> Questions - sorry if they're newbie:
> 
> " first build up the entire body" meaning...put tags on all the lines
> in the body?
> 
> "then set myItem.body only once" Where do I do that? Start or end? And
> what is the syntax?
> 
> Thanks again.
> 
> Rocky
> 
> On Thu, Mar 3, 2022 at 6:31 AM Jim Dettman via AccessD <
> accessd at databaseadvisors.com> wrote:
> 
> > Rocky,
> >
> > This:
> >
> > myItem.body = myItem.HTMLBody & " <b style='color:red;'>*** This is
> > a blended course, so please send out the prework and testing
> > instructions. We will be doing the certificates on this.</b>"
> >
> > is making the new text fall outside of the end HTML tag  (</HTML>)
> > because the body property was already set somewhere else.
> >
> > What you want to do is first build up the entire body, then set
> > myItem.body only once.   If you do that, the tail end if your body
> > would end up looking like this:
> >
> > <BR><FONT FACE="Calibri">Type:                             In Person
> > </FONT> </P> <BR> <b style='color:red;'> *** This is a blended
> > course, so please send out the prework and testing instructions. We
> > will be doing the certificates on this.</b> </BODY> </HTML>
> >
> > Jim.
> >
> >
> >
> > -----Original Message-----
> > From: AccessD On Behalf Of Rocky Smolin
> > Sent: Wednesday, March 2, 2022 8:46 PM
> > To: Access Developers discussion and problem solving
> > <accessd at databaseadvisors.com>
> > Subject: Re: [AccessD] Bold In an Email
> >
> > Jim: When I replace only my line of code with yours I get this,
> > below looks like all the HTML tags are showing.  I copied off of the
> > email. Option on my Outlook is defaulted to HTML
> >
> > Any idea on how to fix?
> >
> > TIA
> >
> > Rocky
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> > <HTML>
> > <HEAD>
> >
> > <META NAME="Generator" CONTENT="MS Exchange Server version
> > 14.02.5004.000"> <TITLE></TITLE> </HEAD> <BODY> <!-- Converted from
> > text/rtf format -->
> >
> > <P><FONT FACE="Calibri">Hi Katie: </FONT>
> > </P>
> >
> > <P><FONT FACE="Calibri">I am confirming that the above referenced
> > course is a GO. Right now we show 1 participant(s). Please be sure
> > to coordinate with Chandany  McDermott and the
> > participant(s).</FONT></P>
> >
> > <P><FONT FACE="Calibri">Preferred Start Date:   1/12/2023 </FONT>
> >
> > <BR><FONT FACE="Calibri">Credit Hours:                16 </FONT>
> >
> > <BR><FONT FACE="Calibri">Course Duration:          2 </FONT>
> >
> > <BR><FONT FACE="Calibri">Type:                             In Person
> > </FONT> </P> <BR>
> >
> > </BODY>
> > </HTML> <b style='color:red;'> *** This is a blended course, so
> > please send out the prework and testing instructions. We will be
> > doing the certificates on this.</b>
> >
> > *** CPE hour course and the certificates will be done by:
> >
> > Name:                           Chandany  McDermott
> > Email:                            cmcdermott at mncpa.org
> >
> > Thank You,
> >
> > On Wed, Mar 2, 2022 at 1:31 PM Jim Dettman via AccessD <
> > accessd at databaseadvisors.com> wrote:
> >
> > >
> > > myItem.body = myItem.HTMLBody & " <b style='color:red;'>*** This
> > > is a blended course, so please send out the prework and testing
> > > instructions. We will be doing the certificates on this.</b>"
> > >
> > >
> > >
> > >
> > --
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > https://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> >
> > --
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > https://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> >
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 




More information about the AccessD mailing list