質問編集履歴
6
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -39,7 +39,6 @@
|
|
39
39
|
IdMessage.ReplyTo.EMailAddresses := IdMessage.From.Address;
|
40
40
|
IdMessage.Recipients.Add.Text := 'sendto@hogehuga.com'; // 送信先アドレス
|
41
41
|
IdMessage.Subject := 'タイトル';
|
42
|
-
IdMessage.ReplyTo.EMailAddresses := IdMessage.From.Address;
|
43
42
|
IdMessage.Encoding := meMIME;
|
44
43
|
IdMessage.OnInitializeISO:=IdMessage_InitializeISO;
|
45
44
|
IdMessage.ContentType := 'text/plain';
|
5
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
IdSMTP.Port := 587;
|
33
33
|
IdSMTP.Host := 'smtp-mail.outlook.com';
|
34
34
|
IdSMTP.Username := 'hoge@hotmail.com'; // ユーザ名
|
35
|
-
IdSMTP.Password := 'huga'; //
|
35
|
+
IdSMTP.Password := 'huga'; // パスワード
|
36
36
|
|
37
37
|
IdMessage.From.Address := 'hoge@hotmail.com'; // 送信元アドレス
|
38
38
|
IdMessage.From.Name := 'Hoge Huga';
|
@@ -92,4 +92,4 @@
|
|
92
92
|
|
93
93
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
94
94
|
Delphi 10.1 update2
|
95
|
-
|
95
|
+
OpenSSL openssl-1.0.2l
|
4
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,7 +50,6 @@
|
|
50
50
|
IdText.Body.Add('本文');
|
51
51
|
IdText.ContentType := 'text/plain; charset=ISO-2022-JP';
|
52
52
|
|
53
|
-
// Conexão e autenticação
|
54
53
|
try
|
55
54
|
IdSMTP.Connect;
|
56
55
|
IdSMTP.Authenticate;
|
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,7 +23,6 @@
|
|
23
23
|
|
24
24
|
try
|
25
25
|
|
26
|
-
// Configuração do protocolo SSL (TIdSSLIOHandlerSocketOpenSSL)
|
27
26
|
IdSSLIOHandlerSocket.SSLOptions.Method := sslvSSLv2;
|
28
27
|
IdSSLIOHandlerSocket.SSLOptions.Mode := sslmClient;
|
29
28
|
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,6 @@
|
|
27
27
|
IdSSLIOHandlerSocket.SSLOptions.Method := sslvSSLv2;
|
28
28
|
IdSSLIOHandlerSocket.SSLOptions.Mode := sslmClient;
|
29
29
|
|
30
|
-
// Configuração do servidor SMTP (TIdSMTP)
|
31
30
|
IdSMTP.IOHandler := IdSSLIOHandlerSocket;
|
32
31
|
IdSMTP.UseTLS := utUseImplicitTLS;
|
33
32
|
IdSMTP.AuthType := satDefault;
|
@@ -36,7 +35,6 @@
|
|
36
35
|
IdSMTP.Username := 'hoge@hotmail.com'; // ユーザ名
|
37
36
|
IdSMTP.Password := 'huga'; // アドレス
|
38
37
|
|
39
|
-
// Configuração da mensagem (TIdMessage)
|
40
38
|
IdMessage.From.Address := 'hoge@hotmail.com'; // 送信元アドレス
|
41
39
|
IdMessage.From.Name := 'Hoge Huga';
|
42
40
|
IdMessage.ReplyTo.EMailAddresses := IdMessage.From.Address;
|
@@ -49,7 +47,6 @@
|
|
49
47
|
IdMessage.CharSet := 'ISO-2022-JP';
|
50
48
|
IdMessage.ContentTransferEncoding := 'BASE64';
|
51
49
|
|
52
|
-
// Configuração do corpo do email (TIdText)
|
53
50
|
IdText.Body.Clear;
|
54
51
|
IdText.Body.Add('本文');
|
55
52
|
IdText.ContentType := 'text/plain; charset=ISO-2022-JP';
|
@@ -66,7 +63,6 @@
|
|
66
63
|
end;
|
67
64
|
end;
|
68
65
|
|
69
|
-
// Envio da mensagem
|
70
66
|
try
|
71
67
|
IdSMTP.Send(IdMessage);
|
72
68
|
except
|
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -97,5 +97,5 @@
|
|
97
97
|
Gmailを使用(正常に使用可)
|
98
98
|
|
99
99
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
100
|
-
Delphi 10.1
|
100
|
+
Delphi 10.1 update2
|
101
101
|
Openssl openssl-1.0.2l
|