@@ -844,6 +844,7 @@ public function getTemplate($templateid)
844
844
* @param boolean $importimages Whether to do a one-off import and URL conversion
845
845
* of images referenced in the template
846
846
* @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
847
848
* @return integer|boolean Returns the ID of the new template or false on failure
848
849
* @access public
849
850
*/
@@ -855,7 +856,8 @@ public function addTemplate(
855
856
$ description = '' ,
856
857
$ generateplain = false ,
857
858
$ importimages = false ,
858
- $ convertformat = false
859
+ $ convertformat = false ,
860
+ $ inline = false
859
861
) {
860
862
$ res = $ this ->post (
861
863
'addtemplate ' ,
@@ -867,7 +869,8 @@ public function addTemplate(
867
869
'description ' => $ description ,
868
870
'generateplain ' => (boolean )$ generateplain ,
869
871
'importimages ' => (boolean )$ importimages ,
870
- 'convertformat ' => (boolean )$ convertformat
872
+ 'convertformat ' => (boolean )$ convertformat ,
873
+ 'inline ' => (boolean )$ inline
871
874
]
872
875
);
873
876
//Return the new template ID on success, or false if it failed
@@ -888,6 +891,7 @@ public function addTemplate(
888
891
* @param boolean $importimages Whether to do a one-off import and URL conversion
889
892
* of images referenced in the template
890
893
* @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
891
895
* @return boolean
892
896
* @access public
893
897
*/
@@ -900,7 +904,8 @@ public function updateTemplate(
900
904
$ description = '' ,
901
905
$ generateplain = false ,
902
906
$ importimages = false ,
903
- $ convertformat = false
907
+ $ convertformat = false ,
908
+ $ inline = false
904
909
) {
905
910
//Use a post request to cope with large content
906
911
$ res = $ this ->post (
@@ -914,7 +919,8 @@ public function updateTemplate(
914
919
'description ' => $ description ,
915
920
'generateplain ' => $ generateplain ,
916
921
'importimages ' => (boolean )$ importimages ,
917
- 'convertformat ' => (boolean )$ convertformat
922
+ 'convertformat ' => (boolean )$ convertformat ,
923
+ 'inline ' => (boolean )$ inline
918
924
]
919
925
);
920
926
//Return true on success, or false if it failed
@@ -932,6 +938,7 @@ public function updateTemplate(
932
938
* @param boolean $importimages Whether to do a one-off import and URL conversion
933
939
* of images referenced in the template
934
940
* @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
935
942
* @return integer|boolean Returns the ID of the new template or false on failure
936
943
* @throws ParameterException
937
944
* @access public
@@ -942,7 +949,8 @@ public function addTemplateFromURL(
942
949
$ subject ,
943
950
$ description = '' ,
944
951
$ importimages = false ,
945
- $ convertformat = false
952
+ $ convertformat = false ,
953
+ $ inline = false
946
954
) {
947
955
if (!filter_var ($ url , FILTER_VALIDATE_URL , FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_SCHEME_REQUIRED )) {
948
956
throw new ParameterException ('Invalid template URL ' );
@@ -955,7 +963,8 @@ public function addTemplateFromURL(
955
963
'subject ' => $ subject ,
956
964
'description ' => $ description ,
957
965
'importimages ' => (boolean )$ importimages ,
958
- 'convertformat ' => (boolean )$ convertformat
966
+ 'convertformat ' => (boolean )$ convertformat ,
967
+ 'inline ' => (boolean )$ inline
959
968
]
960
969
);
961
970
//Return the new template ID on success, or false if it failed
@@ -992,6 +1001,7 @@ public function deleteTemplate($templateid)
992
1001
* or an ISO-format UTC date ('yyyy-mm-dd hh:mm:ss')
993
1002
* @param boolean $continuous Is this a continuous mailshot? (never completes, existing subs are ignored,
994
1003
* 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
995
1005
* @return integer|boolean ID of the new mailshot id, or false on failure
996
1006
* @access public
997
1007
*/
@@ -1005,7 +1015,8 @@ public function sendMailshot(
1005
1015
$ fromname = '' ,
1006
1016
$ replyto = '' ,
1007
1017
$ when = 'now ' ,
1008
- $ continuous = false
1018
+ $ continuous = false ,
1019
+ $ inline = false
1009
1020
) {
1010
1021
$ res = $ this ->get (
1011
1022
'sendmailshot ' ,
@@ -1019,7 +1030,8 @@ public function sendMailshot(
1019
1030
'fromname ' => $ fromname ,
1020
1031
'replyto ' => $ replyto ,
1021
1032
'when ' => $ when ,
1022
- 'continuous ' => (boolean )$ continuous
1033
+ 'continuous ' => (boolean )$ continuous ,
1034
+ 'inline ' => (boolean )$ inline
1023
1035
]
1024
1036
);
1025
1037
//Return the new mailshot ID on success, or false if it failed
@@ -1138,8 +1150,7 @@ protected function get(
1138
1150
$ command ,
1139
1151
$ params = [],
1140
1152
$ returnraw = false
1141
- )
1142
- {
1153
+ ) {
1143
1154
return $ this ->request ('get ' , $ command , $ params , null , $ returnraw );
1144
1155
}
1145
1156
0 commit comments