attachment

Best way to determine whether an attached document will harm a user when opened

We're writing a feature that will allow our users to "attach" things like Word documents, Excel spreadsheets, pictures, pdfs to documents in our application - just like email. We don't however, want to allow them to attach .exe, .bat, .reg files, or anything else that might harm them if they opened it - so we're proposing to have a whit...

How to extract the attachments from an IMAP message?

Hi, how do I extract all attachments from an IMAP message? I use Objective-C and Cocoa, but are happy for generic tutorials, code or hints, too. Regards ...

No AttachmentRemoved event in Outlook 2003 object model...?

Hi I'm currently working with the Outlook 2003 object model in VB6. I'm trying to detect when a user removes an attachment from a message but although the model provides AttachmentAdd and AttachmentRead events, I can't see how to pick up that an attachment has been removed ? Any thoughts...? TIA Matt ...

XML for Web Service: inline attachment

I have to invoke a web service with a single parameter, a String in XML format. I'm building this via an XSLT transformation. So far so good. The problem is with this XSD fragment: <xs:complexType name="Document"> <xs:sequence> <xs:element name="title" type="xs:string" minOccurs="1"/> <xs:element name="content" typ...

How send a file in email without save file in disk?

I need to send a vcal file in email.I want to send file without creating it disk. I has file in string format. ...

How to use the default email client to send an email with an attachment from Java?

I have a Java program which generates a PDF file. I want the user to click a button to open the default email client ready to send the PDF as an attachment. The two standard ways of opening the default email client have problems: Java 6 doesn't seem to allow for attachments in the generated message JDIC has a bug which prevents Outlo...

Sending emails to multiple subscribers with the Zend Framework

I think I must be doing something wrong here because my code only sent an email to the last subscriber in the table. When I log the array of subscribers, its obvious that there are more than one that it is trying to send to. I think the problem has to do with trying to batch them together...What is the best way for me to do this? I'm try...

Programmatically managing Microsoft Access Attachment-typed field with C#.NET

Access added a new data type in the 2007 version--the Attachment type. We are currently working on a WinForms application with .NET 3.5 (C#) that uses an Access 2007 database. We want to be able to add new attachments through the WinForms interface. I can't seem to locate any information on how to insert or select attachment data with .N...

After open attachment page events not work in asp.net

On a page, i open an attachment on link button click by set PostBackUrl as lnkCalendar.PostBackUrl = "AddScheduleToCalendar.aspx?scheduleGuid=" + scheduleGuid; After save or close attachment, currentlly open web page buttons click still open same attachement again thier own click event donot work. If untill not click attachment link...

iphone mail won't display javascript in attached html files?

When I attach an HTML file to an email and then email it to my iphone, I can view the file perfectly. However, none of the javascript in the file seems to run - not even simple stuff like showing / hiding divs triggered by "onClick" events. Is there any way to make javascript run on attached files in the iphone mail application? ...

How can I send email attachment without using an additional library in Perl?

Hey, I was wondering if there is a way to attach files (specifically .csv files) to a mail message in Perl without using MIME::Lite or any other libraries. Right now, I have a 'mailer function' that works fine, but I'm not sure how to adapt it into attaching files. Here is what I have: open(MAIL, "|/usr/sbin/sendmail -t"); print MAIL ...

Python: Sending Multipart html emails which contain embedded images

I've been playing around with the email module in python but I want to be able to know how to embed images which are included in the html. So for example if the body is something like <img src="../path/image.png"></img> I would like to embed image.png into the email, and the src attribute should be replaced with a content-id. Does an...

sharepoint web service Maximum request length exceeded even if the file is inside the max file size

Hi, I have configured the web.config to allow 50 MB <httpRuntime maxRequestLength="51200" /> but when I try to add an Atachment of 40MB to a sharepoint list it fails. But it works if I increase the maxRequestLength to 52 MB <httpRuntime maxRequestLength="53248" />. What is happening?? does the web service call increse the size of the ...

Image not deleted even after file.delete() method!!!

Hi All : I have to send mail along with embedded image. Once the mail has been sent, image in the application server should be deleted immediately. Problem i am facing is, after mail sent the control goes method which contain File file = new File("../bar.jpeg") if(file.exists()){ file.delete(); System.out.println(...

sending attachment using applescript in cocoa

I have made a short applescript that sends an email with an attached vcs-file. Now I want to integrate this script in my cocoa application. I have tried the following code that i found on the internet: NSAppleScript *mailScript; NSString *scriptString= [NSString stringWithFormat:@"the applescript"]; mailScript = [[NSAppleScript alloc] i...

attachment fu - file path

how to get 'manually' the path of a file created with attachment fu without calling model.public_filename ? ...

How to take a screenshot and send by email programaticly on dotnet

Background: I'm developing a bussiness application, and in the final stages we are encountering some extrange errors, mostly with connection and some edge use cases. For this kind of exceptions, we now provide a nice dialog with error details, of which the user take a screenshot, and send by email with some remarks. Problem: I would...

PDF Javascript export attachment

I'm looking for solution for exporting attachments from pdf and I find some interesting stuff here: http://www.acrobatusers.com/tutorials/importing-and-exporting-pdf-file-attachments-acrobat-javascript But, I have problem when using this code: this.exportDataObject({cName:"MyDoc", nLaunch:2}); I always get this error: TypeError: Inv...

how send file (txt/XML) from iphone to server(web or email)

Hi I want to send text or XML from iphone to another desktop machine. Is there any way so that I can use Email to send file as attachment or can send it by HTTP POST method. Please help me. ...

Zend_Mail: how to get attachment ID?

Hi, I am using Zend to create emails. Now I will place an inline image in the HTML Part of the mail. So I am attaching the image with: $imageContent = file_get_contents(APPLICATION_PATH.'../html/static/img/image.jpg'); $image = $mail->createAttachment($imageContent, 'image/jpeg', Zend_Mime::DISPOSITION_INLINE, Zend_Mime::E...