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:
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.
At which point would I apply a Javascript replace() method or something else???? Before it's saved to database or after?
Bookmarks