{% extends 'base.html' %} {% load static %} {% block title %}Test Email Configuration - Optinet Global Links{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Test Email Configuration

Back to Settings
Current Email Configuration
SMTP Host: {{ email_settings.host|default:"Not configured" }} {% if email_settings.host != 'Not configured' and email_settings.host %} Configured {% else %} Missing {% endif %}
Username: {{ email_settings.user|default:"Not configured" }} {% if email_settings.user != 'Not configured' and email_settings.user %} Configured {% else %} Missing {% endif %}
Overall Status: {% if email_settings.host != 'Not configured' and email_settings.user != 'Not configured' and email_settings.host and email_settings.user %} Ready for Testing {% else %} Incomplete Configuration {% endif %}
Gmail Users - Important!

You must use an App Password, not your regular Gmail password.

Click for Gmail Setup Steps
  1. Go to myaccount.google.com
  2. Navigate to Security → 2-Step Verification
  3. Click "App passwords" at the bottom
  4. Select "Mail" and generate password
  5. Use the 16-character password in settings

Gmail SMTP Settings:
Host: smtp.gmail.com, Port: 587, TLS: Yes

Send Test Email
{% if email_settings.host == 'Not configured' or email_settings.user == 'Not configured' or not email_settings.host or not email_settings.user %}
Configuration Required: Please configure your email settings first. Configure Email Settings
{% endif %}
{% csrf_token %}
{{ form.test_email }}
{% if form.test_email.help_text %}
{{ form.test_email.help_text }}
{% endif %} {% if form.test_email.errors %}
{% for error in form.test_email.errors %} {{ error }} {% endfor %}
{% endif %}
Test Email Content
  • OptiNet branded design
  • Configuration confirmation
  • Current SMTP settings
  • Company information
  • Professional footer
Test emails are sent immediately and logged for monitoring.
Troubleshooting Tips
Common Issues:
  • Wrong username/password combination
  • Incorrect SMTP host or port
  • TLS/SSL settings mismatch
  • Firewall blocking SMTP ports
Popular SMTP Settings:
  • Gmail: smtp.gmail.com:587 (TLS)
  • Outlook: smtp.live.com:587 (TLS)
  • Yahoo: smtp.mail.yahoo.com:587 (TLS)
  • Custom: Check with your provider
{% endblock %}