From 25ed54e97e93c2d89aaef1117337f2e2fc2829e9 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Tue, 26 Apr 2016 22:22:52 +0200 Subject: [PATCH] Clean up documentation and examples --- examples/code_generator.phps | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/examples/code_generator.phps b/examples/code_generator.phps index 45b21b98..d9a4da0a 100644 --- a/examples/code_generator.phps +++ b/examples/code_generator.phps @@ -44,7 +44,7 @@ $results_messages = []; // $example_code represents the "final code" that we're using, and will // be shown to the user at the end. -$example_code = "Port = \"" . $_POST['smtp_port'] . "\";"; $example_code .= "\n\$mail->SMTPSecure = \"" . strtolower($_POST['smtp_secure']) . "\";"; $example_code .= "\n\$mail->SMTPAuth = " . (array_key_exists( - 'smtp_authenticate', - $_POST - ) ? 'true' : 'false') . ";"; + 'smtp_authenticate', + $_POST + ) ? 'true' : 'false') . ";"; if (array_key_exists('smtp_authenticate', $_POST)) { $example_code .= "\n\$mail->Username = \"" . $_POST['authenticate_username'] . "\";"; $example_code .= "\n\$mail->Password = \"" . $_POST['authenticate_password'] . "\";"; @@ -219,7 +219,7 @@ $example_code .= "\n}"; - PHPMailer Test Page + PHPMailer Code Generator