email button in mail.body

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2005
Posts: 4
Reputation: jason_limwk is an unknown quantity at this point 
Solved Threads: 0
jason_limwk jason_limwk is offline Offline
Newbie Poster

email button in mail.body

 
0
  #1
Aug 3rd, 2005
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.....
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 514
Reputation: techniner is an unknown quantity at this point 
Solved Threads: 19
techniner techniner is offline Offline
Posting Pro

Re: email button in mail.body

 
0
  #2
Aug 3rd, 2005
Well with what you have there nothing will happen...

You need..

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

</form>



Example:

  1. <form method="post" action="my_browser_redirect.php">
  2. <input type=button value=gotohere> <area href==http://www.google.com)>
  3. </form>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC