How can send mails with html contents as mail body using infopath 2003

S

Sibi

Hi,

Can i assign a html file to "intro" property of email adapter object.

for example

var objMail = XDocument.DataAdapters("Submit");
objMail.To = "(e-mail address removed) ";
objMail.Subject ="Testing mail"
objMail.Intro =
objMail.Submit();

The requirement is I want to sent a html file as mail body. so can i
assign html file directly to intro? or how do i implement it.

Thanks in advance.
Sibi
 
S

S.Y.M. Wong-A-Ton

I've never tried it, but you could try using plain HTML tags like in:

objMail.Intro = "<HTML><BODY>Message goes here</BODY></HTML>";

Just give it a try and see what it does...
 
S

Sibi

I've never tried it, but you could try using plain HTML tags like in:

objMail.Intro = "<HTML><BODY>Message goes here</BODY></HTML>";

Just give it a try and see what it does...
---
S.Y.M. Wong-A-Ton










- Show quoted text -

Thanks for you mail..

It doesn't work.. Mail body contains html tags as a string..
Please give me a solution for this
 
S

S.Y.M. Wong-A-Ton

If it does not work for you, you need to write code to call into the Outlook
object model; this will allow you to set the type of email to be HTML. A
fellow newsgroup user recently posted code to do just that. Look for a post
with the subject "Send email from Access 2007".
 

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

Top