HTML format emails
I have an application which sends out emails in HTML format. I have a problem when I am trying to display images in the email (name of the image file is taken from database).
The problem is that if there is a space in the image file name, it displays a + (PLUS sign) and does not display the photo in GMAIL and other emails. The URL of the image gets displayed in the following manner:
How do I solve this + (PLUS sign) issue????
It will always encode the spaces so you will have to replace spaces with _(underscore) in image names.
But how would I do this? I have a form composed of 3 fields: street #, name and city. Depending on the user input, the image file name is composed of these 3 input (i.e. streetNumberstreetNamecity.jpg). So if a street name is composed from 2 words the image file name would resemble the following: streetNumberstreetName+streetNamecity.
You can use VBScript's Replace function as follow:
response.write Replace(image," ","_")