| | |
Constructing an A href link in CDO
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: May 2008
Posts: 25
Reputation:
Solved Threads: 0
Hi Guys
I am trying to send a link in an email to my users - I am using CDO. I am having trouble contructing the link. Currently I am receiving the message "syntax error".
Any help would be great
I am trying to send a link in an email to my users - I am using CDO. I am having trouble contructing the link. Currently I am receiving the message "syntax error".
ASP Syntax (Toggle Plain Text)
strBody = strBody & <a name= & "anchor" & id= & (rsEmailAlert.Fields.Item("S_Id").value) & href= & " http://www.hair-salons.com/Hair-Salon-Search.asp" & > & "CLICK HERE" & </a> & vbCrLf
Any help would be great
•
•
Join Date: Jun 2009
Posts: 18
Reputation:
Solved Threads: 1
•
•
•
•
Hi Guys
ASP Syntax (Toggle Plain Text)
strBody = strBody & <a name= & "anchor" & id= & (rsEmailAlert.Fields.Item("S_Id").value) & href= & " http://www.hair-salons.com/Hair-Salon-Search.asp" & > & "CLICK HERE" & </a> & vbCrLf
Any help would be great
ASP Syntax (Toggle Plain Text)
strBody = strBody & "<a name=" & anchor & " id=" & (rsEmailAlert.Fields.Item("S_Id").value) & " href='http://www.hair-salons.com/Hair-Salon-Search.asp'>Click Here</a>" & vbCrLf
This should work. Let me know if it doesn't.
Hit any user to continue......
•
•
Join Date: Jun 2009
Posts: 18
Reputation:
Solved Threads: 1
It sounds like you are sending mail using text format. Make sure that you include this in your script:
Also, is the name supposed to equal "anchor" or is "anchor" a variable that should = something else?
If name=anchor then use this code:
Hope this helps.
ASP Syntax (Toggle Plain Text)
myMail.BodyFormat = 0 myMail.MailFormat = 0
Also, is the name supposed to equal "anchor" or is "anchor" a variable that should = something else?
If name=anchor then use this code:
ASP Syntax (Toggle Plain Text)
strBody = strBody & "<a name='anchor' id='" & (rsEmailAlert.Fields.Item("S_Id").value) & "' href='http://www.hair-salons.com/Hair-Salon-Search.asp'>Click Here</a>" & vbCrLf
Hope this helps.
Hit any user to continue......
![]() |
Similar Threads
- Passing a value via href - php (PHP)
- want to remove href="#" from JavaScript Function link (JavaScript / DHTML / AJAX)
- Random image with text and link (JavaScript / DHTML / AJAX)
- a href and marker problems (HTML and CSS)
- need to make a link (PHP)
- HREF Buttons have the blue border..yuk! (HTML and CSS)
Other Threads in the ASP Forum
- Previous Thread: Duplicating Ranking System
- Next Thread: dropdownlist value doesnt get selected
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





