Hello Sandro,

Are you repackaging the JavaMail JAR from Oracle (from 
http://www.oracle.com/technetwork/java/javamail/index.html )? If so, you 
need to delete those JARs. Google App Engine packages its own custom 
implementation of JavaMail, you're not allowed to override that with your 
own library.

If you're still having trouble, you might be interested in using GAE's low 
level mail API. Documentation is located here: 
https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/mail/MailService
 . 
It's easy to use, just create a 
com.google.appengine.api.mail.MailService.Message 
object, configure it with To, From, Subject, and Body fields, and send it 
using Mailservice.send.


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

My Go side project: http://invalidmail.com/



On Friday, April 19, 2013 9:44:55 AM UTC-5, Sandro Stricker wrote:
>
> 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]<javascript:>
> ", "Example.com Admin"));
>
>             msg.addRecipient(Message.RecipientType.TO,new InternetAddress(
> "[email protected] <javascript:>", "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