@@ -844,6 +844,7 @@ public function getTemplate($templateid)
844844 * @param boolean $importimages Whether to do a one-off import and URL conversion
845845 * of images referenced in the template
846846 * @param boolean $convertformat Set to true to automatically identify and convert from other template formats
847+ * @param boolean $inline Set to true to automatically convert style sheets into inline styles when sending
847848 * @return integer|boolean Returns the ID of the new template or false on failure
848849 * @access public
849850 */
@@ -855,7 +856,8 @@ public function addTemplate(
855856 $ description = '' ,
856857 $ generateplain = false ,
857858 $ importimages = false ,
858- $ convertformat = false
859+ $ convertformat = false ,
860+ $ inline = false
859861 ) {
860862 $ res = $ this ->post (
861863 'addtemplate ' ,
@@ -867,7 +869,8 @@ public function addTemplate(
867869 'description ' => $ description ,
868870 'generateplain ' => (boolean )$ generateplain ,
869871 'importimages ' => (boolean )$ importimages ,
870- 'convertformat ' => (boolean )$ convertformat
872+ 'convertformat ' => (boolean )$ convertformat ,
873+ 'inline ' => (boolean )$ inline
871874 ]
872875 );
873876 //Return the new template ID on success, or false if it failed
@@ -888,6 +891,7 @@ public function addTemplate(
888891 * @param boolean $importimages Whether to do a one-off import and URL conversion
889892 * of images referenced in the template
890893 * @param boolean $convertformat Set to true to automatically identify and convert from other template formats
894+ * @param boolean $inline Set to true to automatically convert style sheets into inline styles when sending
891895 * @return boolean
892896 * @access public
893897 */
@@ -900,7 +904,8 @@ public function updateTemplate(
900904 $ description = '' ,
901905 $ generateplain = false ,
902906 $ importimages = false ,
903- $ convertformat = false
907+ $ convertformat = false ,
908+ $ inline = false
904909 ) {
905910 //Use a post request to cope with large content
906911 $ res = $ this ->post (
@@ -914,7 +919,8 @@ public function updateTemplate(
914919 'description ' => $ description ,
915920 'generateplain ' => $ generateplain ,
916921 'importimages ' => (boolean )$ importimages ,
917- 'convertformat ' => (boolean )$ convertformat
922+ 'convertformat ' => (boolean )$ convertformat ,
923+ 'inline ' => (boolean )$ inline
918924 ]
919925 );
920926 //Return true on success, or false if it failed
@@ -932,6 +938,7 @@ public function updateTemplate(
932938 * @param boolean $importimages Whether to do a one-off import and URL conversion
933939 * of images referenced in the template
934940 * @param boolean $convertformat Set to true to automatically identify and convert from other template formats
941+ * @param boolean $inline Set to true to automatically convert style sheets into inline styles when sending
935942 * @return integer|boolean Returns the ID of the new template or false on failure
936943 * @throws ParameterException
937944 * @access public
@@ -942,7 +949,8 @@ public function addTemplateFromURL(
942949 $ subject ,
943950 $ description = '' ,
944951 $ importimages = false ,
945- $ convertformat = false
952+ $ convertformat = false ,
953+ $ inline = false
946954 ) {
947955 if (!filter_var ($ url , FILTER_VALIDATE_URL , FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_SCHEME_REQUIRED )) {
948956 throw new ParameterException ('Invalid template URL ' );
@@ -955,7 +963,8 @@ public function addTemplateFromURL(
955963 'subject ' => $ subject ,
956964 'description ' => $ description ,
957965 'importimages ' => (boolean )$ importimages ,
958- 'convertformat ' => (boolean )$ convertformat
966+ 'convertformat ' => (boolean )$ convertformat ,
967+ 'inline ' => (boolean )$ inline
959968 ]
960969 );
961970 //Return the new template ID on success, or false if it failed
@@ -992,6 +1001,7 @@ public function deleteTemplate($templateid)
9921001 * or an ISO-format UTC date ('yyyy-mm-dd hh:mm:ss')
9931002 * @param boolean $continuous Is this a continuous mailshot? (never completes, existing subs are ignored,
9941003 * new subscriptions are sent a message immediately, ideal for 'welcome' messages)
1004+ * @param boolean $inline Set to true to automatically convert style sheets into inline styles when sending
9951005 * @return integer|boolean ID of the new mailshot id, or false on failure
9961006 * @access public
9971007 */
@@ -1005,7 +1015,8 @@ public function sendMailshot(
10051015 $ fromname = '' ,
10061016 $ replyto = '' ,
10071017 $ when = 'now ' ,
1008- $ continuous = false
1018+ $ continuous = false ,
1019+ $ inline = false
10091020 ) {
10101021 $ res = $ this ->get (
10111022 'sendmailshot ' ,
@@ -1019,7 +1030,8 @@ public function sendMailshot(
10191030 'fromname ' => $ fromname ,
10201031 'replyto ' => $ replyto ,
10211032 'when ' => $ when ,
1022- 'continuous ' => (boolean )$ continuous
1033+ 'continuous ' => (boolean )$ continuous ,
1034+ 'inline ' => (boolean )$ inline
10231035 ]
10241036 );
10251037 //Return the new mailshot ID on success, or false if it failed
@@ -1138,8 +1150,7 @@ protected function get(
11381150 $ command ,
11391151 $ params = [],
11401152 $ returnraw = false
1141- )
1142- {
1153+ ) {
11431154 return $ this ->request ('get ' , $ command , $ params , null , $ returnraw );
11441155 }
11451156
0 commit comments