| | |
mailto in vb.net
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2006
Posts: 5
Reputation:
Solved Threads: 0
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
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
- How can i get href="mailto.. to work in a function. (HTML and CSS)
- Windows .NET RC1 (Windows NT / 2000 / XP)
- .NET Speech SDK for ASP.NET (ASP.NET)
- Visual Basic.net (VB.NET)
Other Threads in the VB.NET Forum
- Previous Thread: using VB2003 to accept excel file and convert it into a graph
- Next Thread: Splash Screen
| Thread Tools | Search this Thread |
"crystal .net .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons center click code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationtopic dosconsolevb.net eclipse editvb.net employees excel exists firewall forms html images isnumericfuntioncall listview map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity open pan pdf picturebox picturebox2 port print printpreview record regex reuse right-to-left save search serial settings socket sorting sqldatbase sqlserver storedprocedure temp textbox timer timespan transparency txttoxmlconverter upload useraccounts usercontol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web wpf wrapingcode xml





