Solved

Modify HTML Based Email

Posted on 2006-07-05
1
180 Views
Last Modified: 2010-04-23
I am sending out an HTML based email, and I want to redirect the user using the ASP.NET response.redirect option in my body, so I can perform query strings.  How is this possible?

CURRENT CODE:

        Dim mail As New MailMessage
        Dim EmailBody As String = *****RESPONSE.REDIRECT CODE GOES HERE*********

        mail.From = "SOMEONE@SOMEWHERE.COM"
        mail.To = "WHOEVER@WHEREEVER.COM"
        mail.Subject = "MESSAGE"
        mail.Priority = MailPriority.High
        mail.BodyFormat = MailFormat.Html
        mail.Body = EmailBody
        SmtpMail.SmtpServer = "MYSERVER"
        SmtpMail.Send(mail)
0
Comment
Question by:chrisryhal
1 Comment
 
LVL 4

Accepted Solution

by:
davehunt00 earned 500 total points
ID: 17045513
Do you just want to send a hyperlink (or load images) in the email? You can create the HTML to make an email look a lot like a site, but you don't actually frame a site in an email client message (and the client would probably prevent it - thank God).

If you just want to build out custom links (with query parameters), that is not hard. You just build them in a sub (append a bunch of tags and stuff into a stringbuilder and then convert to string to pass to the email body).

Dave
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now