Hello,

I've got a problem sending a mail from my GAE project. here is my code:








Properties props = new Properties();

        Session session = Session.getDefaultInstance(props, null);

        String msgBody = "...";

        try {

            Message msg = new MimeMessage(session);

            msg.setFrom(new InternetAddress("[email protected]", "Example.com 
Admin"));

            msg.addRecipient(Message.RecipientType.TO,new InternetAddress(
"[email protected]", "Mr. User"));

            msg.setSubject("Your Example.com account has been activated");

            msg.setText(msgBody);

            Transport.send(msg);

    

        } catch (AddressException e) {

        } catch (MessagingException e) {

        }

I get errors like:  

javax.mail.Message is not supported by Google App Engine's Java runtime 
environment

What's the problem here?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to