.NETGURU
Sending HTML e-mail
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-mail' list.


Rubric
-- Moved from [aspngfreeforall] to [ngfx-mail] by Charles M. Carroll <Click here to reveal e-mail address> --

I need to send HTML e-mail.
The only issue is that it is a branded page, and contains the same
'look&feel' as the rest of the site - which are created with
user-controls. It has already been created as news.aspx

How do I package and send the HTML of this page via System.Web.Mail:
MailMessage objMailMessage = new MailMessage();

Reply to this message...
 
    
Peter Brunone
Rubric,

    The easiest way that I can think to do this would be to scrape the page
into a string, a la Steve Smith's
http://www.aspalliance.com/stevesmith/articles/netscrape.asp and send it as
the body of the mail.

Cheers,

Peter

|-----Original Message-----
|From: Rubric [mailto:Click here to reveal e-mail address]
|Sent: Wednesday, February 27, 2002 8:24 AM
|To: ngfx-mail
|Subject: [ngfx-mail] Sending HTML e-mail
|
|
|-- Moved from [aspngfreeforall] to [ngfx-mail] by Charles M.
|Carroll <Click here to reveal e-mail address> --
|
|I need to send HTML e-mail.
|The only issue is that it is a branded page, and contains the same
|'look&feel' as the rest of the site - which are created with
|user-controls. It has already been created as news.aspx
|
|How do I package and send the HTML of this page via System.Web.Mail:
|MailMessage objMailMessage = new MailMessage();
|
|
|
|
|| [ngfx-mail] member Click here to reveal e-mail address = YOUR ID
|| http://www.aspfriends.com/aspfriends/ngfx-mail.asp = JOIN/QUIT
|

Reply to this message...
 
    
Jason Salas
You would use the BodyFormat propertyy of the MailMessage class:

objMailMessage.BodyFormat = MailFormat.HTML

HTH,
Jason

----- Original Message -----
From: "Rubric" <Click here to reveal e-mail address>
To: "ngfx-mail" <Click here to reveal e-mail address>
Sent: Thursday, February 28, 2002 12:23 AM
Subject: [ngfx-mail] Sending HTML e-mail

> -- Moved from [aspngfreeforall] to [ngfx-mail] by Charles M. Carroll
<Click here to reveal e-mail address> --
[Original message clipped]

Reply to this message...
 
 
System.Web.Mail.MailFormat
System.Web.Mail.MailMessage




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification