Hi, I tried with Production environment.
Follow this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/fdfdafa51ef140fc/97d7c0492c2270bb?lnk=gst&q=seleronm#97d7c0492c2270bb (see the second comment) works for you? I think that I cannot use the third comment in the Development environment using Java-SDK. And, I think that the setting to the mail server is unnecessary in the prodction environment. Another cause might exist if the mail transmitted in the production environment cannot be normally received. Please Try. Thanks. 2009/12/26 venkat satyanarayana <[email protected]>: > HI Thank you, > > i didn't see any setting in the link , > can you please tell me setting > > > Thanks > venkat > > On Thu, Dec 24, 2009 at 1:04 PM, venkat satyanarayana > <[email protected]> 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("[email protected]", >> "Example.com Admin")); >> } catch (UnsupportedEncodingException e) { >> // TODO Auto-generated catch block >> e.printStackTrace(); >> } >> try { >> msg.addRecipient(Message.RecipientType.TO, >> new >> InternetAddress("[email protected] >> ", "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 >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> >> > > -- > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
