email marketing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 年 前
When you use the built in email marketing functions in 1.5, how are they sent?

Are they sent in one massive batch to the email server or sent in batches etc?

The reason I ask is because most hosts have a limit to how many emails you can send per day/hour etc
14 年 前
Are they sent in one massive batch to the email server or sent in batches etc?

nopCommerce sends email to the email server in batches.

How are they sent?

For example, when you have created a campaign and clicked the "Send mass email" button, nopCommerce will create a individual message for each subscriber by replacing message tokens, that messages will be placed in the message queue. The message queue is handled by the SendQueuedMessagesTask task, which is invoking one time per 120 seconds(by default).
14 年 前
Can you change this SendQueuedMessagesTask to a longer value that 120?
14 年 前
You can change it by yourself by editing ScheduleTasks section of the web.config file. Also, be aware that application is started not permanently, so don't specify a too long time.
14 年 前
How many are sent each time that task is called?
14 年 前
It's depends on how much subscribers you have. You can inspect your message queue by going "System->Message Queue".
14 年 前
So say I have 10,000 subscribers. How many emails are sent each time the task runs every 120 seconds or whatever?

They aren't all sent at the same time are they? Surely that would slow the website right down for a short while?
14 年 前
Unless the code has changed in 1.5 (haven't got it to hand) im pretty sure it will send all items when the task executes:


            QueuedEmailCollection queuedEmails = MessageManager.GetAllQueuedEmails(10000, true, _maxTries);
14 年 前
Before the task scheduler will start a task, it will check if task already has been started.
14 年 前
So it just dumps the whole queue to the mail server?

Thats not very good for resources is it?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.