You can email me at <a href="mailto:[email protected]">[email protected]</a> so that we can share the skype id and take it up from there
Regards Anwar
Hello
My name is Anwar and i have done 2 projects using asp.net zero please tell me the nature of your project , and we can discuss the remunerations later.
Regards Anwar
Hello
Found that email cannot be send in debug mode so i went to CoreModule and commented the line
IocManager.Register<IEmailSender, NullEmailSender>(DependencyLifeStyle.Transient);
compiled and ran again,
it throws an internal server error says 500
<a class="postlink" href="http://localhost:6240/api/services/app/hostSettings/SendTestEmail">http://localhost:6240/api/services/app/ ... dTestEmail</a>
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.AbpDynamicApiControllerInterceptor
1.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.
i did set these to gmail
host : smtp.gmail.com
domain : gmail.com
sender : <a href="mailto:[email protected]">[email protected]</a>
to : <a href="mailto:[email protected]">[email protected]</a>
also provided the password
but when i click test email it says email sent successfully but i receive no email
thanks
i tried domain name with gmail.com also but it does not work, with proper gmail user and password given
i logged in as admin but could not see the email tab
ok i have created a view in the frontend called feedback and in the controller folder a feedback controller from the view feedback.cshtml i want to accept data and when i submit the form i want an action in the feedback controller to be called..
Thanks Anwar
this is the error i get
HTTP Error 400.0 - Empty or invalid anti forgery header token. shown below is cshtml and controller file
@using Samit.CmsProTest.Web.Navigation
@{ ViewBag.CurrentPageName = PageNames.Frontend.FeedBack; }
<div class="row"> <div class="col-md-12 page-404"> <div class="number font-red"> @L("FeedBack") </div> <div class="details" style="width:40%"> <form class="feedback-form" action="@Url.Action("FeedBack")" method="post">
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">@L("Name")</label>
<input class="form-control placeholder-no-fix" type="text" placeholder="@L("Name")" name="Name" required value="@Model.Name" maxlength="@Samit.CmsProTest.Authorization.Users.User.MaxNameLength" />
</div>
<div class="form-group">
<label class="control-label visible-ie8 visible-ie9">@L("EmailAddress")</label>
<input class="form-control placeholder-no-fix" type="email" placeholder="@L("EmailAddress")" name="EmailAddress" required value="@Model.EmailAddress" maxlength="@Samit.CmsProTest.Authorization.Users.User.MaxEmailAddressLength" />
</div>
<div class="form-group ">
<label class="control-label visible-ie8 visible-ie9">@L("FeedBack")</label>
<textarea class="form-control" rows="5" placeholder="@L("FeedBack")" name="Suggestions" required value="@Model.Suggestions"></textarea>
</div>
<div class="form-actions">
<a href="@Url.Action("Index", "FeedBack")"> </a>
<button type="submit" class="btn btn-success uppercase pull-right">@L("Submit")</button>
</div>
</form>
</div>
</div>
</div>
FeedBackController
using Abp.Domain.Uow; using Samit.CmsProTest.School.Courses; using Samit.CmsProTest.School.Courses.Dto; using Samit.CmsProTest.Web.Models; using Samit.CmsProTest.Web.Models.FeedBack; using System.Web.Mvc;
namespace Samit.CmsProTest.Web.Controllers { public class FeedBackController : CmsProTestControllerBase { private readonly ICourseDtlAppService _courseDtlAppService;
public FeedBackController(ICourseDtlAppService courseDtlAppService)
{
_courseDtlAppService = courseDtlAppService;
}
public ActionResult Index(FeedBackViewModel feedbackViewModel)
{
var model = new FeedBackViewModel();
return View(model);
}
[HttpPost]
[UnitOfWork]
public ActionResult FeedBack(FeedBackViewModel feedBackModel)
{
var model = new FeedBackViewModel();
return View(model);
}
}
}