Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO anchor tag

Status
Not open for further replies.

dexeloper

Programmer
Oct 26, 2004
162
GB
I'm having problems generating emails with an anchor link. This is my code:

set objCDO = server.createObject("CDO.Message")
objCDO.from = "mail@testing.co.uk"
objCDO.subject = "test email"
objCDO.htmlbody = "<a href='http:bbccouk'>testing</a>"
objCDO.to = "tester@software.co.uk"
objCDO.Send

This works fine (I've changed the email addresses).

However if I change the htmlbody to:

objCDO.htmlbody = "<a href='http:bbc.co.uk'>testing</a>"

it fails. No email.

When I run this on another server it works with the full stops but fails when I put // in the href value.

Any ideas?
 
If you can send some HTML but not hyperlinks then you are likely hitting a filter.
 
Could you expand on what you mean by a filter.
 
Some spam filters don't like to see hyperlinks in messages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top