none
Problem with Change HTMLBody from template RRS feed

  • Question

  • I use a template .oft  and when i  change something in HTMLBody

    If i .display message all are ok

    But if i .send  message the message contain the old version of HTMLBody

    This is the code:

    	.
    	.
    	.
    	  Dim OutApp As Object
        	  Dim OutMail As Object
        
    	Set OutApp = CreateObject("Outlook.Application")
            
                Set OutMail = OutApp.CreateItemFromTemplate(TemplateFileName)
            
            With OutMail
                .Subject = Subject
                .HTMLBody = replace(.HTMLBody,"<%MyValue%>","100")
                .To = SendTo            
                .send
    	End With
            Set OutMail = Nothing
            Set OutApp = Nothing
           .
           .
            

      

    Paolo Turrini Consulenze Informatiche Via Pavone 71 44121 Ferrara - Italy Ufficio: Tel. +39 051 051 64 90 Fax. +39 0532 19 11 789 Cell. +39 339 8715400 E-mail: paolo.turrini@informaticaturrini.com Sito: http://www.informaticaturrini.com

    Monday, December 10, 2012 11:21 AM

Answers