import { settings } from '../../../settings'; settings.addGroup('Email', function() { this.section('Style', function() { this.add('email_plain_text_only', false, { type: 'boolean', }); this.add('email_style', `html, body, .body { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Helvetica Neue','Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Meiryo UI',Arial,sans-serif; } body, .body { width: 100%; height: 100%; } a { color: #1D74F5; font-weight: bold; text-decoration: none; line-height: 1.8; padding-left: 2px; padding-right: 2px; } p { margin: 1rem 0; } .btn { text-decoration: none; color: #FFF; background-color: #1D74F5; padding: 12px 18px; font-weight: 500; font-size: 14px; margin-top: 8px; text-align: center; cursor: pointer; display: inline-block; border-radius: 2px; } ol, ul, div { list-style-position: inside; padding: 16px 0 ; } li { padding: 8px 0; font-weight: 600; } .wrap { width: 100%; clear: both; } h1,h2,h3,h4,h5,h6 { line-height: 1.1; margin:0 0 16px 0; color: #000; } h1 { font-weight: 100; font-size: 44px;} h2 { font-weight: 600; font-size: 30px; color: #2F343D;} h3 { font-weight: 100; font-size: 27px;} h4 { font-weight: 500; font-size: 14px; color: #2F343D;} h5 { font-weight: 500; font-size: 13px; line-height: 1.6; color: #2F343D} h6 { font-weight: 500; font-size: 10px; color: #6c727A; line-height: 1.7;} .container { display: block; max-width: 640px; margin: 0 auto; /* makes it centered */ clear: both; border-radius: 2px; } .content { padding: 36px; } .header-content { padding-top: 36px; padding-bottom: 36px; padding-left: 36px; padding-right: 36px; max-width: 640px; margin: 0 auto; display: block; } .lead { margin-bottom: 32px; color: #2f343d; line-height: 22px; font-size: 14px; } .advice { height: 20px; color: #9EA2A8; font-size: 12px; font-weight: normal; margin-bottom: 0; } .social { font-size: 12px } `, { type: 'code', code: 'css', multiline: true, i18nLabel: 'email_style_label', i18nDescription: 'email_style_description', enableQuery: { _id: 'email_plain_text_only', value: false, }, }); }); this.section('Subject', function() { this.add('Offline_DM_Email', '[[Site_Name]] You have been direct messaged by [User]', { type: 'code', code: 'text', multiline: true, i18nLabel: 'Offline_DM_Email', i18nDescription: 'Offline_Email_Subject_Description', }); this.add('Offline_Mention_Email', '[[Site_Name]] You have been mentioned by [User] in #[Room]', { type: 'code', code: 'text', multiline: true, i18nLabel: 'Offline_Mention_Email', i18nDescription: 'Offline_Email_Subject_Description', }); this.add('Offline_Mention_All_Email', '[User] has posted a message in #[Room]', { type: 'code', code: 'text', multiline: true, i18nLabel: 'Offline_Mention_All_Email', i18nDescription: 'Offline_Email_Subject_Description', }); }); this.section('Header_and_Footer', function() { this.add('Email_Header', 'Rocket.Chat Cloud
Rocket.chat
', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Header', }); this.add('Email_Footer', '
© Rocket.Chat Technologies Corp.
Made with ❤️ in 🇧🇷 🇨🇦 🇩🇪 🇮🇳 🇬🇧 🇺🇸
', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Footer', }); this.add('Email_Footer_Direct_Reply', '

{Direct_Reply_Advice}

', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Footer_Direct_Reply', }); }); this.section('Direct_Reply', function() { this.add('Direct_Reply_Enable', false, { type: 'boolean', env: true, i18nLabel: 'Direct_Reply_Enable', }); this.add('Direct_Reply_Debug', false, { type: 'boolean', env: true, i18nLabel: 'Direct_Reply_Debug', i18nDescription: 'Direct_Reply_Debug_Description', }); this.add('Direct_Reply_Protocol', 'IMAP', { type: 'select', values: [ { key: 'IMAP', i18nLabel: 'IMAP', }, { key: 'POP', i18nLabel: 'POP', }, ], env: true, i18nLabel: 'Protocol', }); this.add('Direct_Reply_Host', '', { type: 'string', env: true, i18nLabel: 'Host', }); this.add('Direct_Reply_Port', '', { type: 'string', env: true, i18nLabel: 'Port', }); this.add('Direct_Reply_IgnoreTLS', false, { type: 'boolean', env: true, i18nLabel: 'IgnoreTLS', }); this.add('Direct_Reply_Frequency', 5, { type: 'int', env: true, i18nLabel: 'Direct_Reply_Frequency', enableQuery: { _id: 'Direct_Reply_Protocol', value: 'POP', }, }); this.add('Direct_Reply_Delete', true, { type: 'boolean', env: true, i18nLabel: 'Direct_Reply_Delete', enableQuery: { _id: 'Direct_Reply_Protocol', value: 'IMAP', }, }); this.add('Direct_Reply_Separator', '+', { type: 'select', values: [ { key: '!', i18nLabel: '!', }, { key: '#', i18nLabel: '#', }, { key: '$', i18nLabel: '$', }, { key: '%', i18nLabel: '%', }, { key: '&', i18nLabel: '&', }, { key: '\'', i18nLabel: '\'', }, { key: '*', i18nLabel: '*', }, { key: '+', i18nLabel: '+', }, { key: '-', i18nLabel: '-', }, { key: '/', i18nLabel: '/', }, { key: '=', i18nLabel: '=', }, { key: '?', i18nLabel: '?', }, { key: '^', i18nLabel: '^', }, { key: '_', i18nLabel: '_', }, { key: '`', i18nLabel: '`', }, { key: '{', i18nLabel: '{', }, { key: '|', i18nLabel: '|', }, { key: '}', i18nLabel: '}', }, { key: '~', i18nLabel: '~', }, ], env: true, i18nLabel: 'Direct_Reply_Separator', }); this.add('Direct_Reply_Username', '', { type: 'string', env: true, i18nLabel: 'Username', placeholder: 'email@domain', secret: true, }); this.add('Direct_Reply_ReplyTo', '', { type: 'string', env: true, i18nLabel: 'ReplyTo', placeholder: 'email@domain', }); return this.add('Direct_Reply_Password', '', { type: 'password', env: true, i18nLabel: 'Password', secret: true, }); }); this.section('SMTP', function() { this.add('SMTP_Protocol', 'smtp', { type: 'select', values: [ { key: 'smtp', i18nLabel: 'smtp', }, { key: 'smtps', i18nLabel: 'smtps', }, ], env: true, i18nLabel: 'Protocol', }); this.add('SMTP_Host', '', { type: 'string', env: true, i18nLabel: 'Host', }); this.add('SMTP_Port', '', { type: 'string', env: true, i18nLabel: 'Port', }); this.add('SMTP_IgnoreTLS', true, { type: 'boolean', env: true, i18nLabel: 'IgnoreTLS', enableQuery: { _id: 'SMTP_Protocol', value: 'smtp', }, }); this.add('SMTP_Pool', true, { type: 'boolean', env: true, i18nLabel: 'Pool', }); this.add('SMTP_Username', '', { type: 'string', env: true, i18nLabel: 'Username', autocomplete: false, secret: true, }); this.add('SMTP_Password', '', { type: 'password', env: true, i18nLabel: 'Password', autocomplete: false, secret: true, }); this.add('From_Email', '', { type: 'string', placeholder: 'email@domain', }); return this.add('SMTP_Test_Button', 'sendSMTPTestEmail', { type: 'action', actionText: 'Send_a_test_mail_to_my_user', }); }); this.section('Registration', function() { this.add('Accounts_Enrollment_Email_Subject', '{Welcome_to Site_name}', { type: 'string', i18nLabel: 'Subject', }); this.add('Accounts_Enrollment_Email', '

{Welcome_to Site_Name}

{Visit_Site_Url_and_try_the_best_open_source_chat_solution_available_today}

{Login}', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Body', }); }); this.section('Registration_via_Admin', function() { this.add('Accounts_UserAddedEmail_Subject', '{Welcome_to Site_Name}', { type: 'string', i18nLabel: 'Subject', }); this.add('Accounts_UserAddedEmail_Email', '

{Welcome_to Site_Name}

{Visit_Site_Url_and_try_the_best_open_source_chat_solution_available_today}

{Login}', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Body', i18nDescription: 'Accounts_UserAddedEmail_Description', }); }); this.section('Verification', function() { this.add('Verification_Email_Subject', '{Verification_Email_Subject}', { type: 'string', i18nLabel: 'Subject', }); this.add('Verification_Email', '

{Hi_username}

{Verification_email_body}

{Verify_your_email}', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Body', i18nDescription: 'Verification_Description', }); }); this.section('Offline_Message', function() { this.add('Offline_Message_Use_DeepLink', true, { type: 'boolean', }); }); this.section('Invitation', function() { this.add('Invitation_Subject', '{Invitation_Subject_Default}', { type: 'string', i18nLabel: 'Subject', }); this.add('Invitation_Email', '

{Welcome_to Site_Name}

{Visit_Site_Url_and_try_the_best_open_source_chat_solution_available_today}

{Join_Chat}', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Body', i18nDescription: 'Invitation_Email_Description', }); }); this.section('Forgot_password_section', function() { this.add('Forgot_Password_Email_Subject', '{Forgot_Password_Email_Subject}', { type: 'string', i18nLabel: 'Subject', }); this.add('Forgot_Password_Email', '

{Forgot_password}

{Lets_get_you_new_one}

{Reset}

{If_you_didnt_ask_for_reset_ignore_this_email}

', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Body', i18nDescription: 'Forgot_Password_Description', }); }); this.section('Email_changed_section', function() { this.add('Email_Changed_Email_Subject', '{Email_Changed_Email_Subject}', { type: 'string', i18nLabel: 'Subject', }); this.add('Email_Changed_Email', '

{Hi},

{Your_email_address_has_changed}

{Your_new_email_is_email}

{Login}', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Body', i18nDescription: 'Email_Changed_Description', }); }); this.section('Password_changed_section', function() { this.add('Password_Changed_Email_Subject', '{Password_Changed_Email_Subject}', { type: 'string', i18nLabel: 'Subject', }); this.add('Password_Changed_Email', '

{Hi},

{Your_password_was_changed_by_an_admin}

{Your_temporary_password_is_password}

{Login}', { type: 'code', code: 'text/html', multiline: true, i18nLabel: 'Body', i18nDescription: 'Password_Changed_Description', }); }); this.section('Privacy', function() { this.add('Email_notification_show_message', true, { type: 'boolean', public: true, }); }); });