質問編集履歴

3

表記変更

2018/05/16 07:35

投稿

Nitta
Nitta

スコア96

test CHANGED
File without changes
test CHANGED
@@ -56,7 +56,7 @@
56
56
 
57
57
  //$mail->IsSMTP();
58
58
 
59
- $mail->IsSMTP(false);
59
+ $mail->IsSMTP();
60
60
 
61
61
  $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
62
62
 

2

表記変更

2018/05/16 07:35

投稿

Nitta
Nitta

スコア96

test CHANGED
File without changes
test CHANGED
@@ -92,7 +92,7 @@
92
92
 
93
93
  $message = "Message was not sent<br/ >";
94
94
 
95
- $message .= "Mailer Error: " . $mailer->ErrorInfo;
95
+ $message .= "Mailer Error";
96
96
 
97
97
  } else {
98
98
 
@@ -112,8 +112,4 @@
112
112
 
113
113
  2018-05-16 05:58:39 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
114
114
 
115
- PHP Notice: Undefined variable: mailer in C:\php\nitta.php on line 35
116
-
117
- PHP Notice: Trying to get property 'ErrorInfo' of non-object in C:\php\nitta.php on line 35
118
-
119
- Message was not sent<br/ >Mailer Error:
115
+ Message was not sent<br/ >Mailer Error

1

内容変更

2018/05/16 07:27

投稿

Nitta
Nitta

スコア96

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  また、php.iniにも
10
10
 
11
- SMPT=smtp.gmail.com
11
+ SMTP=smtp.gmail.com
12
12
 
13
13
  smpt_port=587
14
14