質問編集履歴
3
変数の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
settings.EMAIL_HOST_USER =
|
37
|
+
settings.EMAIL_HOST_USER = email
|
38
38
|
|
39
39
|
settings.EMAIL_HOST_PASSWORD = password
|
40
40
|
|
@@ -46,6 +46,6 @@
|
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
send_mail(SUBJECT, BODY,
|
49
|
+
send_mail(SUBJECT, BODY, email, [toaddrs] )
|
50
50
|
|
51
51
|
```
|
2
マニュアル追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,6 +7,12 @@
|
|
7
7
|
分かる方がいらっしゃいましたらご回答をお願い致します。
|
8
8
|
|
9
9
|
どうぞよろしくお願い致します。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
[Xserver SMTP設定マニュアル](https://www.xserver.ne.jp/manual/man_mail_setting.php)
|
10
16
|
|
11
17
|
|
12
18
|
|
1
コード
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,8 @@
|
|
20
20
|
|
21
21
|
#ソース
|
22
22
|
|
23
|
+
```Python
|
24
|
+
|
23
25
|
from django.core.mail import send_mail
|
24
26
|
|
25
27
|
from django.conf import settings
|
@@ -39,3 +41,5 @@
|
|
39
41
|
|
40
42
|
|
41
43
|
send_mail(SUBJECT, BODY, username, [toaddrs] )
|
44
|
+
|
45
|
+
```
|