fixed test warning
This commit is contained in:
@@ -20,11 +20,11 @@ email:
|
||||
|
||||
## 2. Set Environment Variables
|
||||
|
||||
Create a `.env` file in the project root:
|
||||
In the secrets.yaml file add the secrets
|
||||
|
||||
```bash
|
||||
EMAIL_USERNAME=your-email@gmail.com
|
||||
EMAIL_PASSWORD=your-app-password
|
||||
```yaml
|
||||
EMAIL_USERNAME: "your_email_username"
|
||||
EMAIL_PASSWORD: "your_email_password"
|
||||
```
|
||||
|
||||
> **Note:** For Gmail, use an [App Password](https://support.google.com/accounts/answer/185833), not your regular password.
|
||||
@@ -46,6 +46,7 @@ email:
|
||||
```
|
||||
|
||||
**How it works:**
|
||||
|
||||
- Sends immediate alert after 5 errors
|
||||
- Otherwise sends after 15 minutes
|
||||
- Waits 15 minutes between alerts (cooldown)
|
||||
@@ -75,6 +76,7 @@ uv run python examples/test_email_monitoring.py
|
||||
```
|
||||
|
||||
This will:
|
||||
|
||||
- ✅ Send a test email
|
||||
- ✅ Trigger an error alert
|
||||
- ✅ Send a test daily report
|
||||
@@ -124,12 +126,14 @@ Errors (3):
|
||||
### No emails received?
|
||||
|
||||
1. Check your SMTP credentials:
|
||||
|
||||
```bash
|
||||
echo $EMAIL_USERNAME
|
||||
echo $EMAIL_PASSWORD
|
||||
```
|
||||
|
||||
2. Check application logs for errors:
|
||||
|
||||
```bash
|
||||
tail -f alpinebits.log | grep -i email
|
||||
```
|
||||
@@ -167,6 +171,7 @@ Errors (3):
|
||||
## Support
|
||||
|
||||
For issues or questions:
|
||||
|
||||
- Check the [documentation](./EMAIL_MONITORING.md)
|
||||
- Review [test examples](../examples/test_email_monitoring.py)
|
||||
- Open an issue on GitHub
|
||||
|
||||
Reference in New Issue
Block a user