The solution is here:
MailService.Message msg = new MailService.Message();
msg.setSender(sender);
msg.setSubject(subject);
msg.setTextBody(textBody);
mailService.sendToAdmins(msg);
On Oct 18, 12:11 am, alesj <[email protected]> wrote:
> Reading this:
> *http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> I'm not able to gather what the "to" property should look like in
> Message.
> From the javadoc, I would expect it to be "" - empty string.
>
> Using that
>
> MailService.Message msg = new MailService.Message(sender, "",
> subject, textBody);
> mailService.sendToAdmins(msg);
>
> throws me this exception
>
> java.lang.IllegalArgumentException: Bad Request: Unexpected recipients
>
> Tried putting null there (into "to") -- I get NPE.
>
> So, what's the right value or way to have this working?
--
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.