Reading this:
*
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/mail/MailService.html#sendToAdmins%28com.google.appengine.api.mail.MailService.Message%29

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.

Reply via email to