Beispiel #1
0
        internal static void WelcomePurchase(string language, Notification notification, string product)
        {
            notification = new WelcomePurchaseNotification(notification, product)
            {
                CreatePasswordLink = "https://sodapdf.com/"
            };
            var templateId = EmailTemplate.WelcomeFreeProductNotification;

            if (product == "Soda PDF Free")
            {
                notification = new WelcomeFreeProductNotification(notification, product);
            }

            switch (product)
            {
            case "Soda PDF Basic Plan": templateId = EmailTemplate.WelcomePurchaseBasicPlanNotification; break;

            case "Soda PDF Business Plan": templateId = EmailTemplate.WelcomePurchaseBusinessPlanNotification; break;

            case "Soda PDF Enterprise": templateId = EmailTemplate.WelcomePurchaseEnterpriseNotification; break;

            case "Soda PDF Home Edition": templateId = EmailTemplate.WelcomePurchaseHomeEditionNotification; break;

            case "Soda PDF Home Plan": templateId = EmailTemplate.WelcomePurchaseHomePlanNotification; break;

            case "Soda PDF Premium Edition": templateId = EmailTemplate.WelcomePurchasePremiumEditionNotification; break;

            case "Soda PDF Premium Plan": templateId = EmailTemplate.WelcomePurchasePremiumPlanNotification; break;

            case "Soda PDF Pro Edition": templateId = EmailTemplate.WelcomePurchaseProEditionNotification; break;
            }

#if PdfForge
            templateId = EmailTemplate.WelcomePurchaseNotification;
#endif

#if PdfSam
            templateId = EmailTemplate.WelcomePurchaseNotification;
#endif

            Send(language, templateId, notification);
        }
Beispiel #2
0
 internal static void WelcomeFreeProductCovermountNotification(string language, Notification notification, string product)
 {
     notification = new WelcomeFreeProductNotification(notification, product);
     Send(language, EmailTemplate.WelcomeFreeProductCovermountNotification, notification);
 }