File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed
Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 369369if (!defined ('USE_MANUAL_TEXT_PART ' )) {
370370 define ('USE_MANUAL_TEXT_PART ' , 0 );
371371}
372+ if (!defined ('USE_MESSAGE_PREVIEW ' )) {
373+ define ('USE_MESSAGE_PREVIEW ' ,false );
374+ }
372375if (!defined ('ALLOW_NON_LIST_SUBSCRIBE ' )) {
373376 define ('ALLOW_NON_LIST_SUBSCRIBE ' , 0 );
374377}
Original file line number Diff line number Diff line change @@ -708,14 +708,16 @@ function submitform() {
708708 <input type="text" name="replyto"
709709 value=" ' .htmlspecialchars ($ messagedata ['replyto ' ]).'" size="60" /></div> ' ;
710710 }
711+ if (USE_MESSAGE_PREVIEW ) {
711712 $ maincontent .= '
712- <div class="field" id="message-text-preview">
713- <label for="messagepreview"> ' .s ('Message preview ' ).Help ('generatetextpreview ' ).'</label>
714- <input type="text" id="messagepreview" name="messagepreview" size="60" readonly />
715- <div id="message-text-preview-button"> ' .
716- PageLinkAjax ('send&tab=Content&id= ' .$ id .'&action=generatetextpreview ' , $ GLOBALS ['I18N ' ]->get ('Generate ' )).'</a>
717- </div>
718- </div> ' ;
713+ <div class="field" id="message-text-preview">
714+ <label for="messagepreview"> ' .s ('Message preview ' ).Help ('generatetextpreview ' ).'</label>
715+ <input type="text" id="messagepreview" name="messagepreview" size="60" readonly />
716+ <div id="message-text-preview-button"> ' .
717+ PageLinkAjax ('send&tab=Content&id= ' .$ id .'&action=generatetextpreview ' , $ GLOBALS ['I18N ' ]->get ('Generate ' )).'
718+ </div>
719+ </div> ' ;
720+ }
719721
720722 $ maincontent .= sprintf ('
721723
Original file line number Diff line number Diff line change 672672// instead of trying to create it by parsing the HTML version into plain text
673673define ('USE_MANUAL_TEXT_PART ' , 0 );
674674
675+ // Message preview tries to show a small preview of how your campaign will look in email applications
676+ define ('USE_MESSAGE_PREVIEW ' ,true );
677+
675678// set this to 1 to allow adding attachments to the mails
676679// caution, message may become very large. it is generally more
677680// acceptable to send a URL for download to users
You can’t perform that action at this time.
0 commit comments