Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > sending e-mails automatically View modes: 
User avatar
Member
Member
sarattk05-gmail - 9/3/2009 6:37:53 AM
   
sending e-mails automatically
Hi;

If there any possibility sending e-mails automatically with in a scheduled time peroid.
Let me know please the idia about sending

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/3/2009 7:38:50 AM
   
RE:sending e-mails automatically
Hi,

You can use newsletter module where you will create a dynamic newsletter issue which will be sent in the specified time.

Or, you can also use the scheduler and develop custom scheduled task and in the code you will use the API for sending e-mails. Methods for e-mail sending can be found in our API Manual.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
sarattk05-gmail - 9/4/2009 4:57:55 AM
   
RE:sending e-mails automatically
Hi

Thanks for giving idea about my issue i have tryed newslatermodule but it not support my free licence .

I have tryed scheduled task created like a class library(DLL):

using System;
using System.Collections.Generic;

using System.Text;


namespace CMS.autoemailer
{
public class autoemailer
{
public autoemailer()
{
try
{

CMS.EmailEngine.EmailMessage em = new CMS.EmailEngine.EmailMessage();
em.EmailFormat = CMS.EmailEngine.EmailFormatEnum.Html;
em.From = "Admin@Jangee.com";
em.Recipients = "saravanan@anubavam.com";
em.Subject = "Subject";
em.Body += "<div style=\"width:700px;height:400px;margin-left:5px;background:Navy; padding:5px 5px 5px 5px; border:solid 1px red; color:White;\"> comformation <b>";



CMS.EmailEngine.EmailSender.SendEmail(em);


}
catch
{

}
}
}
}

purpose of sending e-mails automatically with in a scheduled time peroid and i conficured in Scheduled tasks allso in my Scheduled tasks Last result Showing Like Error message " [SchedulingExecutor.ExecuteTask]: Cannot load provider class 'autoemailer' from assembly 'CMS.autoemailer'"
Please Helip me how can i solve Like this problem.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/10/2009 5:25:20 AM
   
RE:sending e-mails automatically
Hi,

Could you please try to follow the instructions how to create scheduled task at first, to see if the e-mail will be send and then try to create class library from it?

Best Regards,
Juraj Ondrus

User avatar
Member
Member
sarattk05-gmail - 9/10/2009 11:05:41 AM
   
RE:sending e-mails automatically
Thanks Juraj Ondrus i have Created scheduled task sucessfully affer i coficured my own class library It will working fine. Thnks for your Great Help.

Thanks&Regards
Saravanan