[appengine-java] Re: mail message
Hi, I tested the source code that you had contributed. It seems to operate normally. I think that the setting or the environment in the mail address is a cause. Follow this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/fdfdafa51ef140fc/97d7c0492c2270bb?lnk=gst&q=seleronm#97d7c0492c2270bb Please Try. thanks. On 12月24日, 午後4:34, venkat satyanarayana wrote: > Hi , i ma tring to send mail with google app engine with java > > my code : > > Properties props = new Properties(); > Session session = Session.getDefaultInstance(props, null); > > String msgBody = "test"; > > try { > Message msg = new MimeMessage(session); > try { > msg.setFrom(new > InternetAddress("nidadavolu.ven...@gmail.com", > "Example.com Admin")); > } catch (UnsupportedEncodingException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > try { > msg.addRecipient(Message.RecipientType.TO, > new > InternetAddress("nidadavolu.ven...@gmail.com > ", "Mr. User")); > } catch (UnsupportedEncodingException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > msg.setSubject("Your Example.com account has been > activated"); > msg.setText(msgBody); > Transport.send(msg); > > } catch (AddressException e) { > // ... > } catch (MessagingException e) { > // ... > } > > but i didn't get any error , but we are not receaving mail > > thanks -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Mail message dispatch from the web.xml
Little update: - In fact specifying the full email addresses after the /_ah/mail/ prefix works! - I was fooled by the empty path info :( - It seems to me the given example has not been tested ;) Note that there's a typo in the example given at http://code.google.com/appengine/docs/java/mail/receiving.html: 2 mapping definitions have the same name “handleowner”. A+, Dom -- On Jan 28, 1:39 pm, Dom Derrien wrote: > I've problems setting up specific servlets to respond to mail > messages... > > I've followed the directions given at > http://code.google.com/appengine/docs/java/mail/receiving.html > to setup a series of three filters: > - /_ah/mail/maezel* => MailResponder > - /_ah/mail/twitter* => TwitterResponder > - /_ah/mail/* => CatchAllHandler > > Messages sent to addresses matching the first filter are correctly > forwarded. > Messages sent to addresses matching the second filter are always > forwarded to the CatchAllHandler! > > I've tried to specify the full email addresses (like: > mae...@test.appspotmail.com) but then everything go to the > CatchAllHandler. > > Is it possible the star (*) filter only works after a slash (/)? > > As a work-around, I can forward everything to the CatchAllHandler and > do there a manual dispatch by checking the content of the > request.getPathInfo(). However, this is not nice and I want to > understand the issue root cause! > > Any idea? > > A+, Dom -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.