2017-11-20 3 views
-1

wampServerを使用してローカルホストからPHPmailerライブラリを使用してメールを送信しています。私はGmailのSMTPサーバーを使用しています。私は私の値するメールアドレスに電子メールを送信することができます。しかし、問題は、私は返信メッセージemail is sentを持っているメールを送信した後、同時に、非常に長い返信メッセージが表示され、非常に長い時間がかかります。なぜこの長い返信メッセージと返信メッセージがあるのですか?ローカルホストでgmail smtpを使用して電子メールを送信すると長い返信メッセージ

screen shot of the return message

+0

、これを試してみてください... – GYaN

+0

@GyandeepSharma ITSは解決しました。ありがとう。私のコードが非常に長い場合、どうすればこのサイトのコードを共有できますか教えてください。 –

答えて

1

あなたはここにコーディングしてください

$mail->SMTPDebug = 0;

(0): Disable debugging (you can also leave this out completely, 0 is the default). 
(1): Output messages sent by the client. 
(2): as 1, plus responses received from the server (this is the most useful setting). 
(3): as 2, plus more information about the initial connection - this level can help diagnose STARTTLS failures. 
(4): as 3, plus even lower-level information, very verbose, don't use for debugging SMTP, only low-level problems. 
+0

ありがとうございます。しかし、それはまだ長い時間がかかります、なぜですか? –

関連する問題