2bitpanther
asked on
insert image into HTML signature
I currently have a vbs script that queries the users AD account, then creates a html file for their outlook signature based on the AD data.
its all works peachy, now management want to ad a logo to the signature!! BEcause the script automatically creates the signature i have been trying for the life of me to add a new line to the script that inserts an image.
attached is the vbs that im using. If i open the html file and add in the the html part it works fine, however when i try and use this code in a vbs file it keeps giving me the following error
"Error: Expected end of statement"
i have compated it to my other objfile.write code and cant see where i am going wrong.
its all works peachy, now management want to ad a logo to the signature!! BEcause the script automatically creates the signature i have been trying for the life of me to add a new line to the script that inserts an image.
attached is the vbs that im using. If i open the html file and add in the the html part it works fine, however when i try and use this code in a vbs file it keeps giving me the following error
"Error: Expected end of statement"
i have compated it to my other objfile.write code and cant see where i am going wrong.
objfile.write "<br><img src="gptw.jpg" /></br>"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry i shoudl have mentioned that i get the same result when use both code snippets you guys have provided
Post the whole code. The error could be somewhere else.
ASKER
hey thanks for getting back to me, i realised why. I was placing the code in the wrong spot
the vbs cript creates and an email signature in html, rtf and plain text.
i realised that i put the code in the section where it creates the plain text signature, and moved to the section where it creates the html siganutre. my bad
but both of your suggestions worked and thanks again for your assistance
the vbs cript creates and an email signature in html, rtf and plain text.
i realised that i put the code in the section where it creates the plain text signature, and moved to the section where it creates the html siganutre. my bad
but both of your suggestions worked and thanks again for your assistance
ASKER
when i edit the html file it supposed to be creating it doesnt insert the html code into the file