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(); } 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 SendGrid for a serious and reliable SMTP service.