| | |
email button in mail.body
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2005
Posts: 4
Reputation:
Solved Threads: 0
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.....
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.....
•
•
Join Date: May 2005
Posts: 514
Reputation:
Solved Threads: 19
Well with what you have there nothing will happen...
You need..
<form method="POST" action"something.xxx">
stuff to pass here
</form>
Example:
You need..
<form method="POST" action"something.xxx">
stuff to pass here
</form>
Example:
ASP.NET Syntax (Toggle Plain Text)
<form method="post" action="my_browser_redirect.php"> <input type=button value=gotohere> <area href==http://www.google.com)> </form>
![]() |
Similar Threads
- Using Shell Script how to send mail automatically (Shell Scripting)
- Need Email validation source code (C#) (C#)
- Email send in ASP.NET with "Accept en Deny" link (ASP.NET)
- Email Web Page Content (ASP.NET)
- Interface to receive email from a POP3 mail account. Or an Interface like Yahoomail (ASP.NET)
- PHP e-mail SMTP error ??? (PHP)
- PHP E-mail setting ??? (PHP)
- Netscape incoming mail text (Windows Software)
Other Threads in the ASP.NET Forum
- Previous Thread: download and upload
- Next Thread: Event not fired on reselection Frameset
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos appliances application asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions css dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dialog dropdownlist dynamically edit expose feedback fileuploader fill flash form formatdecimal formview google grid gridview gudi iframe iis image javascript listbox login microsoft mono mouse mssql multistepregistration news numerical opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





