is_action()) { $controls->data = $module->get_options('smtp'); } else { if ($controls->is_action('save')) { if ($controls->data['enabled'] && empty($controls->data['host'])) { $controls->errors = 'The host must be set to enable the SMTP'; } if (empty($controls->errors)) { $module->save_options($controls->data, 'smtp'); $controls->messages .= __('Saved. Remember to test your changes right now!', 'newsletter'); } } if ($controls->is_action('test')) { $mailer = new NewsletterDefaultSMTPMailer($controls->data); $message = NewsletterMailerAddon::get_test_message($controls->data['test_email']); $r = $mailer->send($message); if (is_wp_error($r)) { $controls->errors = $r->get_error_message(); $controls->errors .= '
' . __('Read more', 'newsletter') . '.'; } else { $controls->messages = 'Success.'; } } } if (empty($controls->data['enabled']) && !empty($controls->data['host'])) { $controls->warnings[] = 'SMTP configured but NOT enabled.'; } ?>

Discover how SMTP services can boost your newsletters!

These options can be overridden by extensions which integrates with external SMTPs (like MailJet, SendGrid, ...) if installed and activated.

What you need to know to use an external SMTP can be found here.
On GoDaddy you should follow this special setup.

Consider Sedinblue (aff) for a serious and reliable SMTP service.

init(); ?>
Enable the SMTP? yesno('enabled'); ?>
SMTP host/port host: text('host', 30); ?> port: text('port', 6); ?> select('secure', array('' => 'No secure protocol', 'tls' => 'TLS protocol', 'ssl' => 'SSL protocol')); ?>

Leave port empty for default value (25).
To use GMail, do not set the SMTP here but use a SMTP plugin which supprts oAuth 2.0
On GoDaddy TRY to use "relay-hosting.secureserver.net".

Authentication user: text('user', 30); ?> password: password('pass', 30); ?>

If authentication is not required, leave "user" field blank.

Insecure SSL Connections yesno('ssl_insecure'); ?> Read more.
Test email address text_email('test_email', 30); ?> button('test', 'Send a test email to this address'); ?>

If the test reports a "connection failed", review your settings and, if correct, contact your provider to unlock the connection (if possible).

button_save(); ?>