Skip to content

Commit e75cafb

Browse files
akerekeslesv
authored andcommitted
Add missing email content (GoogleCloudPlatform#589)
Without this line the code does not work.
1 parent 52a9709 commit e75cafb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

appengine/mail/src/main/java/com/example/appengine/mail/MailServlet.java

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ private void sendSimpleMail() {
6868
msg.addRecipient(Message.RecipientType.TO,
6969
new InternetAddress("user@example.com", "Mr. User"));
7070
msg.setSubject("Your Example.com account has been activated");
71+
msg.setText("This is a test");
7172
Transport.send(msg);
7273
} catch (AddressException e) {
7374
// ...

0 commit comments

Comments
 (0)