[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-10 Thread Ikai L (Google)
François, Do you have a code snippet, log entries or a stack trace? -- Ikai Lan Developer Programs Engineer, Google App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-10 Thread mably
Of course, here is below my email relay servlet class. What I'm willing to do is to hide my customers email addresses by relaying email to them via my google app email adress. I would like to be able to relay html emails with images which is quite common nowadays. I am sending my test emails fr

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-14 Thread mably
Hi Ikai, have you been able to reproduce my "Converting attachment data failed" exception ? I'm still stuck on this strange bug. Thanx for your help. On 11 nov, 00:00, mably wrote: > Of course, here is below my email relay servlet class.  What I'm > willing to do is to hide my customers email a

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-16 Thread mably
Hi Ikai, thanx for you help. I've copy pasted your code on my webapp (webwinewatch), I've no error but the mail isn't correctly relayed, all attachements are removed. I've just modified the sender, from and recipient lines : message.setSender(new InternetAddress("@gmail.com", "Relay account"));

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-16 Thread mably
In fact standards attachments works. But it's not what I'm trying do do. I'm need to relay HTML messages with inline images and this is still not working. Is it a kind of limitation of GAE or is it supposed to work ? Thanx for your help. François On 16 nov, 23:09, mably wrote: > Hi Ikai, tha

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread mably
I'm just sending a simple mail from my Gmail account with an embedded gif image. I can perfectly read it from my mail servlet handler but when I try to relay it (cf. code from first message) I get this annoying "Converting attachment data failed" error which seems to be specific to GAE. Here is t

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread mably
I've written a simple class sending an HTML email with an embedded image (cf. below) via GMail SMTP. It works perfectly fine when run locally from Eclipse. The same code in a GAE mail servlet handler produce the infamous "Converting attachment data failed" error. So it really seems to be a probl

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread mably
Of course, the code above doesn't need to be run in mail handler servlet :-) On Nov 19, 12:01 am, mably wrote: > I've written a simple class sending an HTML email with an embedded > image (cf. below) via GMail SMTP.  It works perfectly fine when run > locally from Eclipse. > > The same code in a

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread mably
I haven't found a way to set a Content-ID header on a mimebodypart/ attachment using the low-level API. The MailService.Attachment class is quite rudimentary (only filename and data). May be some part of the low level API are still undocumented ? Thanx for all. On Nov 19, 12:25 am, "Ikai L (Goo

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-19 Thread mably
Any chance to see this bug fixed in the future ? Is there any documentation on the meaning of "Converting attachment data failed" error message ? On 19 nov, 20:55, "Ikai L (Google)" wrote: > Looks like you're right. As far as I know there are no hidden methods. > > Another workaround for this li

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-19 Thread mably
By the way, do you know if Google plans to open source some parts of GAE librairies so we could investigate deeper when we encounter such a problem ? On 19 nov, 21:01, mably wrote: > Any chance to see this bug fixed in the future ? > > Is there any documentation on the meaning of "Converting > at

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-23 Thread Don
Hi Ikai, I tried your example code, but I cannot attach an image on the email that I send. There is no conversion error either. Here is snippets of the code, please help.. //Retrieving image: URL url = new URL("http://stockcharts.com/c-sc/sc?s="; + ticker + "&p=DAILY&b=5&g=0&i=0&r=3528"); //

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-26 Thread Don
Thanks Ikai. It did NOT work before because I set the dataHandler before I set the FileName. Just have to set the FileName and then set the DataHandler. attachment.setFileName("ticker.png"); attachment.setDataHandler(new DataHandler(mimePartDataSource)); Is this behaviour intentional? Many than

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-12-15 Thread Don
Hi Ikai, So does the order of setDataHandler + setFileName cause problems as I wrote above? Regards On Dec 1, 5:25 am, "Ikai L (Google)" wrote: > Interesting, so this did not work? > > attachment.setDataHandler(new DataHandler(mimePartDataSource)); > attachment.setFileName("ticker.png"); > > I

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-12-31 Thread minor-undroid
Hi there, I reproduced same problem. I cannot send attachment file and inline image with HTML mail. (Of course, I could send plain text mail without attachment and HTML mail without inline image) I don't have any idea. It would be very helpful to tell me anything. I build the mime message in Ht

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-12-31 Thread mably
Don't forget to star issue : http://code.google.com/p/googleappengine/issues/detail?id=965 On Dec 31, 3:23 pm, minor-undroid wrote: > Hi there, > > I reproduced same problem. > I cannot send attachment file and inline image with HTML mail. > (Of course, I could send plain text mail without attac

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-12-31 Thread minor-undroid
Sorry, I made a wrting mistake. I cannot send the HTML mail with inline image, and cannot send the HTML mail with attachement file, too. (I could send the plain text mail with an attachment image and HTML mail without attachment file) I think It's only GAE's problem. Do you have any idea? On D

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-16 Thread Ikai L (Google)
I couldn't reproduce your exact error, but I was able to put together a working example of an inbound email handler to relay messages. I'm going to expand the documentation about processing inbound emails. Here's some working code: http://pastie.org/701517 Does this example help any? Code is also

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread Ikai L (Google)
François, I'm not familiar with any standards with regard to inline images. Do you have this working outside of App Engine? Do you have working code from that? If there are discrepancies in our implementation of javax.mail.* and standard implementations we should be aware. On Mon, Nov 16, 2009 at

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread Ikai L (Google)
What I mean is, is this code working on a different mail server? On Wed, Nov 18, 2009 at 2:00 PM, mably wrote: > I'm just sending a simple mail from my Gmail account with an embedded > gif image. > > I can perfectly read it from my mail servlet handler but when I try to > relay it (cf. code from

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread Ikai L (Google)
That's good information to know. We are not using Sun's JavaMail implementation, so it's possible there are points of incompatibility. There's one last thing you may want to try: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/mail/package-summary.html The above page d

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-19 Thread Ikai L (Google)
Looks like you're right. As far as I know there are no hidden methods. Another workaround for this limitation could be to store incoming images in the data store on an incoming email, then reference them in the emails that get sent out. It's not ideal, but it may be the solution to what you are lo

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-19 Thread Ikai L (Google)
We'll always try to open source what makes sense. I'm not sure it'd make sense to open source all GAE libraries since many of the calls talk to services. The javax.mail.* could fall under the "makes sense" category. On Thu, Nov 19, 2009 at 12:07 PM, mably wrote: > By the way, do you know if Goog

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-30 Thread Ikai L (Google)
Interesting, so this did not work? attachment.setDataHandler(new DataHandler(mimePartDataSource)); attachment.setFileName("ticker.png"); I'll need to do some research into the Java mail spec to see if we are matching it. Could be a bug if we aren't. On Thu, Nov 26, 2009 at 12:48 PM, Don wrote:

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-12-17 Thread Ikai L (Google)
It doesn't seem like it should cause issues, but if you have a reproducible test case please let us know. On Tue, Dec 15, 2009 at 6:06 AM, Don wrote: > Hi Ikai, > > So does the order of setDataHandler + setFileName cause problems as I > wrote above? > > Regards > > > On Dec 1, 5:25 am, "Ikai L (

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-12-31 Thread mnr ngsk
Thanks your quick response. I didn't find that issue. 2009/12/31 minor-undroid > Sorry, I made a wrting mistake. > > I cannot send the HTML mail with inline image, > and cannot send the HTML mail with attachement file, too. > (I could send the plain text mail with an attachment image > and HTM