public EmailManager(EmailConfig config)
 {
     _emailer = new SMTPEmail.SMTPEMailS(null, config.Address, config.UserName, config.Password, config.Port, config.UseSSL);
     if (String.IsNullOrEmpty(config.xmlFolder))
         _xmlFolder = Directory.GetCurrentDirectory();
     _emailer.ThrowErrorOnSendingEmail = false;
 }
 public EmailManager(EmailConfig config)
 {
     _emailer = new SMTPEmail.SMTPEMailS(null, config.Address, config.UserName, config.Password, config.Port, config.UseSSL);
     if (String.IsNullOrEmpty(config.xmlFolder))
         _xmlFolder = @"C:\Users\S\Documents\visual studio 2010\Projects\MusubiMailer\EmailLibrary\EmailTemplates";
     //Directory.GetCurrentDirectory();
     _emailer.ThrowErrorOnSendingEmail = true;
 }
 private EmailConfig getGoogleEmailConfig(string user, string pass)
 {
     EmailConfig config = new EmailConfig();
     config.UserName = user;
     config.Password = pass;
     config.UseSSL = true;
     config.Port = 587;
     config.Address = "smtp.gmail.com";
     return config;
 }