L
Lp12
Hi,
Im using an outlook.application object and Mailitem object to send a mail
via an Access program.
I want to add a hyperlink to the body of the message that will represent a
link to the mdb file and open it automatically.
I get the mbody msg as seeing below but as a string and not as hyperlink.
I've tried to put it also in the ".HTMLBody" property but the result was the
same.
Thanks a lot
With oMailItem
'if you want to add attachments you can use
'.Attachments.Add "c:\MyFile.doc"
.Subject = "nnnnn"
'.To = "[email protected]"
'.HTMLBody = "html string" 'use this if you want to send html email
' or
.Body = "O:\Applications\db\db.mdb"
'.Send 'send it
'or
.Display 'display it
End With
Im using an outlook.application object and Mailitem object to send a mail
via an Access program.
I want to add a hyperlink to the body of the message that will represent a
link to the mdb file and open it automatically.
I get the mbody msg as seeing below but as a string and not as hyperlink.
I've tried to put it also in the ".HTMLBody" property but the result was the
same.
Thanks a lot
With oMailItem
'if you want to add attachments you can use
'.Attachments.Add "c:\MyFile.doc"
.Subject = "nnnnn"
'.To = "[email protected]"
'.HTMLBody = "html string" 'use this if you want to send html email
' or
.Body = "O:\Applications\db\db.mdb"
'.Send 'send it
'or
.Display 'display it
End With