Hello everyone,
I have a doubt about Mail API in GAE. I've copied the simple example code
to make my website send me a mail when a form is filled.
I don't expect, by any means, to overtake the limits. But the logs show me
this exception:
javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
> abstract int
> com.pablo.pabloweb.client.communication.SendEmailService.send(java.lang.String)'
> threw an unexpected exception:
> com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Socket API
> will be enabled for this application once billing has been enabled in the
> admin console.
> at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
> at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
...
Is it strictly necessary to enable billing? is there any way to use free quota
without enabling billing, as it is with other features?
In case it is needed, this is the java code which generates the exception:
public boolean actualSend(String msgText, String subject) {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
try {
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("gae_admin_email_address"));
msg.addRecipient(Message.RecipientType.TO, new
InternetAddress("another_personal_email_address"));
msg.setSubject(subject);
msg.setText(msgText);
Transport.send(msg);
return true;
} catch (AddressException e) {
return false;
} catch (MessagingException e) {
return false;
}
}
Thanks in advance.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.