E
enizag
HI
I am having difficulty acheiving this.
I have a word document which a user fills in, once complete the press a
button, the form is saved and then I want the file path and filename to
be embedded into the body of an email automatically, so the next person
receives the email with a hyperlink to the specific form.
I have tried numerous approaches, this one will put a hyperlink in the
email but when I click it, it can't find the file:
<a href=file://" & szEmailTemp & ">click
me</a></FONT></DIV>
I have used REPLACE to convert the spaces into %20, but still no luck.
I can't get the hyperlink to find the file I want, although it is
there.
I send the email using the following:
Code:
--------------------
Set smApp = CreateObject("outlook.application")
Set smMail = CreateObject("SecureEmail.SafeMailItem")
Set smItem = smApp.CreateItem(0)
Set myAttachments = smMail.Attachments
--------------------
Code:
--------------------
addFileName = "\\Nas080501\colleague\Shared Files\report requests\Requested reports\" & fName '& ".doc"
addFileName = Replace(addFileName, " ", "%20")
--------------------
Code:
--------------------
With smMail
.HTMLBody = szEmailBody
.Subject = emailSubject
.ReadReceiptRequested = True
.Recipients.Add returnEmail
.Recipients.ResolveAll
.Send
End With
--------------------
Any help will be greatly appreciated.
Cheers
I am having difficulty acheiving this.
I have a word document which a user fills in, once complete the press a
button, the form is saved and then I want the file path and filename to
be embedded into the body of an email automatically, so the next person
receives the email with a hyperlink to the specific form.
I have tried numerous approaches, this one will put a hyperlink in the
email but when I click it, it can't find the file:
<a href=file://" & szEmailTemp & ">click
me</a></FONT></DIV>
I have used REPLACE to convert the spaces into %20, but still no luck.
I can't get the hyperlink to find the file I want, although it is
there.
I send the email using the following:
Code:
--------------------
Set smApp = CreateObject("outlook.application")
Set smMail = CreateObject("SecureEmail.SafeMailItem")
Set smItem = smApp.CreateItem(0)
Set myAttachments = smMail.Attachments
--------------------
Code:
--------------------
addFileName = "\\Nas080501\colleague\Shared Files\report requests\Requested reports\" & fName '& ".doc"
addFileName = Replace(addFileName, " ", "%20")
--------------------
Code:
--------------------
With smMail
.HTMLBody = szEmailBody
.Subject = emailSubject
.ReadReceiptRequested = True
.Recipients.Add returnEmail
.Recipients.ResolveAll
.Send
End With
--------------------
Any help will be greatly appreciated.
Cheers