digitalcredentials / dcc-admin-dashboard

Admin tool for issuing DCC Verifiable Credentials
MIT License
2 stars 6 forks source link

Q&A- Tec: Sending invitation by email #28

Open MyriamLara opened 7 months ago

MyriamLara commented 7 months ago

Hello!

Sometimes, when sending the invitation to the students, the dashboard admin is left “Sending”, and we are left with uncertainty because we do not know if the complete process was really done or not. We have observed the above when we send several invitations, since with 1 or 2, the behavior is stable.

Can you please guide us to know where the detail could be?

Below we share evidence through image 1:

image

As you can see in image 1, after sending the invitation, it remains “Sending” indefinitely. With a shipment of approx. 5 students, most of them do not receive the invitation and the console sends the following errors (see images 2 and 3).

Image 2 image

Image 3 image

jchartrand commented 7 months ago

This could be a problem with hotmail.

In particular, these two errors in the stack traces (from the images posted above) suggest that:

  1. Hotmail might be rate limiting:

Message failed: 432 4.3.2 Concurrent connections limit exceeded. Visit https://aka.ms/concurrent_sending for more information. [Hostname=SA3PR10MB7600.namprd10.prod.outlook.com"

  1. Hotmail doesn't like emails sent with a different 'from' address than the owner of the account:

"aldo_amor-@hotmail.com not allowed to send as tec.credentials@hotmail.com;"

MyriamLara commented 7 months ago

@jchartrand add the example csv file as well as the credential and email template, so they can replicate the incident. Correo Tec credencial MTY.csv plantilla credencial.txt

kayaelle commented 7 months ago

@MyriamLara - would you be able to try this with Tec de Monterrey smtp or sendmail smtp instead of hotmail? (Javier emailed with this question too)

MyriamLara commented 6 months ago

@kayaelle @jchartrand We have tried institutional email and we have had the same problem as with hotmali. There is a certain blocking of transactions by the server, at most it allows us to create 2 requests or in very rare cases 3. Since this is not new and seeing in forums that we are not the only one who has problems with this, we ask about other alternatives. Many developer recommendations recommend using a service like twilio or sendgrid like we are doing. For this reason we do not see the use with the institutional account as feasible, at the time we thought it was problems with the SMTP library that they use to send mail, but when we realized that with Gmail accounts they did come out with a certain configuration creating an authentication for the application In Gmail we were able to make many transactions. We will soon share the solution or steps to follow to do it with Gmail. However, we confirm that with a tec.mx domain, hotmail, outlook or any Microsoft account, there is no more than 1 transaction.

kayaelle commented 5 months ago

@MyriamLara - checking in on the status of sending email because i've heard that it is working now. Could you let us know? Also, would love to hear about the solution you found for gmail so we can provide that for others. Thanks!