質問編集履歴
2
sendmail.iniのソースコードを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
12
|
|
13
|
-
```
|
13
|
+
```PHP
|
14
|
+
//mail.php
|
15
|
+
|
14
16
|
<?php
|
15
17
|
require 'php-library/Exception.php';
|
16
18
|
require 'php-library/PHPMailer.php';
|
@@ -62,11 +64,11 @@
|
|
62
64
|
/// エラー内容全出力
|
63
65
|
var_export($mailer->ErrorInfo);
|
64
66
|
}
|
65
|
-
|
66
67
|
```
|
67
68
|
|
69
|
+
```PHP
|
70
|
+
//sendmail.ini
|
68
71
|
|
69
|
-
```sendmail.ini
|
70
72
|
; configuration for fake sendmail
|
71
73
|
|
72
74
|
; if this file doesn't exist, sendmail.exe will look for the settings in
|
1
sendmail.iniのソースコードを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
12
|
|
13
|
-
```
|
13
|
+
```PHPMailer
|
14
14
|
<?php
|
15
15
|
require 'php-library/Exception.php';
|
16
16
|
require 'php-library/PHPMailer.php';
|
@@ -65,6 +65,82 @@
|
|
65
65
|
|
66
66
|
```
|
67
67
|
|
68
|
+
|
69
|
+
```sendmail.ini
|
70
|
+
; configuration for fake sendmail
|
71
|
+
|
72
|
+
; if this file doesn't exist, sendmail.exe will look for the settings in
|
73
|
+
; the registry, under HKLM\Software\Sendmail
|
74
|
+
|
75
|
+
[sendmail]
|
76
|
+
|
77
|
+
; you must change mail.mydomain.com to your smtp server,
|
78
|
+
; or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup)
|
79
|
+
; emails delivered via IIS's pickup directory cause sendmail to
|
80
|
+
; run quicker, but you won't get error messages back to the calling
|
81
|
+
; application.
|
82
|
+
|
83
|
+
smtp_server=mail.mydomain.com
|
84
|
+
|
85
|
+
; smtp port (normally 25)
|
86
|
+
|
87
|
+
smtp_port=25
|
88
|
+
|
89
|
+
; SMTPS (SSL) support
|
90
|
+
; auto = use SSL for port 465, otherwise try to use TLS
|
91
|
+
; ssl = alway use SSL
|
92
|
+
; tls = always use TLS
|
93
|
+
; none = never try to use SSL
|
94
|
+
|
95
|
+
smtp_ssl=auto
|
96
|
+
|
97
|
+
; the default domain for this server will be read from the registry
|
98
|
+
; this will be appended to email addresses when one isn't provided
|
99
|
+
; if you want to override the value in the registry, uncomment and modify
|
100
|
+
|
101
|
+
;default_domain=mydomain.com
|
102
|
+
|
103
|
+
; log smtp errors to error.log (defaults to same directory as sendmail.exe)
|
104
|
+
; uncomment to enable logging
|
105
|
+
|
106
|
+
error_logfile=error.log
|
107
|
+
|
108
|
+
; create debug log as debug.log (defaults to same directory as sendmail.exe)
|
109
|
+
; uncomment to enable debugging
|
110
|
+
|
111
|
+
;debug_logfile=debug.log
|
112
|
+
|
113
|
+
; if your smtp server requires authentication, modify the following two lines
|
114
|
+
|
115
|
+
auth_username=
|
116
|
+
auth_password=
|
117
|
+
|
118
|
+
; if your smtp server uses pop3 before smtp authentication, modify the
|
119
|
+
; following three lines. do not enable unless it is required.
|
120
|
+
|
121
|
+
pop3_server=
|
122
|
+
pop3_username=
|
123
|
+
pop3_password=
|
124
|
+
|
125
|
+
; force the sender to always be the following email address
|
126
|
+
; this will only affect the "MAIL FROM" command, it won't modify
|
127
|
+
; the "From: " header of the message content
|
128
|
+
|
129
|
+
force_sender=
|
130
|
+
|
131
|
+
; force the sender to always be the following email address
|
132
|
+
; this will only affect the "RCTP TO" command, it won't modify
|
133
|
+
; the "To: " header of the message content
|
134
|
+
|
135
|
+
force_recipient=
|
136
|
+
|
137
|
+
; sendmail will use your hostname and your default_domain in the ehlo/helo
|
138
|
+
; smtp greeting. you can manually set the ehlo/helo name if required
|
139
|
+
|
140
|
+
hostname=
|
141
|
+
```
|
142
|
+
|
143
|
+
|
68
144
|
### 試したこと
|
69
145
|
|
70
146
|
ポート番号は25, 587, 465を試しましたが、すべて同じエラーメッセージが表示されます。
|