?
Solved

Modify HTML Based Email

Posted on 2006-07-05
1
Medium Priority
?
186 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

777 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