質問編集履歴

1

一部コードのが、間違っていました。

2021/01/30 15:39

投稿

rockey_7625
rockey_7625

スコア25

test CHANGED
File without changes
test CHANGED
@@ -230,7 +230,7 @@
230
230
 
231
231
  } catch (ActivityNotFoundException e) {
232
232
 
233
- Toast.makeText(this,"カメラアプリがありません。", Toast.LENGTH_SHORT).show();
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("********@gmail.com", "*********");
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("********@gmail.com", "***"));
365
+ message.setFrom(new InternetAddress("********@yahoo.co.jp", "***"));
366
-
366
+
367
- message.setReplyTo(new Address[]{new InternetAddress("********@gmail.com")});
367
+ message.setReplyTo(new Address[]{new InternetAddress("********@yahoo.co.jp")});
368
-
368
+
369
- message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("********@gmail.com"));
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("例外が発生!\r\n");
407
+ System.out.print("例外!\r\n");
408
408
 
409
409
  e.printStackTrace();
410
410