williamLOR
Member
- Joined
- Aug 3, 2005
- Messages
- 9
- Programming Experience
- Beginner
hello,
how to add a url link in email body?
example:
Dim mail As New MailMessage
mail.To = "abc@yahoo.com"
mail.From = "xyz@yahoo.com"
mail.Subject = "this is a test email."
mail.BodyFormat = MailFormat.Html
mail.Body = "<b>Employee Details:</b> <p>" & "<br>Employee ID:" & txtID.Text & "<br>Employee Name:" & txtName.Text & "<br>Department:" & txtDepartment.Text & "<br>Leave Type:" & ddlLeaveType.SelectedItem.Text & "<br>Start Leave Date:" & txtStartDate.Text & "<br>End Leave Date:" & txtEndDate.Text & "<br>Total of Leave Days:" & txtNumDays.Text & "<br>Filled_Date:" & System.DateTime.Now & "<br> link:" <a href=www.soccernet.com> soccernet link </a>
SmtpMail.SmtpServer = "192.168.2.129" 'your real server goes here
SmtpMail.Send(mail)
my error appear in this line .
help..
how to add a url link in email body?
example:
Dim mail As New MailMessage
mail.To = "abc@yahoo.com"
mail.From = "xyz@yahoo.com"
mail.Subject = "this is a test email."
mail.BodyFormat = MailFormat.Html
mail.Body = "<b>Employee Details:</b> <p>" & "<br>Employee ID:" & txtID.Text & "<br>Employee Name:" & txtName.Text & "<br>Department:" & txtDepartment.Text & "<br>Leave Type:" & ddlLeaveType.SelectedItem.Text & "<br>Start Leave Date:" & txtStartDate.Text & "<br>End Leave Date:" & txtEndDate.Text & "<br>Total of Leave Days:" & txtNumDays.Text & "<br>Filled_Date:" & System.DateTime.Now & "<br> link:" <a href=www.soccernet.com> soccernet link </a>
SmtpMail.SmtpServer = "192.168.2.129" 'your real server goes here
SmtpMail.Send(mail)
my error appear in this line .
help..