質問編集履歴
1
一部コードのが、間違っていました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -230,7 +230,7 @@
|
|
230
230
|
|
231
231
|
} catch (ActivityNotFoundException e) {
|
232
232
|
|
233
|
-
Toast.makeText(this,"
|
233
|
+
Toast.makeText(this,"アプリ無し。", Toast.LENGTH_SHORT).show();
|
234
234
|
|
235
235
|
}
|
236
236
|
|
@@ -352,7 +352,7 @@
|
|
352
352
|
|
353
353
|
protected PasswordAuthentication getPasswordAuthentication() {
|
354
354
|
|
355
|
-
return new PasswordAuthentication("********@
|
355
|
+
return new PasswordAuthentication("********@yahoo.co.jp", "*********");
|
356
356
|
|
357
357
|
}
|
358
358
|
|
@@ -362,13 +362,13 @@
|
|
362
362
|
|
363
363
|
Message message = new MimeMessage(session);
|
364
364
|
|
365
|
-
message.setFrom(new InternetAddress("********@
|
365
|
+
message.setFrom(new InternetAddress("********@yahoo.co.jp", "***"));
|
366
|
-
|
366
|
+
|
367
|
-
message.setReplyTo(new Address[]{new InternetAddress("********@
|
367
|
+
message.setReplyTo(new Address[]{new InternetAddress("********@yahoo.co.jp")});
|
368
|
-
|
368
|
+
|
369
|
-
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("********@
|
369
|
+
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("********@yahoo.co.jp"));
|
370
|
-
|
370
|
+
|
371
|
-
message.setSubject("写真
|
371
|
+
message.setSubject("写真");
|
372
372
|
|
373
373
|
MimeBodyPart messageBodypart = new MimeBodyPart();
|
374
374
|
|
@@ -404,7 +404,7 @@
|
|
404
404
|
|
405
405
|
} catch (Exception e ) {
|
406
406
|
|
407
|
-
System.out.print("例外
|
407
|
+
System.out.print("例外!\r\n");
|
408
408
|
|
409
409
|
e.printStackTrace();
|
410
410
|
|