ASPX templates
Version 5.x > ASPX templates > Send out email immediately right after end of order check out View modes: 
User avatar
Member
Member
wtzeng-micro-datanet - 9/7/2011 10:50:23 AM
   
Send out email immediately right after end of order check out
Hi

In the E-commerece -> store setting -> E-mails, where you can setup the email for sending order notification. how can you set the system to send it immedidately instead of 4 min delay. I know in the API SendEmail function there is a field you can set to send it right a way.

Thanks

Wei

User avatar
Member
Member
kentico_edwardh - 9/7/2011 11:59:41 AM
   
RE:Send out email immediately right after end of order check out
Hello Wei,

Without having the full source code, your only option would be to disable the e-mail queue option within Site Manager --> Settings --> <select your site> --> E-mails --> Enable e-mail queue.

By default, the source code is set to not send emails immediately unless the e-mail queue is disabled.

Best Regards,
Edward Hillard

User avatar
Member
Member
wtzeng-micro-datanet - 9/7/2011 1:08:51 PM
   
RE:Send out email immediately right after end of order check out
thanks.
will it be possible, if you guy might consider set it to an option for the next release?

User avatar
Member
Member
wtzeng-micro-datanet - 9/7/2011 1:13:32 PM
   
RE:Send out email immediately right after end of order check out
once the e-mail queue gets disable, let's say some where in the form I call the sendemail function and set the immediate send to false. what happen to the email queue?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/7/2011 5:29:28 PM
   
RE:Send out email immediately right after end of order check out
Hello,

I will add this to our feature request list. What do you mean by "what happen to the email queue?"? Disabling the email queue has the same effect as using the SendEmail function with the parameter SendImmediately to true. The condition for sending the email immediately is the following one:

if (SettingsKeyProvider.GetBoolValue(siteName + ".CMSEmailsEnabled") &&
((sendImmediately) || (!SettingsKeyProvider.GetBoolValue(siteName + ".CMSEmailQueueEnabled"))))
{
....
} else
{
//add to queue
}

Best regards,
Boris Pocatko

User avatar
Member
Member
wtzeng-micro-datanet - 9/8/2011 9:03:30 AM
   
RE:Send out email immediately right after end of order check out
i am understand now, base on that code. If you disable email queue, and some where in the system you call the SendEmail function and set the send immediately to false. system still send out email right the way.