Sorry, been sick for a while. Here is the complete source working on
1.3 release of GAE/J:
public class MailHandler extends HttpServlet {
private static final long serialVersionUID = 895612806305910032L;
private final Logger logger = Logger.getLogger(getClass().getName());
Sam, that's awesome! I've bookmarked that and will be using that anytime
someone asks about (incoming mail && processing attachments && Spring).
On Thu, Dec 10, 2009 at 6:12 AM, Sam wrote:
> Ikai, excellent, thanks for posting that and you're right, the 1.2.8
> change makes it simpler.
>
> I als
Ikai, excellent, thanks for posting that and you're right, the 1.2.8
change makes it simpler.
I also used Jeremy's example and came out with code very similar to
yours. Besides demonstrating incoming and outgoing email, it is also
a spring mvc 3 starter app:
try it live: http://springstarterapp.
Peter, I'm hoping this solved your issue with CIDs and inline image
attachments. If you can, it'd be awesome if you could post some sample code
for the group.
On Wed, Dec 9, 2009 at 2:02 PM, Peter Ondruska wrote:
> Thank you Jeremy, Ikai, and tetest. I was able to finish incoming mail
> handler i
Thank you Jeremy, Ikai, and tetest. I was able to finish incoming mail
handler in Java and it works fine now. I has been confusing due to
changes in 1.2.7 and 1.2.8 releases. Peter
On Dec 9, 10:52 pm, "Ikai L (Google)" wrote:
> I've just tested this code out with Yahoo, Gmail and Hotmail for proc
I've just tested this code out with Yahoo, Gmail and Hotmail for processing
an attachment. It's working well. Thanks to Jeremy Blythe for looking into
this and posting about it! I'll add this to the cookbook when I get a
chance.
// IncomingMailHandlerServlet.java
import com.google.appengine.api.d
Sam,
I understand your confusion. I'm looking into it. The code I posted was to
convert an InputStream to the proper format. My understanding is that 1.2.8
actually fixed the issue, so our code should actually end up being simpler
and closer adhere to standard Java incoming mail processing.
Any h
Appengine team, can someone please post (on the incoming mail docs
page) a full example of processing an incoming email in appengine
1.2.8 including getting the message body and attachment? Please test
from different mail clients. Everyone is totally confused here,
especially with the mysterious
I have updated my example now for 1.2.8 if that helps:
http://jeremyblythe.blogspot.com/2009/12/gae-128-fixes-mail-but-not-jaxb.html
2009/12/5 m seleron :
> Hi.Peter,
>
> As one example.
>
> When you use
>
> InputStream
Hi.Peter,
As one example.
When you use
InputStream inputStream = message.getInputStream(); //
ByteArrayDataSource inboundDataSource = new
ByteArrayDataSource(inputStream, message.getContentType());
Multipart inbo
OK. now I am really puzzled. message.getContent() is very much
dependent on how message is sent, e.g. email from Gmail:
message.getContent().getClass().getName() is
javax.mail.internet.MimeMultipart
email from Hotmail and Yahoo mail:
message.getContent().getClass().getName() throws:
Uncaught excep
Ikai, my code looks same as yours to me:
package eu.kaibo.server;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.mail.Address;
import javax.mai
Peter,
I'm working on a cookbook entry for processing incoming mail in Java. Here's
some code I had working. Can you take a look at this and see if there's
anything you can adapt?
import com.google.appengine.api.datastore.Blob;
import com.google.appengine.api.datastore.Key;
import javax.jdo.anno
tetest, thank you, the complete working example would be then:
MimeMessage message = new MimeMessage(session,
request.getInputStream());
StringBuffer sb = new StringBuffer();
sb.append("From: ");
Addr
Hi,
Follow this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/b49ff7e581723dab/868085ecbe2bc826#868085ecbe2bc826
http://groups.google.com/group/google-appengine-java/browse_thread/thread/e6a23e509e7d43c9/4ba5eeb4573731dd?lnk=gst&q=seleronM#4ba5eeb4573731dd
Tho
15 matches
Mail list logo