Skip to content

Instantly share code, notes, and snippets.

@webkod3r
Last active January 19, 2021 22:07
Show Gist options
  • Save webkod3r/f53ad0e61a7f9da48cf9f1dde40998fb to your computer and use it in GitHub Desktop.
Save webkod3r/f53ad0e61a7f9da48cf9f1dde40998fb to your computer and use it in GitHub Desktop.
SM-7 email notification for survey
INSERT INTO `notification_emails`
(`id`, `name`, `email`, `created`, `modified`)
VALUES
(
'dcf48b70-56b7-11eb-a24a-834c6a46c186',
'Training Attended Survey',
'no-reply-user@zumba.com',
'2021-01-14 22:28:37',
'2021-01-14 22:28:37'
);
--
-- Insert notification group
INSERT INTO `notification_groups`
(`id`, `name`, `is_active`, `created`, `modified`)
VALUES
(
'c38f4610-56b8-11eb-9de6-693d3370d93d',
'Training Attended Survey',
'1',
'2021-01-14 22:35:02',
'2021-01-14 22:35:02'
);
--
--
INSERT INTO `notification_events`
(`id`, `name`, `slug`, `created`, `modified`)
VALUES
(
'f3393310-56ba-11eb-b5aa-b9778580446b',
'Training Attended Survey Monkey',
'training-attended-survey-monkey',
'2021-01-14 22:50:38',
'2021-01-14 22:50:38'
);
INSERT INTO `notifications`
(`id`, `message`, `is_active`, `created`, `modified`, `notification_email_id`, `notification_group_id`, `notification_event_id`, `subject`, `locale_id`)
VALUES
('59e2b710-56bd-11eb-8fd3-ff769c9f978d', '<html>\n<body style=\"margin:0; padding: 0;\">\n<div align=\"center\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"100%\"\n style=\"font-family: Arial,Helvetica,sans-serif; max-width: 700px;\">\n <tr bgcolor=\"#00BF6F\">\n <td colspan=\"5\" height=\"40\">&nbsp;</td>\n </tr>\n <tr bgcolor=\"#00BF6F\">\n <td width=\"20\">&nbsp;</td>\n <td width=\"20\">&nbsp;</td>\n <td align=\"center\" style=\"font-size: 29px; color:#FFF; font-weight: normal; letter-spacing: 1px; line-height: 1;\n text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2); font-family: Arial,Helvetica,sans-serif;\">\n We would link to know your oppinion about your last training\n </td>\n <td width=\"20\">&nbsp;</td>\n <td width=\"20\">&nbsp;</td>\n </tr>\n <tr bgcolor=\"#00BF6F\">\n <td colspan=\"5\" height=\"40\">&nbsp;</td>\n </tr>\n <tr>\n <td height=\"10\" colspan=\"5\">&nbsp;</td>\n </tr>\n <tr>\n <td>&nbsp;</td>\n <td colspan=\"3\" align=\"left\" valign=\"top\" style=\"color:#666666; font-size: 13px;\">\n <p>Hi [FirstName], <br/><br/>\n We\'re conducting a survey and your input would be appreciated. Click the button below to start the survey. Thank you for your participation!</p>\n </td>\n <td>&nbsp;</td>\n </tr>\n <tr>\n <td colspan=\"5\" height=\"30\">&nbsp;</td>\n </tr>\n <tr>\n <td>&nbsp;</td>\n <td colspan=\"3\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"\n style=\"background:#00BF6F; border-radius: 4px; border: 1px solid #BBBBBB; color:#FFFFFF; font-size:14px; letter-spacing: 1px; text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.8); padding: 10px 18px;\">\n <tr>\n <td align=\"center\" valign=\"center\">\n <a href=\"[SurveyLink]\" target=\"_blank\"\n style=\"color:#FFFFFF; text-decoration:none;\">Begin Survey</a>\n </td>\n </tr>\n </table>\n </td>\n <td>&nbsp;</td>\n </tr>\n <tr>\n <td colspan=\"5\" height=\"30\">&nbsp;</td>\n </tr>\n \n <tr valign=\"top\" style=\"color: #666666;font-size: 10px;\">\n <td>&nbsp;</td>\n <td valign=\"top\" align=\"center\" colspan=\"3\">\n <p>Please do not forward this email as its survey link is unique to you. <br><a href=\"[PrivacyLink]\" target=\"_blank\" style=\"color: #333333; text-decoration: underline;\">Privacy</a> | <a href=\"[OptOutLink]\" target=\"_blank\" style=\"color: #333333; text-decoration: underline;\">Unsubscribe</a></p>\n </td>\n <td>&nbsp;</td>\n </tr>\n <tr>\n <td height=\"20\" colspan=\"5\">&nbsp;</td>\n </tr>\n <tr>\n <td height=\"20\" colspan=\"5\">&nbsp;</td>\n </tr>\n </table>\n</div>\n</body>\n</html>', '1', '2021-01-14 23:07:30', '2021-01-14 23:07:30', 'dcf48b70-56b7-11eb-a24a-834c6a46c186', 'c38f4610-56b8-11eb-9de6-693d3370d93d', 'f3393310-56ba-11eb-b5aa-b9778580446b', 'We\'d like to know your oppinion', '5e5ca4e4-7be0-11e0-96f2-12313b030516');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment