Open Closed

Debugging Email Source Code #1816


User avatar
0
Spospisil created
  • ABP Framework version: v4.4.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Is there a way to debug the Volo.Abp.Emailing source code project when it's called from my web MVC project? Please don't refer me to the other queries on how this can be accomplished as they do not work.


7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can add/override the source code of Volo.Abp.Emailing to your project.

    https://github.com/abpframework/abp/tree/4.4.0/framework/src/Volo.Abp.Emailing https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services

  • User Avatar
    0
    Spospisil created

    Hi,

    I get the following error when I run the abp add-package Volo.Abp.Emailing --with-source-code --add-to-solution-file comma

    [09:54:36 INF] Successfully installed. [09:54:36 INF] Downloading source code of Volo.Abp.Emailing [09:54:36 INF] Version: 4.4.2 [09:54:36 INF] Output folder: C:\Projects\TestWEB\src\TestWebSaas\packages\Volo.Abp.Emailing [09:54:36 ERR] Package is not found or downloadable! System.Exception: Package is not found or downloadable! at Volo.Abp.Cli.ProjectBuilding.NugetPackageInfoProvider.GetAsync(String name) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\NugetPackageInfoProvider.cs:line 41 at Volo.Abp.Cli.ProjectBuilding.NugetPackageProjectBuilder.GetPackageInfoAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\NugetPackageProjectBuilder.cs:line 107 at Volo.Abp.Cli.ProjectBuilding.NugetPackageProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\NugetPackageProjectBuilder.cs:line 46

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Currently only the source code of the basic theme packages(MVC and Blazor) can be downloaded.

    • Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic
    • Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme
    • Volo.Abp.AspNetCore.Components.Web.BasicTheme
    • Volo.Abp.AspNetCore.Components.Server.BasicTheme

    You can try to override the services.

  • User Avatar
    0
    Spospisil created

    Hi,

    All I'm trying to do is to step through the Volo.Abp.Emailing source code to determine what the core issue is as to why my web project cannot send a 'forgot my password' email. I don't need to override any service, just trying to troubleshoot why email is not being sent.

    When I have tried manually grabbing the Volo.Abp.Emailing source code from github and adding a project reference to it in my ABP generated source code for a MVC project, it does not step into the source and rather just runs the line of code without stepping into it's source.

    Please advise.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can use this demo.

    https://github.com/abpframework/abp-samples/tree/master/EmailSendDemo

  • User Avatar
    0
    Spospisil created

    Hi,

    I'm a little confused. In what way does the EmailSendDemo actually use the ABP framework? There are no references to any of the ABP framework libraries and the code uses base the .net system.net.mail library directly.

    The good news though is that I've validated I can send an email within our network using the smtp settings I'm specifying, however I still do not know why I can't use the Volo.Abp.Emailing to send an email nor can I actually step through it's code as described above.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    HI

    Can you share your smtp info with me? liming.ma@volosoft.com

Made with ❤️ on ABP v9.1.0-preview. Updated on November 18, 2024, 05:54