Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8833843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:52:47+00:00 2026-06-14T08:52:47+00:00

I am beginner in the Nop Commerce Project 2.30. I try to send mails

  • 0

I am beginner in the Nop Commerce Project 2.30. I try to send mails to my Nop Commerce

Clients ( in the database ) in a specific intervel ( every 12 Hours ).

I create new method ( for create List of client list ) in the interface

Nop.Services.Customers.ICustomerService and implement this function, class is

Nop.Services.Customers.CustomerService. But a problem i can’t create this method

as static method. Please see image

enter image description here

Because CustomerService class is not contains the default

constructor. This is the only one constructor in the CustomerService Class.

Please see below.

 public CustomerService(ICacheManager cacheManager,
            IRepository<Customer> customerRepository,
            IRepository<CustomerRole> customerRoleRepository,
            IRepository<CustomerAttribute> customerAttributeRepository,
            IEncryptionService encryptionService, 
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            RewardPointsSettings rewardPointsSettings, 
            CustomerSettings customerSettings,
            IEventPublisher eventPublisher)
        {
            _cacheManager = cacheManager;
            _customerRepository = customerRepository;
            _customerRoleRepository = customerRoleRepository;
            _customerAttributeRepository = customerAttributeRepository;
            _encryptionService = encryptionService;
            _newsLetterSubscriptionService = newsLetterSubscriptionService;
            _rewardPointsSettings = rewardPointsSettings;
            _customerSettings = customerSettings;
            _eventPublisher = eventPublisher;
        }

I am clueless how to call this parameterized constructor in a external program. So i try

to make my function is static. Any Idea to create a static method in nop. Please help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:52:48+00:00Added an answer on June 14, 2026 at 8:52 am

    I use a WebClient function for this task. I create a Action in my MVC application for sending
    email. Call this action by webclient from my console application in specific intervel.

    Please see this link for more.

    http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/d60415d9-f1e7-4981-b600-be056f2f7bcd

    http://forums.asp.net/t/1858253.aspx/1?Call+a+MVC3+Controller+Action+in+a+Console+Application+

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Beginner question. My goal is to add documents to my CouchDB database on a
Yii beginner here. I am facing some problem with how to query the database
I am beginner in noCommerce 2.65. is it possible to implement a new control
Beginner's question in Xcode and obj-c. In my project I have a button with
Beginner Node question. I'm running a Node/Express app, and I want to send client-side
Beginner Haskell learner here. I've solved Project Euler Problem 1, sum of multiples of
(Lisp beginner) I need to create a 2D array, and initialize each cell in
Beginner iOS dev here. I have a problem in my array. Im making an
Beginner here trying to get a pipeline working in bash. If somebody can see
Beginner in Android development. My code crashes. I have made a simple Java method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.