In my project, one send an email msg with attachments. I store the attach files in a seperate directory(named attachments ), after user send mail I will delete his files (files stored in a subdirectory named with its sesionId in attachments directory)
for instance the user sessionId => abcdf123 so his attach files under the path ~attachmentsabcdf123. after sending email the directory will be deleted.. My question is that if the user left the system without clicking the send button? The files will remain forever.. How can I overcome this problem?
I hava a web form to fill a pdf, add attachments and send it through email. I need to fisically delete the attachments after send the email. I have some problems (exception) that says "the file has been used by another process". This code is in a function that create the message with the attach.
I am using Microsoft Outlook interop to display email with filled out email addresses and attachment.
Now Everything works fine except one problem with Attachment. The problem is that I am getting attachment from other methods as Byte Array and if I am not able to pass this byte array as attachment to outlook object's attachment. I believe tt requires a physical file from disk. how can I conver this Byte Array to attach it with Outlook.Attachment object?
Here is my code. In this code, for now I hardcoded attachment from "C: est.txt" but I need to change it to Byte Array, I tried but its throwing error.how can I change it to Byte Array?
I currently have a page which displays a report of multiple tables with the data values in them based on two parameters selected in dropdowns.
Now, I need to generate the same report for each combination of the two parameters as a worksheet in an Excel workbook to be sent as an email attachment. This is to be automatically generated daily, and I'm using the Global.asax to do this task at 1 day intervals. So each sheet will display multiple tables, one below the next, just like they display on the web page where the user can go to view them on demand.
I've seen plenty of resources for exporting a gridview to Excel, where a user clicks and is prompted to download an Excel file, but this is different.
I am working on document storage and retrieval application. In which i display the pdf document as an png image , but i have a email button on the top. On clicking that the user would be able to provide an email address to which the document needs to be sent, and I need to send this pdf as an attachment. I need to password protect the file for security reasons. I have no clue on how i can do this in asp.net mvc.
How to Send Attachment as email with pre-defined names in Asp.Net ...I am not sending the mail with file upload control rather i am sending it with path on my database and file on server..The Email is working fine but the issue is that I want the Name of File As "Document" in Mail box,but its showing path as file name in mail box..
My requirement is like .... I have a text box for ToEmail address , another control is to upload "n" no of files. And a button to send those selected files ToEmail address which had entered in textbox.
The subject of this thread is my question and I am really very sorry, I cannot brief it. I have generated the pdf file which contains text taken as input by various web-form and have saved it in my local drive then sended it to some email addresses. Now I want to know that how can I save it in client computer and send it to some email addresses provided by Client on demand? I am failed to solve this problem as I don't know how to get INFORMATION OF CLIENT'S LOCAL DRIVE AS CLIENT MAY USES DIFFERENT OPERATING SYSTEM.
I have a form for getting user information (say a contact us form). once the data is entered and the user clicks submit, the data provided by the user should be created as a csv format file and should be mailed as an attachment to the website administrator.
Error message says there is another application using that file at the moment.However, I cannot find where the problem is since I have already disposed all the instances based on that file.What's more odd is after I close the debug page, I can easily remove that page in OS file system.
I m accessing another application by consuming webservice of that application. I m sending file to store and retrieving file from other dabatase. Web service is the only to access another application.Now, I want to delete the file using the same web service where I stored that file in the another database.I m getting exception and I m unable to figure it out.
I have a web site that you can upload images, the image path is saved in the ImgPath field in the data database and retrieves the image and displays it in the grid view. I want to be able to delete the image from a folder within my project when I delete the record. I'm trying to delete it from the Detailsview_ItemDeleting event.