//user
        public static void sendWelcomeEmailUser(this User user)
        {
            var messaging = new MessagingService();

            var welcomeEmail = new WelcomeEmailUser(user.email, user.name);
            messaging.enqueueMessage(welcomeEmail);
        }
示例#2
0
        //buyer
        public static void sendReceiptEmail(this Payment pay)
        {
            var messaging      = new MessagingService();
            var forgotPwdEmail = new SendReceiptEmail(pay.paymentRef, (pay.amount / 100).ToString(), pay.currency, pay.shopperEmail, pay.accountHolderName);

            messaging.enqueueMessage(forgotPwdEmail);
        }
        public static void sendWelcomeEmail(this Feeder feeder)
        {
            var messaging = new MessagingService();

            var welcomeEmail = new WelcomeEmail(feeder.email, feeder.name);
            messaging.enqueueMessage(welcomeEmail);
        }
示例#4
0
        //user
        public static void sendWelcomeEmailUser(this User user)
        {
            var messaging = new MessagingService();

            var welcomeEmail = new WelcomeEmailUser(user.email, user.name);

            messaging.enqueueMessage(welcomeEmail);
        }
示例#5
0
        public static void sendWelcomeEmail(this Feeder feeder)
        {
            var messaging = new MessagingService();

            var welcomeEmail = new WelcomeEmail(feeder.email, feeder.name);

            messaging.enqueueMessage(welcomeEmail);
        }
        public static void sendPwdForgotUser(this User user)
        {
            var messaging = new MessagingService();
            var resetUrl = getUrl(Globals.Instance.settings["WebHost"],
                                    Globals.Instance.settings["UserPwdReset"], user.activationToken);

            var forgotPwdEmail = new ForgotPwdEmailUser(user.email, resetUrl, user.name);
            messaging.enqueueMessage(forgotPwdEmail);
        }
        //feeder
        public static void sendPwdForgot(this Feeder feeder)
        {
            var messaging = new MessagingService();
            var resetUrl = getUrl(Globals.Instance.settings["WebHost"],
                                    Globals.Instance.settings["AdminPwdReset"], feeder.activationToken);

            var forgotPwdEmail = new ForgotPwdEmail(feeder.email, resetUrl, feeder.name);
            messaging.enqueueMessage(forgotPwdEmail);
        }
示例#8
0
        //feeder
        public static void sendPwdForgot(this Feeder feeder)
        {
            var messaging = new MessagingService();
            var resetUrl  = getUrl(Globals.Instance.settings["WebHost"],
                                   Globals.Instance.settings["AdminPwdReset"], feeder.activationToken);

            var forgotPwdEmail = new ForgotPwdEmail(feeder.email, resetUrl, feeder.name);

            messaging.enqueueMessage(forgotPwdEmail);
        }
示例#9
0
        public static void sendPwdForgotUser(this User user)
        {
            var messaging = new MessagingService();
            var resetUrl  = getUrl(Globals.Instance.settings["WebHost"],
                                   Globals.Instance.settings["UserPwdReset"], user.activationToken);

            var forgotPwdEmail = new ForgotPwdEmailUser(user.email, resetUrl, user.name);

            messaging.enqueueMessage(forgotPwdEmail);
        }
示例#10
0
 //buyer
 public static void sendReceiptEmail(this Payment pay)
 {
     var messaging = new MessagingService();
     var forgotPwdEmail = new SendReceiptEmail(pay.paymentRef,(pay.amount/100).ToString(), pay.currency, pay.shopperEmail, pay.accountHolderName);
     messaging.enqueueMessage(forgotPwdEmail);
 }