ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

email button?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#)
View previous topic :: View next topic  
Author Message
jason_limwk



Joined: 02 Aug 2005
Posts: 1

PostPosted: Tue Aug 02, 2005 11:47 pm    Post subject: email button? Reply with quote

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??/
or may email me at jasonlimwk@gmail.com
thanks.....
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Wed Aug 03, 2005 7:26 am    Post subject: Reply with quote

Something like this should do the trick:

Code:

mail.Body = "<form action=""http://www.google.com""><input type=""Submit"" value=""gotohere""></form>"

_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial