944,047 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 5141
  • ASP.NET RSS
Aug 3rd, 2005
0

email button in mail.body

Expand Post »
now i am doing an email form...(aspx in vb.net)

the coding looks something like this,,,

Imports System.Web.Mail



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim mail As New MailMessage

mail.To = "blablabla@hotmail.com"

mail.From = "blablabalbla@yahoo.com"

mail.Subject = "permission to site"

mail.BodyFormat = MailFormat.Html

mail.Body = "<input type=button value=gotohere> <area href==http://www.google.com)> "

SmtpMail.SmtpServer = "localhost"

SmtpMail.Send(mail)


End Sub

so from the mail body there... i got add one button inside... and when i got the email...~it shows the button... but when i click at it... nothing happens.. so how am i going to add the link to make the button function(meaning when i click at the button.. it will redirect me to http://www.google.com ?) when i click the button frm the email?

can anyone plz help me??/
i may be contacted at jasonlimwk@gmail.com
thanks.....
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jason_limwk is offline Offline
4 posts
since Aug 2005
Aug 3rd, 2005
0

Re: email button in mail.body

Well with what you have there nothing will happen...

You need..

<form method="POST" action"something.xxx">
stuff to pass here

</form>



Example:

ASP.NET Syntax (Toggle Plain Text)
  1. <form method="post" action="my_browser_redirect.php">
  2. <input type=button value=gotohere> <area href==http://www.google.com)>
  3. </form>
Reputation Points: 12
Solved Threads: 19
Posting Pro
techniner is offline Offline
521 posts
since May 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: download and upload
Next Thread in ASP.NET Forum Timeline: Event not fired on reselection Frameset





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC