944,144 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 11949
  • VB.NET RSS
May 31st, 2006
0

mailto in vb.net

Expand Post »
Hi

i'm trying to send an email using vb.net/html
the problem comes when i have to use a hyperlink to send an email

on the click of the button the mail does go to the reciepient. the problem is that on that mail there is a hyperlink <Rejected> that the reciepient should click on and that should too send mail to certain reciepients

my code looks something like this

Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click

Dim MailSender As New System.Web.Mail.MailMessage

With MailSender
.To = txtEmail.Text
'retrieve managers email address
.From = txtUserMail.Text
'retrieve users email address
.Subject = "Request For Rights"
.BodyFormat = MailFormat.Html
.Body = "<html><Head><b>Request for rights</b></head> <br><br><body> " + txtFirstName.Text + " " + txtLastName.Text + " has requested for " + cblAccess.SelectedValue + " on" & _
"<br>Database: " + txtDB.Text + ", Projects: " + txtProject.Text + "<Br><br>" & _
" Do you appove or reject the request? <br>If you approve click here<a href = >" & _
"If you reject click here<a href= mailto:violet.maloka@standardbank.co.za>Rejected</a''>Rejected </a>"
End With
SmtpMail.SmtpServer = "00172MSGJNB0057"
SmtpMail.Send(MailSender)

Response.Redirect("Approved.aspx")

End Sub
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
katli is offline Offline
5 posts
since May 2006

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 VB.NET Forum Timeline: using VB2003 to accept excel file and convert it into a graph
Next Thread in VB.NET Forum Timeline: Splash Screen





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


Follow us on Twitter


© 2011 DaniWeb® LLC