Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sibi - 09 May 2007 11:03 GMT
Hi,

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

for example

var objMail = XDocument.DataAdapters("Submit");
objMail.To = "symwongaton@discussions.microsoft.com ";
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.Y.M. Wong-A-Ton - 09 May 2007 11:34 GMT
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

> Hi,
>
[quoted text clipped - 13 lines]
> Thanks in advance.
> Sibi
Sibi - 11 May 2007 06:57 GMT
On May 9, 3:34 pm, S.Y.M. Wong-A-Ton
<SYMWongA...@discussions.microsoft.com> wrote:
> I've never tried it, but you could try using plain HTML tags like in:
>
[quoted text clipped - 23 lines]
>
> - 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.Y.M. Wong-A-Ton - 12 May 2007 03:48 GMT
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".
---
S.Y.M. Wong-A-Ton

> On May 9, 3:34 pm, S.Y.M. Wong-A-Ton
> <SYMWongA...@discussions.microsoft.com> wrote:
[quoted text clipped - 30 lines]
> It doesn't work.. Mail body contains html tags as a string..
> Please give me a solution for this
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.