I've done this in my Flex app.
 
1) Use the FileReferences component to allow the user to select one of more 
files
2) Send the file to the back end...remember FileReferences will make one POST 
requets for every file the user selected
3) With the upload request, send the total number of files the user selected 
and then cache its file as it arrives
4) once u have received all the files (based on the total number), create and 
send your email
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian 
Williams
Sent: Thursday, December 04, 2008 4:12 PM
To: [email protected]
Subject: [flexcoders] Tricky one...adding attachments to an email generated 
from the app



Hi guys,

    And yet another one that I haven't seen...

    Part of our app allows a user to send an email to one or more folks in 
their view.  We simply provide a state that has a simple email form they fill 
out and then we pass that information back through our web service (.NET) that 
actually has the procedure to send the email.  
    
    What I need to be able to do is allow the user to add attachments to the 
email they want to send out.  Is there any way to do this and is there a better 
method to the email solution?  We briefly toyed with the idea of just creating 
the hyperlink to use their own email client, but a user can literally send a 
bulk email to several thousand people and a hyperlink would die a slow, 
miserable death trying to handle that.

Thanks!
Adrian


 

-- 
WARNING
-------
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

Reply via email to