Connecting Tech Pros Worldwide Forums | Help | Site Map

Asp mail

Newbie
 
Join Date: Sep 2008
Posts: 23
#1: Nov 3 '08
Hi,

Im wrtiting asp code sending confirmation email after registration ..in that how to send an link of an url using cdosys?Please provide details about this

Thanks in advance...

jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Nov 3 '08

re: Asp mail


How are you making the body of the email? with cdo.HTMLBody?
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Set myMail=CreateObject("CDO.Message")
  3. myMail.Subject="Sending email with CDO"
  4. myMail.From="mymail@mydomain.com"
  5. myMail.To="someone@somedomain.com"
  6. dim q
  7. q = chr(34)
  8. myMail.HTMLBody = "<h1>This is a message.</h1><br><a href=" & q & "http://www.mylink.com" & q & ">Click Here</a>"
  9. myMail.Send
  10. set myMail=nothing
  11. %>
(code snippet from w3schools.com , modified slightly to include link)

Jared
Reply


Similar ASP / Active Server Pages bytes