2 Replies Latest reply on Aug 11, 2011 10:48 AM by Benjamin Abshire

    Need help with HTML in email notification using EPDM API

    Benjamin Abshire

      Can someone please help me with the correct method of sending HTML formatted email via IEdmUserMgr5.SendMsg. Below is my code. The message is sent but all the formatting (font, color, size, and line spacing) is removed. I wrote this in Visual Basic 2010 Express and it is built in .Net 3.5.

       

              Dim Vault As IEdmVault5
              Vault = New EdmVault5
              Dim userMgr As IEdmUserMgr5 = Vault
              Dim Admin As IEdmUser5

              Dim BodyText As String = ""
              Dim EmailHeader As String = ""

       

              Vault.Login("UserName", "UserPassword", "VaultName")

              EmailHeader = "This is the header text."
              BodyText = <html>
                             <body style="background-color:PowderBlue;"><h1>Look! Styles and colors</h1>
                                 <p style="font-family:verdana;color:red;">This text is in Verdana and red</p>
                                 <p style="font-family:times;color:green;">This text is in Times and green</p>
                                 <p style="font-size:30px;">This text is 30 pixels high</p>
                             </body>
                         </html>

       

              Admin = userMgr.GetUser("Admin")

              Admin.SendMsg(EmailHeader, BodyText)

       

      Thanks