Click to See Complete Forum and Search --> : ObjSendMail.HTMLBody = Want To Link


Chamark
04-12-2007, 09:47 AM
I want to make an HTML link in the body of an email so the user can click on it when receiving the message. I've tried variations of using ampersand. Any help on making http:// linkable is greatly appreciated. See code.

ObjSendMail.To = Trim(Request.Form("ManagerID"))
ObjSendMail.CC = Trim(Request.Form("DirectorID"))

ObjSendMail.Subject = "Audit Review - Infraction Determination Pending"
ObjSendMail.From = "Audit-Review"

ObjSendMail.HTMLBody = "This is an automated message. Please do not respond. You are receiving this email because an infraction notice has been entered in the Audit Control Database System for determination of an error on Associate " & Request.Form("Associate") & " that reports to you. You may reference the system at http://cssmetrics.fmr.com/acds/login.asp for additional information.

gil davis
04-12-2007, 10:16 AM
Wouldn't you just code the required HTML for a link?

Chamark
04-12-2007, 10:23 AM
Tried using the <A HREF="http://www.whatever.com>blah blah</a> and it didn't work. Any suggestions?

gil davis
04-12-2007, 11:01 AM
What was the result? What do you mean "didn't work"? Can you be more specific?

Chamark
04-12-2007, 11:54 AM
Here is what I am getting back

Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/cssmetrics/acds/audit_entry_form.asp, line 39, column 322
ObjSendMail.HTMLBody = "This is an automated message. Please do not respond. You are receiving this email because an infraction notice has been entered in the Audit Control Database System for determination of an error on Associate " & Request.Form("Associate") & " that reports to you. You may reference the system at" & <a href="http://cssmetrics.fmr.com/acds/login.asp"> http://cssmetrics.fmr.com/acds/login.asp </a> & " for additional information. A determination and database update for this infraction is required within 48 hours."

gregw74
04-12-2007, 12:16 PM
What about:

ObjSendMail.HTMLBody = "This is an automated message. Please do not respond. You are receiving this email because an infraction notice has been entered in the Audit Control Database System for determination of an error on Associate " & Request.Form("Associate") & " that reports to you. You may reference the system at <a href=http://cssmetrics.fmr.com/acds/login.asp> http://cssmetrics.fmr.com/acds/login.asp</a> for additional information. A determination and database update for this infraction is required within 48 hours."

gil davis
04-12-2007, 12:53 PM
ObjSendMail.HTMLBody = "This is an automated message. Please do not respond. You are receiving this email because an infraction notice has been entered in the Audit Control Database System for determination of an error on Associate " & Request.Form("Associate") & " that reports to you. You may reference the system at <a href='http://cssmetrics.fmr.com/acds/login.asp'>http://cssmetrics.fmr.com/acds/login.asp</a> for additional information. A determination and database update for this infraction is required within 48 hours."

Chamark
04-12-2007, 12:59 PM
Obviously I am a DA. Guess the "" were messing things up. Thank you very much for your help, I appreciate your time and quick response!!!! :o