Solved

Modify HTML Based Email

Posted on 2006-07-05
1
178 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

20 Experts available now in Live!

Get 1:1 Help Now