Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Modify HTML Based Email

Posted on 2006-07-05
1
Medium Priority
?
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
davehunt00 earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

636 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