Esempio n. 1
0
        //user
        public static void sendWelcomeEmailUser(this User user)
        {
            var messaging = new MessagingService();

            var welcomeEmail = new WelcomeEmailUser(user.email, user.name);
            messaging.enqueueMessage(welcomeEmail);
        }
Esempio n. 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);
        }
Esempio n. 3
0
        public static void sendWelcomeEmail(this Feeder feeder)
        {
            var messaging = new MessagingService();

            var welcomeEmail = new WelcomeEmail(feeder.email, feeder.name);
            messaging.enqueueMessage(welcomeEmail);
        }
Esempio n. 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);
        }
Esempio n. 5
0
        public static void sendWelcomeEmail(this Feeder feeder)
        {
            var messaging = new MessagingService();

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

            messaging.enqueueMessage(welcomeEmail);
        }
Esempio n. 6
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);
        }
Esempio n. 7
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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
 }