HTML email signature using vbs won't insert an image.
Posted on 2012-08-29
I am using a vb script to create a standard email signature for our staff, and the script will run at log in. All works well except for the insertion of an image(s) of our logo.
For the insertion of the image, the relevant line in the script is:
htmlFile.Write("<div><img Border =""40"" align=""Left"" width=""1000px""img src=""" & pathToCopyTo & dsqLogoSmall & """>")
When I test the script by running it for just myself, it creates the signature , and inserts the image correctly, when I view the results by clicking on new email in Outlook.
However, if I view the results In Outlook by going File -> Options _> Mail -> Signatures and opening in to the area where a signature is manually created /edited, I can see the text of the signature I have created, but no inserted images.
When I send an email , there is a blank area where my image should be , but is not - and this is in situations where the the email client isn't blocking images, because if I maually insertt an image in to the signature that has been automatically created by the script, the image is inserted and can be seen when an email is sent
Am I inserting the image in the incorrect way using my vb script ?