none
Embed a background image in a html code sent via powershell

    Question

  • Hi,

    maybe not important but i need this :D

    i have written a HTML code full of tables, tags, css styles, variables and ... which is inserted into a powershell script to be used as the body of an email and i like that html page to have a background image

    when i sent email to myself, image is shown in background of email (it is obvious cause the address of the image can be reached in my computer)

    but when i send it to other people, they cannot see that (obvious again)

    my friend told me this can be solved in .net programming languages but can i make it right through html and powershell ?

    thanks


    Payne is back

    • Moved by Bill_Stewart Monday, March 24, 2014 9:41 PM Off-topic/abandoned
    Friday, July 12, 2013 6:21 AM

All replies

  • You have to encode and embed the image.

    See repository for scripts showing how to embed an image in a message.  It does not require special coding.

    The easier method is to place the image on a public web server.  Most non-personal mail does that today.  It is more efficient.


    ¯\_(ツ)_/¯

    Friday, July 12, 2013 7:17 AM
  • Here is a copy of one of my posts from the past. (2011)

    #Here is the template for the SMTPClient of dotNet.
    
    $msg=new-object System.Net.Mail.MailMessage
    $msg.From='you@home.com'
    $msg.to.Add('recip@somewhere.net')
    $msg.Subject='test of image'
    $msg.IsBodyHtml=$true
    $msg.Body='<html><body> Check this out:<br /> <img src="cid:image1"></body></html>'
    #images are found byt the 'COntentID-CID' in the body of the message
    $att = new-object Net.Mail.Attachment('F:\Projects\My Pictures\Output1.JPG')
    $att.ContentDisposition.Inline = $True
    $att.ContentDisposition.DispositionType = "Inline"
    $att.ContentType.MediaType = "image/jpeg"
    $att.ContentId = "image1"
    $msg.Attachments.Add($att)
    
    $smtp=new-object System.Net.Mail.SmtpClient
    $smtp.host='smtp.myserver.com'
    $smtp.Credentials=Get=Credential
    
    $smtp.Send($msg)
    
    


    ¯\_(ツ)_/¯

    Friday, July 12, 2013 7:22 AM
  • You have to encode and embed the image.

    See repository for scripts showing how to embed an image in a message.  It does not require special coding.

    The easier method is to place the image on a public web server.  Most non-personal mail does that today.  It is more efficient.


    ¯\_(ツ)_/¯

    Thanks

    using a web server is what i thought about but there are some problems

    if I use an internet public server :

    there are receivers who do not have internet access so ..

    if use a public internal one :

    some users check email from outside so that server is not reachable so ...

    would u please guide me to a good method or bunch of script lines for this, i mean saving images with the html code so anyone can see the background image anywhere

    I found these : are they OK ?

    http://www.example-code.com/powershell/smtp_EmbedImage.asp

    http://community.spiceworks.com/scripts/show/1037-send-html-emails-via-powershell

    http://www.example-code.com/powershell/smtp_EmbedImage.asp

    did not find anything in MS script repository


    Payne is back


    • Edited by Max Payne 3 Friday, July 12, 2013 8:01 AM Typo Mistakes
    Friday, July 12, 2013 7:59 AM
  • Here is a copy of one of my posts from the past. (2011)

    #Here is the template for the SMTPClient of dotNet.
    
    $msg=new-object System.Net.Mail.MailMessage
    $msg.From='you@home.com'
    $msg.to.Add('recip@somewhere.net')
    $msg.Subject='test of image'
    $msg.IsBodyHtml=$true
    $msg.Body='<html><body> Check this out:<br /> <img src="cid:image1"></body></html>'
    #images are found byt the 'COntentID-CID' in the body of the message
    $att = new-object Net.Mail.Attachment('F:\Projects\My Pictures\Output1.JPG')
    $att.ContentDisposition.Inline = $True
    $att.ContentDisposition.DispositionType = "Inline"
    $att.ContentType.MediaType = "image/jpeg"
    $att.ContentId = "image1"
    $msg.Attachments.Add($att)
    
    $smtp=new-object System.Net.Mail.SmtpClient
    $smtp.host='smtp.myserver.com'
    $smtp.Credentials=Get=Credential
    
    $smtp.Send($msg)


    ¯\_(ツ)_/¯

    Very sorry but i am a novice in Pshell

    Your code inserts an image inline and uses

    $msg=new-object System.Net.Mail.MailMessage

    But what i am doing is this

    i insert my whole HTML body in a Variable Like $Msgbody

    $MsgBody =

    '

    bodybodybody

    bodybodybody

    .

    .

    and somewhere in the code I have :

    body {
        background-image: url(C:/BG.jpg);
        background-repeat: no-repeat;
    }

    '

    and then i use

    send-mailmessage -bodyashtml -body $Msgbody -To ...... -smtpserver ...

    so what should i do :(

    is this just enough to say :

    $att = new-object Net.Mail.Attachment('C:\BG.JPG')

    and then

        background-image: $att; (which i do not think would work :( )

    or something like that ?


    Payne is back


    • Edited by Max Payne 3 Friday, July 12, 2013 8:27 AM Typos
    Friday, July 12, 2013 8:25 AM
  • There is a new feature in HTML 5 which lets you put files directly into the HTML code

    https://en.wikipedia.org/wiki/Data_URI_scheme

    However it should really only be used for very small files (less than a few KB). Simple PNG and WebP graphics will easily qualify for that but not much more.

    Friday, July 12, 2013 9:36 AM
  • There is a new feature in HTML 5 which lets you put files directly into the HTML code

    https://en.wikipedia.org/wiki/Data_URI_scheme

    However it should really only be used for very small files (less than a few KB). Simple PNG and WebP graphics will easily qualify for that but not much more.

    Thanks but As I do not know HTML V.5 is supported by what browser, Powershell Version and .... I'd prefer to implement this using my powershell and HTML tags if possible


    Payne is back

    Friday, July 12, 2013 11:26 AM
  • There is a new feature in HTML 5 which lets you put files directly into the HTML code

    https://en.wikipedia.org/wiki/Data_URI_scheme

    However it should really only be used for very small files (less than a few KB). Simple PNG and WebP graphics will easily qualify for that but not much more.

    It does not require HTML5.  Data URLs have exisit4ed since before 2003.  Microsoft mail APIs have supported data urls since about 2000.

    The code I posted above creates a data URL.


    ¯\_(ツ)_/¯

    Friday, July 12, 2013 12:22 PM
  • There is a new feature in HTML 5 which lets you put files directly into the HTML code

    https://en.wikipedia.org/wiki/Data_URI_scheme

    However it should really only be used for very small files (less than a few KB). Simple PNG and WebP graphics will easily qualify for that but not much more.

    It does not require HTML5.  Data URLs have exisit4ed since before 2003.  Microsoft mail APIs have supported data urls since about 2000.

    The code I posted above creates a data URL.


    ¯\_(ツ)_/¯

    I posted the code to generate an embedded image.  It explicitly demonstrates how to embed an image and how to reference the image in the HTML.  It is PowerShell code.  If you cannot understand what is posted then you will need to take the time to learn PowerShell and HTML.


    ¯\_(ツ)_/¯

    Friday, July 12, 2013 12:25 PM
  • There is a new feature in HTML 5 which lets you put files directly into the HTML code

    https://en.wikipedia.org/wiki/Data_URI_scheme

    However it should really only be used for very small files (less than a few KB). Simple PNG and WebP graphics will easily qualify for that but not much more.

    It does not require HTML5.  Data URLs have exisit4ed since before 2003.  Microsoft mail APIs have supported data urls since about 2000.

    The code I posted above creates a data URL.


    ¯\_(ツ)_/¯

    I posted the code to generate an embedded image.  It explicitly demonstrates how to embed an image and how to reference the image in the HTML.  It is PowerShell code.  If you cannot understand what is posted then you will need to take the time to learn PowerShell and HTML.


    ¯\_(ツ)_/¯

    Thanks jrv

    I could create a pshell script and send an image but have problems to set this embedded image as my email (html page) background

    anyway Tx

    I will work on it and update this post


    Payne is back

    Friday, July 12, 2013 12:29 PM
  • If you cannot understand what is posted then you will need to take the time to learn PowerShell and HTML.

    So helpful...

    Max, the key points in the code JRV posted are:

    <img src="cid:image1">
    $att.ContentDisposition.Inline = $True
    $att.ContentId = "image1"

    Instead of doing a URL of "C:/BG.jpg" in your code, you need to change it to "cid:SomeName", then attach bg.jpg to the message and set its contentId field to the same "SomeName".  This doesn't appear to be possible with the default Send-MailMessage cmdlet, which is why jrv's code is using the .NET Framework classes directly, where you get much more control.

    I had some time to kill tonight, so I wrote a script replacement for Send-MailMessage. Its parameters are identical to the original cmdlet, with the addition of an -InlineAttachments parameter, which accepts a hashtable of "ContentId"="File Path" pairs.  The behavior of the script version should basically match the cmdlet, but since it's not a true proxy function (it's a complete rewrite of the functionality, not calling the original cmdlet), the exceptions that it throws are probably different.

    function Send-MailMessage {
        [CmdletBinding()]
        param(
            [Parameter(ValueFromPipeline=$true)]
            [Alias('PsPath')]
            [ValidateNotNullOrEmpty()]
            [string[]]
            ${Attachments},
    
            [ValidateNotNullOrEmpty()]
            [System.Collections.HashTable]
            ${InlineAttachments},
            
            [ValidateNotNullOrEmpty()]
            [System.Net.Mail.MailAddress[]]
            ${Bcc},
        
            [Parameter(Position=2)]
            [ValidateNotNullOrEmpty()]
            [string]
            ${Body},
            
            [Alias('BAH')]
            [switch]
            ${BodyAsHtml},
        
            [Alias('BE')]
            [ValidateNotNullOrEmpty()]
            [System.Text.Encoding]
            ${Encoding},
        
            [ValidateNotNullOrEmpty()]
            [System.Net.Mail.MailAddress[]]
            ${Cc},
        
            [Alias('DNO')]
            [ValidateNotNullOrEmpty()]
            [System.Net.Mail.DeliveryNotificationOptions]
            ${DeliveryNotificationOption},
        
            [Parameter(Mandatory=$true)]
            [ValidateNotNullOrEmpty()]
            [System.Net.Mail.MailAddress]
            ${From},
        
            [Parameter(Position=3)]
            [Alias('ComputerName')]
            [ValidateNotNullOrEmpty()]
            [string]
            ${SmtpServer} = $PSEmailServer,
        
            [ValidateNotNullOrEmpty()]
            [System.Net.Mail.MailPriority]
            ${Priority},
            
            [Parameter(Mandatory=$true, Position=1)]
            [Alias('sub')]
            [ValidateNotNullOrEmpty()]
            [string]
            ${Subject},
        
            [Parameter(Mandatory=$true, Position=0)]
            [ValidateNotNullOrEmpty()]
            [System.Net.Mail.MailAddress[]]
            ${To},
        
            [ValidateNotNullOrEmpty()]
            [pscredential]
            ${Credential},
        
            [switch]
            ${UseSsl},
        
            [ValidateRange(0, 2147483647)]
            [int]
            ${Port} = 25
        )
        
        begin {
            if ([System.String]::IsNullOrEmpty($SmtpServer)) {
                throw New-Object System.ArgumentNullException('SmtpServer')
            }
            
            try {
                $_smtpClient = New-Object System.Net.Mail.SmtpClient
            
                $_smtpClient.Host = $SmtpServer
                $_smtpClient.Port = $Port
                if ($Credential) { $_smtpClient.Credentials = $Credential }
                if ($UseSsl) { $_smtpClient.EnableSsl = $true }
    
                $_message = New-Object System.Net.Mail.MailMessage
            
                $_message.From = $From
                $_message.Subject = $Subject
                
                if ($Body) { $_message.Body = $Body }            
                if ($BodyAsHtml) { $_message.IsBodyHtml = $true }
                if ($Encoding) { $_message.BodyEncoding = $Encoding }
                if ($DeliveryNotificationOption) { $_message.DeliveryNotificationOptions = $DeliveryNotificationOption }
                if ($Priority) { $_message.Priority = $Priority }
    
                foreach ($_address in $To) {
                    if (!$_message.To.Contains($_address)) { $_message.To.Add($_address) }
                }
    
                foreach ($_address in $Cc) {
                    if (!$_message.CC.Contains($_address)) { $_message.CC.Add($_address) }
                }
    
                foreach ($_address in $Bcc) {
                    if (!$_message.Bcc.Contains($_address)) { $_message.Bcc.Add($_address) }
                }
            } catch {
                throw
            }
    
            if ($InlineAttachments) {
                foreach ($_contentId in $InlineAttachments.Keys) {
                    $_file = $InlineAttachments[$_contentId].ToString()
                    if ([System.String]::IsNullOrEmpty($_file)) {
                        throw New-Object System.ArgumentNullException('InlineAttachments')
                    }
    
                    try {
                        $_attachment = New-Object System.Net.Mail.Attachment($_file)
                        
                        $_attachment.ContentDisposition.Inline = $true
                        $_attachment.ContentDisposition.DispositionType = "Inline"
                        $_attachment.ContentId = $_contentId
    
                        $_message.Attachments.Add($_attachment)
                    } catch {
                        throw
                    }
                }
            }
        }
    
        process {
            foreach ($_file in $Attachments) {
                try {
                    $_message.Attachments.Add((New-Object System.Net.Mail.Attachment($_file)))
                } catch {
                    throw
                }
            }        
        }
        
        end {
            try {
                $_smtpClient.Send($_message)
            } catch {
                throw
            }
        }    
    }
    
    <#
    # Example usage:
    
    $images = @{image1='c:\temp\test.jpg';image2='C:\temp\test2.png'}
    
    Send-MailMessage -InlineAttachments $images `
                     -Attachments 'C:\temp\attachment1.txt','C:\temp\attachment2.txt' `
                     -Body '<html><body><image src="cid:image1"><br><image src="cid:image2"></body></html>' `
                     -BodyAsHtml `
                     -Subject 'Test email' `
                     -From 'username@gmail.com' `
                     -To 'recipient@domain.com' `
                     -Cc 'recipient2@domain.com','recipient3@domain.com'
                     -SmtpServer 'smtp.gmail.com' `
                     -Port 587 `
                     -Credential (Get-Credential) `
                     -UseSsl
    
    #>
    



    Wednesday, July 17, 2013 3:41 AM
  • Unfortunately none of the above produces an email with a background image.  The background image is a component of <body/> and not n <image/>

    An image is really <img/>.

    A CID is an index into an attachment set (see W3C HTML 1.0 specifications).

    In most HTML messages Microsoft uses the "mso" namespace as it is more resilient that the HTML methods which will not render in  all email clients.

    Post a new question when you find where the above doesn't work


    ¯\_(ツ)_/¯

    Wednesday, July 17, 2013 4:15 AM
  • Unfortunately none of the above produces an email with a background image.  The background image is a component of <body/> and not n <image/>

    An image is really <img/>.

    A CID is an index into an attachment set (see W3C HTML 1.0 specifications).

    In most HTML messages Microsoft uses the "mso" namespace as it is more resilient that the HTML methods which will not render in  all email clients.

    Post a new question when you find where the above doesn't work


    ¯\_(ツ)_/¯

    Oh, really?  Using the replacement function I just posted, this worked fine for me (viewed in Windows Live Mail.  I don't know how it would look in other mail clients.  It's apparently a tricky subject.)

    $images = @{george='c:\temp\test.png'}
    $body = @" 
    <html> 
      <body style="background-image:url(cid:george);">
        <pre>
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        This is a test.
        This is only a test.
        </pre>
      </body> 
    </html> 
    "@ 
    
    
    Send-MailMessage -InlineAttachments $images `
                     -Attachments 'C:\temp\test.txt' `
                     -Body $body `
                     -BodyAsHtml `
                     -Subject 'Test email' `
                     -From 'username@gmail.com' `
                     -To 'recipient@domain.com' `
                     -SmtpServer 'smtp.gmail.com' `
                     -Port 587 `
                     -Credential (Get-Credential) `
                     -UseSsl


    Wednesday, July 17, 2013 4:28 AM
  • The problem is that web clients cannot respect "body" tag settings unless they translate the tag.

    A web page is allowed exactly one body tag.  An attempt may be made to merge a second body tag into the main body but, for an email display, that makes no sense. If a web client does not translate the email body tag (most do not) the image will not show.

    MSO and other CSS templates and HTML namespaces can overcome this by using a DIV to- a custom tag for the email body.

    I have two custom HTML report that are emailed.  Both use slightly different methods to set a background.  Both fail on different clients and neither show a background in Outlook. Both show a background in Outlook.com.

    Its a crap shoot.  Most companies that deliver fancy (pretty) email use custom namespaces and advanced SS to guarantee proper rendering in the greatest amount of email clients.


    ¯\_(ツ)_/¯

    Wednesday, July 17, 2013 4:39 AM
  • Sorry but the script does not work in outlook and my environment

    seems the background image cannot be set via this way


    Payne is back

    Wednesday, July 17, 2013 4:45 AM
  • Sorry but the script does not work in outlook and my environment

    seems the background image cannot be set via this way


    Payne is back

    My point exactly.

    If you copy the MSO style settings and inclusions it will work in Outlook.  It cannot be made to work with <body style="background-image:....


    ¯\_(ツ)_/¯

    Wednesday, July 17, 2013 5:23 AM
  • My point exactly.

    If you copy the MSO style settings and inclusions it will work in Outlook.  It cannot be made to work with <body style="background-image:....

    You might have mentioned that when you posted the exact same code.  All I did was try to help the OP understand it, since you refused to.

    Max, you're on your own (or at least, you're stuck putting up with jrv) when it comes to Outlook.  I don't have that software installed to do any testing.  http://blog.mailermailer.com/email-design/background-images-in-html-email-the-naked-truth seems to indicate that body background tags should work in Outlook, but the post is from 2011, and may not apply to the most current versions.


    Wednesday, July 17, 2013 11:35 AM
  • The code I posted demonstrates ho to include an image in the email.  It was not intended as a complete solution.  As you can see the complete solution is highly dependent on the client.

    The code I posted was quite self-explanatory as it had a complete working example.

    Start with an existing HTML message that has a background.  Copy the HTML to a template and use that in building your email.

    Here is the original question: "would u please guide me to a good method or bunch of script lines for this, i mean saving images with the html code so anyone can see the background image anywhere "

    That issue has been satisfied.  It is not my responsibility to satisfy complaints from crabby who like to find issues with my posts.

    I do not have a tested solution to you issue other than to tell you to use either a DIV or an HTML table for the background.  If you want to use one of the methods I have referenced I will try and help you but I will not write it for you.

    I am sure that Dave will be happy to write this code for you.

    On the more serious side - give it a try and start a new thread with questions specific to the method you are attempting to use.


    ¯\_(ツ)_/¯

    Wednesday, July 17, 2013 12:07 PM
  • In part here is how Outlook forces an image into all versions of Outlook and other non-Microsoft email clients.

    <!--[if gte mso 9]>
              <xml>
                   <v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
                   <v:fill src="cid:image001.jpg@01CE82C5.9361C730" o:title="PICT0006%201[2]" recolor="t" type="frame" />
                   </v:background>
             </xml>
    <![endif]-->
    

    Of course there is an embedded style sheet based on MSOffice namespaces and a few other fancy tricks.

    Note that this handles MSO 10 and later versions.  The 9 version uses other stle methods.

    TO handle non-ms clients and simple HTML clients this is also included:

    <body 
          bgcolor=white 
          background="cid:image001.jpg@01CE82C5.9361C730" 
          lang=EN-US 
          link=blue 
          vlink=purple 
          style='tab-interval:.5in
    >
    <img src="cid:image001.jpg@01CE82C5.9361C730" 
        v:src="cid:image001.jpg@01CE82C5.9361C730" 
        v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'>
    

    Note that the image is embedded at 0 height and width. THis si likely because some clients require an embedded image reference and not just a UUEncoded block. In Outlook the BODY image is ignored in O10 and later.

    Even wit all of this the older Apple clients will always deliver the message with the image as an attachment.  AOL does the same thing with the older custom client.

    Here is a complete email body source fro Outlook:

    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=ProgId content=Word.Document><meta name=Generator content="Microsoft Word 15"><meta name=Originator content="Microsoft Word 15"><link rel=File-List href="cid:filelist.xml@01CE82C5.9361C730"><!--[if gte mso 9]><xml>
    <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    </o:OfficeDocumentSettings>
    </xml><![endif]--><link rel=themeData href="~~themedata~~"><link rel=colorSchemeMapping href="~~colorschememapping~~"><!--[if gte mso 9]><xml>
    <w:WordDocument>
    <w:Zoom>110</w:Zoom>
    <w:SpellingState>Clean</w:SpellingState>
    <w:TrackMoves/>
    <w:TrackFormatting/>
    <w:EnvelopeVis/>
    <w:PunctuationKerning/>
    <w:ValidateAgainstSchemas/>
    <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
    <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
    <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
    <w:DoNotPromoteQF/>
    <w:LidThemeOther>EN-US</w:LidThemeOther>
    <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
    <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
    <w:Compatibility>
    <w:BreakWrappedTables/>
    <w:SnapToGridInCell/>
    <w:WrapTextWithPunct/>
    <w:UseAsianBreakRules/>
    <w:DontGrowAutofit/>
    <w:SplitPgBreakAndParaMark/>
    <w:EnableOpenTypeKerning/>
    <w:DontFlipMirrorIndents/>
    <w:OverrideTableStyleHps/>
    </w:Compatibility>
    <m:mathPr>
    <m:mathFont m:val="Cambria Math"/>
    <m:brkBin m:val="before"/>
    <m:brkBinSub m:val="&#45;-"/>
    <m:smallFrac m:val="off"/>
    <m:dispDef/>
    <m:lMargin m:val="0"/>
    <m:rMargin m:val="0"/>
    <m:defJc m:val="centerGroup"/>
    <m:wrapIndent m:val="1440"/>
    <m:intLim m:val="subSup"/>
    <m:naryLim m:val="undOvr"/>
    </m:mathPr></w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false" DefSemiHidden="false" DefQFormat="false" DefPriority="99" LatentStyleCount="371">
    <w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 5"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 6"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 7"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 8"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 9"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 1"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 2"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 3"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 4"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 5"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 6"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 7"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 8"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 9"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Normal Indent"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="footnote text"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="annotation text"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="header"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="footer"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index heading"/>
    <w:LsdException Locked="false" Priority="35" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="caption"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="table of figures"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="envelope address"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="envelope return"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="footnote reference"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="annotation reference"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="line number"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="page number"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="endnote reference"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="endnote text"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="table of authorities"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="macro"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="toa heading"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 5"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 5"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 5"/>
    <w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Closing"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Signature"/>
    <w:LsdException Locked="false" Priority="1" SemiHidden="true" UnhideWhenUsed="true" Name="Default Paragraph Font"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text Indent"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 5"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Message Header"/>
    <w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Salutation"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Date"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text First Indent"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text First Indent 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Note Heading"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text Indent 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text Indent 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Block Text"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Hyperlink"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="FollowedHyperlink"/>
    <w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
    <w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Document Map"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Plain Text"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="E-mail Signature"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Top of Form"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Bottom of Form"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Normal (Web)"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Acronym"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Address"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Cite"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Code"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Definition"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Keyboard"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Preformatted"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Sample"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Typewriter"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Variable"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Normal Table"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="annotation subject"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="No List"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Outline List 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Outline List 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Outline List 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Simple 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Simple 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Simple 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Colorful 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Colorful 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Colorful 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 5"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 5"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 6"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 7"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 8"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 4"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 5"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 6"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 7"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 8"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table 3D effects 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table 3D effects 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table 3D effects 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Contemporary"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Elegant"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Professional"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Subtle 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Subtle 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Web 1"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Web 2"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Web 3"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Balloon Text"/>
    <w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
    <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Theme"/>
    <w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
    <w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
    <w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
    <w:LsdException Locked="false" Priority="61" Name="Light List"/>
    <w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
    <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
    <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
    <w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
    <w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
    <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
    <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
    <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
    <w:LsdException Locked="false" Priority="70" Name="Dark List"/>
    <w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
    <w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
    <w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
    <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
    <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
    <w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
    <w:LsdException Locked="false" Priority="34" QFormat="true" Name="List Paragraph"/>
    <w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
    <w:LsdException Locked="false" Priority="30" QFormat="true" Name="Intense Quote"/>
    <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
    <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
    <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
    <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
    <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
    <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
    <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
    <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
    <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
    <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
    <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
    <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
    <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
    <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
    <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
    <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
    <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
    <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
    <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
    <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
    <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
    <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
    <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
    <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="19" QFormat="true" Name="Subtle Emphasis"/>
    <w:LsdException Locked="false" Priority="21" QFormat="true" Name="Intense Emphasis"/>
    <w:LsdException Locked="false" Priority="31" QFormat="true" Name="Subtle Reference"/>
    <w:LsdException Locked="false" Priority="32" QFormat="true" Name="Intense Reference"/>
    <w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
    <w:LsdException Locked="false" Priority="37" SemiHidden="true" UnhideWhenUsed="true" Name="Bibliography"/>
    <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
    <w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
    <w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
    <w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
    <w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
    <w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
    <w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
    <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
    <w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
    <w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
    <w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
    <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
    <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
    <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
    <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 1"/>
    <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
    <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
    <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
    <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 1"/>
    <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 1"/>
    <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 2"/>
    <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
    <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
    <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
    <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 2"/>
    <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 2"/>
    <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 3"/>
    <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
    <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
    <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
    <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 3"/>
    <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 3"/>
    <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 4"/>
    <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
    <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
    <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
    <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 4"/>
    <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 4"/>
    <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 5"/>
    <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
    <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
    <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
    <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 5"/>
    <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 5"/>
    <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 6"/>
    <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
    <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
    <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
    <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 6"/>
    <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 6"/>
    <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
    <w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
    <w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
    <w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
    <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
    <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
    <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
    <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 1"/>
    <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
    <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
    <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
    <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 1"/>
    <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 1"/>
    <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 2"/>
    <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
    <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
    <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
    <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 2"/>
    <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 2"/>
    <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 3"/>
    <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
    <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
    <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
    <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 3"/>
    <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 3"/>
    <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 4"/>
    <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
    <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
    <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
    <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 4"/>
    <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 4"/>
    <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 5"/>
    <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
    <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
    <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
    <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 5"/>
    <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 5"/>
    <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 6"/>
    <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
    <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
    <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
    <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 6"/>
    <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 6"/>
    </w:LatentStyles>
    </xml><![endif]--><style><!--
    /* Font Definitions */
    @font-face
    	{font-family:"Cambria Math";
    	panose-1:2 4 5 3 5 4 6 3 2 4;
    	
    	
    	
    	
    	}
    @font-face
    	{font-family:"Franklin Gothic Book";
    	panose-1:2 11 5 3 2 1 2 2 2 4;
    	
    	
    	
    	}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    	{
    	
    	"";
    	margin:0in;
    	margin-bottom:.0001pt;
    	
    	font-size:11.0pt;
    	font-family:"Franklin Gothic Book","sans-serif";
    	"Franklin Gothic Book";
    	
    	"Franklin Gothic Book";
    	
    	"Franklin Gothic Book";
    	
    	"Times New Roman";
    	}
    a:link, span.MsoHyperlink
    	{
    	
    	color:blue;
    	
    	text-decoration:underline;
    	text-underline:single;}
    a:visited, span.MsoHyperlinkFollowed
    	{
    	
    	color:purple;
    	
    	text-decoration:underline;
    	text-underline:single;}
    span.EmailStyle17
    	{
    	
    	
    	
    	
    	font-family:"Franklin Gothic Book","sans-serif";
    	"Franklin Gothic Book";
    	
    	"Franklin Gothic Book";
    	
    	"Franklin Gothic Book";
    	
    	"Times New Roman";
    	
    	color:windowtext;}
    span.SpellE
    	{"";
    	}
    .MsoChpDefault
    	{
    	
    	font-family:"Franklin Gothic Book","sans-serif";
    	"Franklin Gothic Book";
    	
    	"Franklin Gothic Book";
    	
    	"Franklin Gothic Book";
    	
    	"Times New Roman";
    	}
    @page WordSection1
    	{size:8.5in 11.0in;
    	margin:1.0in 1.0in 1.0in 1.0in;
    	
    	
    	}
    div.WordSection1
    	{page:WordSection1;}
    --></style><!--[if gte mso 10]><style>/* Style Definitions */
    table.MsoNormalTable
    	{"Table Normal";
    	
    	
    	
    	
    	"";
    	
    	
    	
    	
    	font-size:11.0pt;
    	font-family:"Franklin Gothic Book","sans-serif";
    	"Franklin Gothic Book";
    	
    	"Franklin Gothic Book";
    	}
    </style><![endif]--><!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext="edit" spidmax="1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext="edit">
    <o:idmap v:ext="edit" data="1" />
    </o:shapelayout></xml><![endif]--></head>
    <body 
          bgcolor=white 
          background="cid:image001.jpg@01CE82C5.9361C730" 
          lang=EN-US 
          link=blue 
          vlink=purple 
          style='tab-interval:.5in
    >
    <img src="cid:image001.jpg@01CE82C5.9361C730" 
        v:src="cid:image001.jpg@01CE82C5.9361C730" 
        v:shapes="_x0000_Mail" width=0 height=0 style='display:none;width:0;height:0'>
    
    <!--[if gte mso 9]>
              <xml>
                   <v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
                   <v:fill src="cid:image001.jpg@01CE82C5.9361C730" o:title="PICT0006%201[2]" recolor="t" type="frame" />
                   </v:background>
             </xml>
    <![endif]-->
    
    <div style='font-size:24.0pt;color:white;This is the text<o:p></o:p></span></p></div>
    </body></html>
     

    ¯\_(ツ)_/¯

    Wednesday, July 17, 2013 12:33 PM
  • Here is a sample of how Outlook does this:

    <body 
          bgcolor=white 
          background="cid:image001.jpg@01CE82C5.9361C730" 
          lang=EN-US 
          link=blue 
          vlink=purple 
          style='tab-interval:.5in
    >
    <img src="cid:image001.jpg@01CE82C5.9361C730" 
        v:src="cid:image001.jpg@01CE82C5.9361C730" 
        v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'>
    
    <!--[if gte mso 9]>
              <xml>
                   <v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
                   <v:fill src="cid:image001.jpg@01CE82C5.9361C730" o:title="PICT0006%201[2]" recolor="t" type="frame" />
                   </v:background>
             </xml>
    <![endif]-->

    THe'body' tag is fro non-outlook 10 and later email clients. The 'if' injects a background for outlook clients. It uses the 'background' tag which is custom in the 'v' namespace.

    This is all accompanied by about 100 lines of CSS and namespace importation.

    Nearly all programs that generate email with images do not use a background image.  They all tend to use the Outlook 10 method of injecting a tag with a background and custom CSS.  Microsoft just uses their own CSS when in Outlook and Outlook just ignores the body tag image.

    You can play with the image declaration.  It can be made t be visible but none of the documentation I have found seems to work on all Outlook versions.


    ¯\_(ツ)_/¯

    Wednesday, July 17, 2013 12:42 PM
  • Here is a full message with embedded image (image not included)

    <html 
         xmlns:v="urn:schemas-microsoft-com:vml" 
         xmlns:o="urn:schemas-microsoft-com:office:office" 
         xmlns:w="urn:schemas-microsoft-com:office:word" 
         xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" 
         xmlns="http://www.w3.org/TR/REC-html40"
    >
    <head>
        <meta http-equiv=Content-Type content="text/html; charset=us-ascii">
        <meta name=Generator content="Microsoft Word 15 (filtered medium)">
    <style>
    <!--
    /* Font Definitions */
    @font-face
    	{font-family:"Cambria Math";
    	panose-1:2 4 5 3 5 4 6 3 2 4;}
    @font-face
    	{font-family:"Franklin Gothic Book";
    	panose-1:2 11 5 3 2 1 2 2 2 4;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    	{margin:0in;
    	margin-bottom:.0001pt;
    	font-size:11.0pt;
    	font-family:"Franklin Gothic Book","sans-serif";}
    a:link, span.MsoHyperlink
    	{
    	color:blue;
    	text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
    	{
    	color:purple;
    	text-decoration:underline;}
    span.EmailStyle17
    	{
    	font-family:"Franklin Gothic Book","sans-serif";
    	color:windowtext;}
    .MsoChpDefault
    	{
    	font-size:10.0pt;
    	font-family:"Franklin Gothic Book","sans-serif";}
    @page WordSection1
    	{size:8.5in 11.0in;
    	margin:1.0in 1.0in 1.0in 1.0in;}
    div.WordSection1
    	{page:WordSection1;}
    -->
    </style>
    <!--[if gte mso 9]>
         <xml>
              <o:shapedefaults v:ext="edit" spidmax="1026" />
         </xml>
    <![endif]-->
    <!--[if gte mso 9]>
         <xml>
              <o:shapelayout v:ext="edit">
                   <o:idmap v:ext="edit" data="1"/>
              </o:shapelayout>
        </xml>
    <![endif]-->
    
    </head>
    
    <body 
         bgcolor=white 
         background="cid:image001.jpg@01CE82C5.9361C730" 
         lang=EN-US 
         link=blue 
         vlink=purple
    >
    <img src="cid:image001.jpg@01CE82C5.9361C730" 
         v:src="cid:image001.jpg@01CE82C5.9361C730" 
         v:shapes="_x0000_Mail" 
         width=0 
         height=0 
         style='display:none;width:0;height:0'>
    <!--[if gte mso 9]>
         <xml>
              <v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
                   <v:fill src="cid:image001.jpg@01CE82C5.9361C730" o:title="PICT0006%201[2]" recolor="t" type="frame" />
              </v:background>
        </xml>
    <![endif]-->
    
    <div
      <p
           <span style='font-size:24.0pt;color:white'>This is the text<o:p></o:p></span>
      </p>
    </div>
    </body>
    </html>

    ¯\_(ツ)_/¯


    • Edited by jrv Wednesday, July 17, 2013 12:57 PM fixit
    Wednesday, July 17, 2013 12:52 PM