This document explains how to set up email functionality for the SheShield application after cloning the repository. The email credentials have been removed from the codebase for security reasons.
- Navigate to the
configdirectory - Copy the
email_config.example.phpfile to create a new file namedemail_config.php:cp config/email_config.example.php config/email_config.php - Open the newly created
email_config.phpfile in your preferred editor - Fill in your SMTP credentials:
SMTP_HOST: Your SMTP server (e.g., smtp.gmail.com)SMTP_USERNAME: Your email addressSMTP_PASSWORD: Your email password or app passwordSMTP_PORT: SMTP port (typically 465 for SSL or 587 for TLS)SMTP_ENCRYPTION: Use 'ssl' or 'tls' based on your SMTP server requirementsDEFAULT_FROM_EMAIL: The email address that will appear as the senderDEFAULT_FROM_NAME: The name that will appear as the sender
If you're using Gmail, you'll need to:
- Enable 2-Factor Authentication on your Google account
- Generate an App Password specifically for this application
- Use that App Password instead of your regular Gmail password
The email_config.php file is included in .gitignore to prevent accidentally committing your credentials to the repository. Never commit files containing sensitive information like passwords or API keys.