RE: [flexcoders] Tricky one...adding attachments to an email generated from the app

2008-12-04 Thread Ryan Graham

Perhaps you could gather the attachments in flex, add  a parameter to
your webservice for them, base64 encode them for transfer via that
parameter, then base64 decode them back to binary files on the server
when sending the email?  Note, base64 encoding binary data increases its
size roughly 30% for the transfer to the server. Not sure if bandwidth
is an issue in your scenario.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adrian Williams
Sent: Thursday, December 04, 2008 2:12 PM
To: flexcoders@yahoogroups.com
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

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Re: [flexcoders] Tricky one...adding attachments to an email generated from the app

2008-12-04 Thread Fotis Chatzinikos
Upload the files to the server, get some unique ids back, send the mail text
and the ids back to the server,
prepare and send the mail attaching the files the ids descrinbe and remember
to delete the files ;-)

On Thu, Dec 4, 2008 at 11:36 PM, Ryan Graham [EMAIL PROTECTED]wrote:

Perhaps you could gather the attachments in flex, add  a parameter to
 your webservice for them, base64 encode them for transfer via that
 parameter, then base64 decode them back to binary files on the server when
 sending the email?  Note, base64 encoding binary data increases its size
 roughly 30% for the transfer to the server. Not sure if bandwidth is an
 issue in your scenario.



 HTH,

 Ryan



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Adrian Williams
 *Sent:* Thursday, December 04, 2008 2:12 PM
 *To:* flexcoders@yahoogroups.com
 *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

  This message is private and confidential. If you have received it in
 error, please notify the sender and remove it from your system.
  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


Re: [flexcoders] Tricky one...adding attachments to an email generated from the app

2008-12-04 Thread Faisal Abid

The Base64 Idea is pretty helpfull in other situations, thanks Ryan.
On 4-Dec-08, at 7:00 PM, Fotis Chatzinikos wrote:

Upload the files to the server, get some unique ids back, send the  
mail text and the ids back to the server,
prepare and send the mail attaching the files the ids descrinbe and  
remember to delete the files ;-)



On Thu, Dec 4, 2008 at 11:36 PM, Ryan Graham  
[EMAIL PROTECTED] wrote:


Perhaps you could gather the attachments in flex, add  a parameter  
to your webservice for them, base64 encode them for transfer via  
that parameter, then base64 decode them back to binary files on the  
server when sending the email?  Note, base64 encoding binary data  
increases its size roughly 30% for the transfer to the server. Not  
sure if bandwidth is an issue in your scenario.



HTH,

Ryan


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Adrian Williams

Sent: Thursday, December 04, 2008 2:12 PM
To: flexcoders@yahoogroups.com
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


This message is private and confidential. If you have received it in  
error, please notify the sender and remove it from your system.




--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],






RE: [flexcoders] Tricky one...adding attachments to an email generated from the app

2008-12-04 Thread Dimitrios Gianninas
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adrian 
Williams
Sent: Thursday, December 04, 2008 4:12 PM
To: flexcoders@yahoogroups.com
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.