|
Subject:
|
hyperlink in vbscript
|
|
Posted By:
|
Seeker55
|
Post Date:
|
9/14/2006 9:58:46 AM
|
I am putting a web address in a users email and need to know how to make it as a hyperlink so that when user clicks on address in the body of their email it will auto go to the web address. Following is code that is being used.
Dim objMessage Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "New Intake" 'objMessage.Sender = """IT - Open Issues"" <IT-OpenIssues@fcswichita.org>" objMessage.From = """IT - Open Issues"" <IT-OpenIssues@fcswichita.org>" objMessage.To = left(oRecordSet.Fields("ClinicianFName"),1) & oRecordSet.Fields("ClinicianLName") & "@fcswichita.org;alewis@fcswichita.org" objMessage.CC = "wakin@fcswichita.org" objMessage.TextBody = "Information about your future scheduled intakes and reopens can be found on the following website. Enter " & oRecordset.Fields("Clinician") & " in the textbox, hit the enter key on your keyboard, and then click on the CLICK HERE TO VIEW REPORT link to see your future reopens and intakes." & chr(10) & chr(10) & chr(32) & chr(32) & "servername/myintranet/clinicianIDEntry.aspx" '& "Type" & chr(09) & "Client Name" & chr(09) & "Client DOB" & chr(09) & "Client Number" & chr(09) & chr(09) & "Scheduled Appointment" & chr(9) & "Insurance" & chr(09) & chr(09) & "Presenting Problem" & chr(10) & sMsg
'==This section provides the configuration information for the remote SMTP server. '==Normally you will only change the server name or IP.
objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of Remote SMTP Server objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "ntserver1.fcswichita.int"
'Server port (typically 25) objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send
thanks for any wisdom
|
|
Reply By:
|
dparsons
|
Reply Date:
|
9/14/2006 10:44:30 AM
|
This is flawed because if the user is using an Email Client that doesnt support HTML email, they wont see the link, they will just see text.
In anycase, in your body, just do a regular 'a href'
"The one language all programmers understand is profanity."
|
|
Reply By:
|
Seeker55
|
Reply Date:
|
9/14/2006 12:51:33 PM
|
I placed the a href in the code and it gave me an error.
<a href="servername/myintranet/clinicianIDEntry.aspx">Click Here</a>
|
|
Reply By:
|
dparsons
|
Reply Date:
|
9/14/2006 12:55:54 PM
|
Thats because " " are string delimiters, you have to use ' '
"The one language all programmers understand is profanity."
|
|
Reply By:
|
Raghavendra_Mudugal
|
Reply Date:
|
9/26/2006 1:52:56 AM
|
Rather than using TextBody, Use HTMLBody.
Hope this helps
With Regards, Raghavendra Mudugal
|