Base solution for your next web application
Open Closed

Unable to send mail from a tenant #2757


User avatar
0
omkarchoudhari created

We have devloped a multi-tenant applecation using aspnetzero angular and mvc5 abp framework. Although our emails are working fine from the default tenant , we are unable to send email froma tenant. We are using hangfire for background services and email scheduling. Each tenant has a separate database. It seems that the hangfire tables are created in each tenant db , however its not able to trigger call to sendemail method when an email is sent from a tenent. Could your support team guide us to resolve this issue? Email is a critical part of the application.

Perhaps you can share the issue over telephone if the contact number is available to us.

Thanks.


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I assume you have configured SMTP settings only for host, right ? Also, can you share code for your background job ? We can understand the problem better in that way. We will try to help you as fast as possible.

    Thanks.

  • User Avatar
    0
    omkarchoudhari created

    We would like to know how hangfire is implemented in a multi-tenant application ? Scenario 1:

    1. Does hangfire create tables in each tenant or only in the host Database
    2. In our application the hangfire tables are created in only Host DB and in the Hangfire.Job table , we are passing tenantId.
    3. Strangely its working fine foe sometime and stops sending emails at other times. its uncertain.
    4. Hangfire enqueues jobs properly but emails are not sent from some tenants. Hard to figure out what is going wrong. We are currently using free version of Hangfire. Do you think that purchasing the licensed version would help ?
    5. Its mentioned in the ABP documentation that , the Backgroundjobmanager is single.threaded. Is the isuu we are facing with sending emails because of that ? If so what can we do to make it multithreaded ?

    LOOKING FORWARD TO AN URGENT RESPONSE. Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you send your project to <a href="mailto:[email protected]">[email protected]</a> ? So, we can help you as soon as possible.

    If you cannot send whole project, just send the related parts for hangfire job.

    I think your problem is not related to hangfire, so you don't neet to buy it because your usage is very simple. Also I think it is not related to single or multi thread.

    Thanks.

  • User Avatar
    0
    Mazharmig created

    Have you guys solved this problem?