Costas
Member
Hi Chandoo,
I found this code on another forum on how to add a signature to an email merge.
and the function is
Everything works apart from the pictures that are linked to the signature. I'm getting this error message in the body of the email.
![upload_2015-6-1_18-13-44.png upload_2015-6-1_18-13-44.png](https://chandoo.org/forum/data/attachments/19/19396-3a7f51b5dbd2e744d574837328880382.jpg)
I know how to attach the images to the email but I prefer them to be embedded into the email cover.
Any ideas on this one guys?
Thanks
Costas
I found this code on another forum on how to add a signature to an email merge.
Code:
Dim StrSignature AsString
StrSignature = GetSignature(sPath)
.HTMLbody = strbody & vbNewLine & vbNewLine & StrSignature
and the function is
Code:
Function GetSignature(fPath AsString)AsString
Dim fso AsObjectDim TSet AsObject
Set fso = CreateObject("Scripting.FileSystemObject")
Set TSet = fso.GetFile(fPath).OpenAsTextStream(1,-2)
GetSignature= TSet.readall
TSet.Close
EndFunction
Everything works apart from the pictures that are linked to the signature. I'm getting this error message in the body of the email.
![upload_2015-6-1_18-13-44.png upload_2015-6-1_18-13-44.png](https://chandoo.org/forum/data/attachments/19/19396-3a7f51b5dbd2e744d574837328880382.jpg)
I know how to attach the images to the email but I prefer them to be embedded into the email cover.
Any ideas on this one guys?
Thanks
Costas