exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CDO message with hyperlink

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 Applications
Author Message
Matt Fitzmaurice



Joined: 06 Aug 2007
Posts: 1

PostPosted: Wed Aug 10, 2005 2:58 pm    Post subject: CDO message with hyperlink Reply with quote

Hi All

I'm having difficulty sending a message via CDO that contains a hyperlink.
The messages send without any problems - but do not always reach their
destination.

Can anyone see anything wrong with my code below? Or can anyone suggest a
way of debuging where the mail is going?

Thanks
Matt


The following works well
SendMail Now, "email@server.com", " href='httpwwwgooglecom'>httpwwwgooglecom"
The following does not error but does not arrive either
SendMail Now, "email@server.com", "
href='http://www.google.com'>http://www.google.com"



'\\ SendMail
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Public Sub SendMail(Subject As String, Recipient As String, BodyText As
String)
Dim iMsg As CDO.Message 'Object
Dim iConf As CDO.Configuration 'Object
Dim Flds
Dim strHTML As String
Dim strSMTPserver As String
Const cdoSendUsingPort = 2
On Error GoTo ErrorHandler

Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
strSMTPserver = sGetParameter("SMTP Server")

Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") =
cdoSendUsingPort
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
strSMTPserver
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
= 10
Flds.Update

strHTML = ""
strHTML = strHTML & Replace(BodyText, Chr(13), "")
strHTML = strHTML & ""

With iMsg
Set .Configuration = iConf
.To = Recipient
.From = NetGetUser & sGetParameter("Email Suffix")
.Subject = Subject
.HTMLBody = strHTML
.send
End With

finish:

Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing

Exit Sub
ErrorHandler:
Select Case Err.Number
Case -2147220973
MsgBox "Unable to send email via " & strSMTPserver, vbCritical,
MSG_TITLE
Case Else
MsgBox Err.Description, vbCritical, MSG_TITLE
End Select
GoTo finish
End Sub

Archived from group: microsoft>public>exchange2000>applications
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
intelligent message filter events The app event log on our Exchange 2003 server is registering event 9661, with the following description: The Unsolicited Commercial Email default filter level has been updated. The new value is 8. The problem that we have with this is that we haven't inst

Notification(message read/deleted) I want to develop an application for getting the notifications when some particular messages are read/deleted for about 40,000 mailboxes. I am using Exchange server 2000. i am using that as the email server also. I tried to use the Advisesink using MAPI b

Sybari Antigen"Exceeded Internet Timeout virus" message Can anyone provide a for the message: "Antigen Exceeded Internet Timeout virus"?? We're running Antigen for Exchange V8 SR3 Sorry to post "off topic" but there is no newsgroup yet. Many thanks

Hyperlink to Calendar (Month view) I have a link on an asp.net page to an outlook calandar that works but it defaults to the current day view. We would like it to default to the month view. Is this possible with a hyperlink?

...message size exceeds outgoing message... I am running into an issue with Microsoft Exchange and OWA. While trying to use public folders to store data for a company, we are running into an issue while uploading data to a public folder. All attempts to correct this problem have pointed us to chang
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange 2000 Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group