Last post Apr 22, 2010 05:31 AM by Anneleen Verstreken
Apr 20, 2010 07:54 AM|Anneleen Verstreken|LINK
I need some advice. I'm creating a page where the admin can create a Newsletter with the FreeTextBox. The Admin wants to have the opportunity to upload some Images from his harddisk. So I added the ImageGallery. This is working just fine BUT I have one
remark. When she sends the newsletter out, what about those images? Because they are refered to the images saved onto the server: "../images/image1.jpg".
Can somebody give me advise how I have to take care of this?
Thanks in advanced!
FreeTextBox ImageGallery Newsletters
Apr 21, 2010 07:24 AM|anuj_koundal|LINK
string strFileName = FileUpload1.FileName.ToString();
/// Use this to save file in your website folder(temproray)
// to get file path from the websit folder
string strNewPath = Server.MapPath("~/YOUR-FOLDER-NAME//" + strFileName);
// Now fetch images from this path
// to Delete temporary saved file from the folder
System.IO.FileInfo fileInfo = new System.IO.FileInfo(strNewPath);
Apr 22, 2010 05:31 AM|Anneleen Verstreken|LINK
This is indeed a possible sollution but I just changed my coding when I want to send the email
Replace (body, "../my website/", "http://www.my website.com/")