Email going to wrong user
Closed this issue · 1 comments
trentnbauer commented
Describe the bug
The email for user 2 is going to the email_recipients (user1) address.
I want this email to go to user 2
I tried removing the "emailRecipientAddress" from the config and the container through config errors
Screenshots or Logs
{
"cronSchedule": "0 0,6,12,18 * * *",
"blacklistedGames": [],
"searchStrategy": "all",
"runOnStartup": true,
"runOnce": false,
"timezone": "Australia/Melbourne",
"intervalTime": 60,
"accountConcurrency": 3,
"logLevel": "info",
"notificationTimeoutHours": 24,
"testNotifiers": false,
"skipVersionCheck": false,
"browserLaunchTimeout": 15,
"browserLaunchRetryAttempts": 5,
"browserNavigationTimeout": 30000,
"deviceAuthClientId": "98f7e42c2e3a4f86a74eb43fbb41ed39",
"deviceAuthSecret": "0a2449a2-001a-451e-afec-3e812901c4d7",
"deviceAuthPollRateSeconds": 10,
"notifiers": [
{
"type": "email",
"smtpHost": "smtp.gmail.com",
"smtpPort": 587,
"emailSenderAddress": "noreply@gamersgrind.com",
"emailSenderName": "Epic Games Captchas",
"emailRecipientAddress": "user1@gmail.com",
"secure": false,
"auth": {
"user": "OBFUSCATED@gmail.com",
"pass": "OBFUSCATED",
},
},
],
"accounts": [
{
"email": "user1@gmail.com"
},
{
"email": "user2@gmail.com"
}
],
"webPortalConfig": {
"localtunnel": false,
"baseUrl": "https://egf.xfgn.dev"
}
}
Additional context
claabs commented
For per-user notifications, the notifier needs to be configured in the account object. So in your case:
{
"cronSchedule": "0 0,6,12,18 * * *",
"blacklistedGames": [],
"searchStrategy": "all",
"runOnStartup": true,
"runOnce": false,
"timezone": "Australia/Melbourne",
"intervalTime": 60,
"accountConcurrency": 3,
"logLevel": "info",
"notificationTimeoutHours": 24,
"testNotifiers": false,
"skipVersionCheck": false,
"browserLaunchTimeout": 15,
"browserLaunchRetryAttempts": 5,
"browserNavigationTimeout": 30000,
"deviceAuthClientId": "98f7e42c2e3a4f86a74eb43fbb41ed39",
"deviceAuthSecret": "0a2449a2-001a-451e-afec-3e812901c4d7",
"deviceAuthPollRateSeconds": 10,
"accounts": [
{
"email": "user1@gmail.com",
"notifiers": [
{
"type": "email",
"smtpHost": "smtp.gmail.com",
"smtpPort": 587,
"emailSenderAddress": "noreply@gamersgrind.com",
"emailSenderName": "Epic Games Captchas",
"emailRecipientAddress": "user1@gmail.com",
"secure": false,
"auth": {
"user": "OBFUSCATED@gmail.com",
"pass": "OBFUSCATED",
},
},
],
},
{
"email": "user2@gmail.com",
"notifiers": [
{
"type": "email",
"smtpHost": "smtp.gmail.com",
"smtpPort": 587,
"emailSenderAddress": "noreply@gamersgrind.com",
"emailSenderName": "Epic Games Captchas",
"emailRecipientAddress": "user2@gmail.com",
"secure": false,
"auth": {
"user": "OBFUSCATED@gmail.com",
"pass": "OBFUSCATED",
},
},
],
}
],
"webPortalConfig": {
"localtunnel": false,
"baseUrl": "https://egf.xfgn.dev"
}
}
The account email
field is just used for naming the account. It's a holdover from when the project used to login automatically. Sorry about any confusion.