Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

EMail error #3467


User avatar
0
avanekar02 created

Hello ,

published the project and ran test email under email tab

it throws an internal server error says 500

<a class="postlink" href="http://localhost:6240/api/services/app/">http://localhost:6240/api/services/app/</a> ... dTestEmail

when i click on this link it shows


{"message":"An error has occurred.","exceptionMessage":"There is an action SendTestEmail defined for api controller app/hostSettings but with a different HTTP Verb. Request verb is GET. It should be Post","exceptionType":"Abp.AbpException","stackTrace":" at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.GetActionDescriptorByActionName(HttpControllerContext controllerContext, DynamicApiControllerInfo controllerInfo, String actionName) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Controllers\Dynamic\Selectors\AbpApiControllerActionSelector.cs:line 103\r\n at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Controllers\Dynamic\Selectors\AbpApiControllerActionSelector.cs:line 56\r\n at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.DynamicApiController1Proxy_6.ExecuteAsync_callback(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.Invocations.ApiController_ExecuteAsync_6.InvokeMethodOnTarget()\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Abp.WebApi.Controllers.Dynamic.Interceptors.AbpDynamicApiControllerInterceptor1.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Controllers\Dynamic\Interceptors\AbpDynamicApiControllerInterceptor.cs:line 57\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Castle.Proxies.DynamicApiController`1Proxy_6.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.


10 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    Hi,

    Try to send email via the program below. It is an arbitral application to see if your configuration is correct or not.

    Download Email Test Application

    .

  • User Avatar
    0
    avanekar02 created

    says authentication required attached image

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @avanekar02,

    I dont know why this does not work. The username in screenshot misses starting i letter. It is "[email protected]", I think it should be "[email protected]". Also try to select authanticated checkbox.

    Can you send email using this credentials in any other program ?

    Thanks.

  • User Avatar
    0
    avanekar02 created

    Hello ,

    please note that the smtp prober works fine with my configuration but when i put the same configuration in the smtp emails settings , it says emai sent successfully but email dows not show up in gmail

    regards Anwar

  • User Avatar
    0
    avanekar02 created

    i also changed email to : <a href="mailto:[email protected]">[email protected]</a> but still it just shows test email sent successfully.

    Regards Anwar

    <cite>avanekar02: </cite> Hello ,

    please note that the smtp prober works fine with my configuration but when i put the same configuration in the smtp emails settings , it says emai sent successfully but email dows not show up in gmail

    regards Anwar

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Because in debug mode, AspNet Zero does not send emails, it writes email content to log file. You cam try to run your app in release mode or you can publish it to local IIS.

    Thanks.

  • User Avatar
    0
    avanekar02 created

    Brother

    Assalam Alaikom,

    I have published the project in iis and get the attached error i have been struggling with this for over a week now and client is upset please can you help me here.

    Regards Anwar

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @avanekar02,

    We can arrange a short Team Viewer meeting for tomorrow. Please write your available time to <a href="mailto:[email protected]">[email protected]</a>.

    We are available between 09:00 to 16:00 UTC +3.

    Thanks.

  • User Avatar
    0
    pankajmathur created

    Hi,

    I am also getting the same error. What's the resolution. I already have checked my gmail credentials and all fine....

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @pankajmathur,

    Which version of ABP do you use in your project ?

    Thanks.