801cbc6ba616bead5e86a2364cb41b5b.yaml.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/var/www/html/user/plugins/email/blueprints.yaml',
  5. 'modified' => 1591823799,
  6. 'data' => [
  7. 'name' => 'Email',
  8. 'slug' => 'email',
  9. 'type' => 'plugin',
  10. 'version' => '3.0.9',
  11. 'testing' => false,
  12. 'description' => 'Enables the emailing system for Grav',
  13. 'icon' => 'envelope',
  14. 'author' => [
  15. 'name' => 'Team Grav',
  16. 'email' => 'devs@getgrav.org',
  17. 'url' => 'http://getgrav.org'
  18. ],
  19. 'keywords' => 'plugin, email, sender',
  20. 'homepage' => 'https://github.com/getgrav/grav-plugin-email',
  21. 'bugs' => 'https://github.com/getgrav/grav-plugin-email/issues',
  22. 'license' => 'MIT',
  23. 'dependencies' => [
  24. 0 => [
  25. 'name' => 'grav',
  26. 'version' => '>=1.6.0'
  27. ],
  28. 1 => [
  29. 'name' => 'form',
  30. 'version' => '>=3.0.3'
  31. ]
  32. ],
  33. 'form' => [
  34. 'validation' => 'loose',
  35. 'fields' => [
  36. 'enabled' => [
  37. 'type' => 'hidden',
  38. 'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS',
  39. 'highlight' => 1,
  40. 'default' => 1,
  41. 'options' => [
  42. 1 => 'PLUGIN_ADMIN.ENABLED',
  43. 0 => 'PLUGIN_ADMIN.DISABLED'
  44. ],
  45. 'validate' => [
  46. 'type' => 'bool'
  47. ]
  48. ],
  49. 'mailer.engine' => [
  50. 'type' => 'select',
  51. 'label' => 'PLUGIN_EMAIL.MAIL_ENGINE',
  52. 'size' => 'medium',
  53. 'options' => [
  54. 'none' => 'PLUGIN_ADMIN.DISABLED',
  55. 'smtp' => 'SMTP',
  56. 'sendmail' => 'Sendmail'
  57. ]
  58. ],
  59. 'content_type' => [
  60. 'type' => 'select',
  61. 'label' => 'PLUGIN_EMAIL.CONTENT_TYPE',
  62. 'size' => 'medium',
  63. 'default' => 'text/html',
  64. 'options' => [
  65. 'text/plain' => 'PLUGIN_EMAIL.CONTENT_TYPE_PLAIN_TEXT',
  66. 'text/html' => 'HTML'
  67. ]
  68. ],
  69. 'charset' => [
  70. 'type' => 'text',
  71. 'size' => 'medium',
  72. 'label' => 'PLUGIN_EMAIL.CHARSET',
  73. 'placeholder' => 'PLUGIN_EMAIL.CHARSET_PLACEHOLDER'
  74. ],
  75. 'email_Defaults' => [
  76. 'type' => 'section',
  77. 'title' => 'PLUGIN_EMAIL.EMAIL_DEFAULTS',
  78. 'underline' => true
  79. ],
  80. 'from' => [
  81. 'type' => 'email',
  82. 'size' => 'medium',
  83. 'label' => 'PLUGIN_EMAIL.EMAIL_FORM',
  84. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_FORM_PLACEHOLDER',
  85. 'validate' => [
  86. 'required' => true,
  87. 'type' => 'email'
  88. ]
  89. ],
  90. 'from_name' => [
  91. 'type' => 'text',
  92. 'size' => 'medium',
  93. 'label' => 'PLUGIN_EMAIL.EMAIL_FROM_NAME',
  94. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_FROM_NAME_PLACEHOLDER'
  95. ],
  96. 'to' => [
  97. 'type' => 'email',
  98. 'size' => 'medium',
  99. 'label' => 'PLUGIN_EMAIL.EMAIL_TO',
  100. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_TO_PLACEHOLDER',
  101. 'multiple' => true,
  102. 'validate' => [
  103. 'required' => true,
  104. 'type' => 'email'
  105. ]
  106. ],
  107. 'to_name' => [
  108. 'type' => 'text',
  109. 'size' => 'medium',
  110. 'label' => 'PLUGIN_EMAIL.EMAIL_TO_NAME',
  111. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_TO_NAME_PLACEHOLDER'
  112. ],
  113. 'cc' => [
  114. 'type' => 'email',
  115. 'size' => 'medium',
  116. 'label' => 'PLUGIN_EMAIL.EMAIL_CC',
  117. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_CC_PLACEHOLDER',
  118. 'multiple' => true,
  119. 'validate' => [
  120. 'type' => 'email'
  121. ]
  122. ],
  123. 'cc_name' => [
  124. 'type' => 'text',
  125. 'size' => 'medium',
  126. 'label' => 'PLUGIN_EMAIL.EMAIL_CC_NAME',
  127. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_CC_NAME_PLACEHOLDER'
  128. ],
  129. 'bcc' => [
  130. 'type' => 'email',
  131. 'size' => 'medium',
  132. 'label' => 'PLUGIN_EMAIL.EMAIL_BCC',
  133. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_BCC_PLACEHOLDER',
  134. 'multiple' => true,
  135. 'validate' => [
  136. 'type' => 'email'
  137. ]
  138. ],
  139. 'reply_to' => [
  140. 'type' => 'email',
  141. 'size' => 'medium',
  142. 'label' => 'PLUGIN_EMAIL.EMAIL_REPLY_TO',
  143. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_REPLY_TO_PLACEHOLDER',
  144. 'multiple' => true,
  145. 'validate' => [
  146. 'type' => 'email'
  147. ]
  148. ],
  149. 'reply_to_name' => [
  150. 'type' => 'text',
  151. 'size' => 'medium',
  152. 'label' => 'PLUGIN_EMAIL.EMAIL_REPLY_TO_NAME',
  153. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_REPLY_TO_NAME_PLACEHOLDER'
  154. ],
  155. 'body' => [
  156. 'type' => 'textarea',
  157. 'size' => 'medium',
  158. 'label' => 'PLUGIN_EMAIL.EMAIL_BODY',
  159. 'placeholder' => 'PLUGIN_EMAIL.EMAIL_BODY_PLACEHOLDER'
  160. ],
  161. 'smtp_config' => [
  162. 'type' => 'section',
  163. 'title' => 'PLUGIN_EMAIL.SMTP_CONFIGURATION',
  164. 'underline' => true
  165. ],
  166. 'mailer.smtp.server' => [
  167. 'type' => 'text',
  168. 'size' => 'medium',
  169. 'label' => 'PLUGIN_EMAIL.SMTP_SERVER',
  170. 'placeholder' => 'PLUGIN_EMAIL.SMTP_SERVER_PLACEHOLDER'
  171. ],
  172. 'mailer.smtp.port' => [
  173. 'type' => 'text',
  174. 'size' => 'small',
  175. 'label' => 'PLUGIN_EMAIL.SMTP_PORT',
  176. 'placeholder' => 'PLUGIN_EMAIL.SMTP_PORT_PLACEHOLDER',
  177. 'validate' => [
  178. 'type' => 'number',
  179. 'min' => 1,
  180. 'max' => 65535
  181. ]
  182. ],
  183. 'mailer.smtp.encryption' => [
  184. 'type' => 'select',
  185. 'size' => 'medium',
  186. 'label' => 'PLUGIN_EMAIL.SMTP_ENCRYPTION',
  187. 'options' => [
  188. 'none' => 'PLUGIN_EMAIL.SMTP_ENCRYPTION_NONE',
  189. 'ssl' => 'SSL',
  190. 'tls' => 'TLS'
  191. ]
  192. ],
  193. 'mailer.smtp.user' => [
  194. 'type' => 'text',
  195. 'size' => 'medium',
  196. 'autocomplete' => 'off',
  197. 'label' => 'PLUGIN_EMAIL.SMTP_LOGIN_NAME'
  198. ],
  199. 'mailer.smtp.password' => [
  200. 'type' => 'password',
  201. 'size' => 'medium',
  202. 'autocomplete' => 'new-password',
  203. 'label' => 'PLUGIN_EMAIL.SMTP_PASSWORD'
  204. ],
  205. 'sendmail_config' => [
  206. 'type' => 'section',
  207. 'title' => 'PLUGIN_EMAIL.SENDMAIL_CONFIGURATION',
  208. 'underline' => true
  209. ],
  210. 'mailer.sendmail.bin' => [
  211. 'type' => 'text',
  212. 'size' => 'medium',
  213. 'label' => 'PLUGIN_EMAIL.PATH_TO_SENDMAIL',
  214. 'placeholder' => '/usr/sbin/sendmail'
  215. ],
  216. 'queue_section' => [
  217. 'type' => 'section',
  218. 'title' => 'PLUGIN_EMAIL.QUEUE_TITLE',
  219. 'text' => 'PLUGIN_EMAIL.QUEUE_DESC',
  220. 'markdown' => true,
  221. 'underline' => true
  222. ],
  223. 'queue.enabled' => [
  224. 'type' => 'toggle',
  225. 'label' => 'PLUGIN_EMAIL.QUEUE_ENABLED',
  226. 'highlight' => 0,
  227. 'default' => 0,
  228. 'options' => [
  229. 1 => 'PLUGIN_ADMIN.ENABLED',
  230. 0 => 'PLUGIN_ADMIN.DISABLED'
  231. ],
  232. 'validate' => [
  233. 'type' => 'bool'
  234. ]
  235. ],
  236. 'queue.flush_frequency' => [
  237. 'type' => 'cron',
  238. 'label' => 'PLUGIN_EMAIL.QUEUE_FLUSH_FREQUENCY',
  239. 'size' => 'medium',
  240. 'help' => 'PLUGIN_EMAIL.QUEUE_FLUSH_FREQUENCY_HELP',
  241. 'default' => '* * * * *',
  242. 'placeholder' => '* * * * *'
  243. ],
  244. 'queue.flush_msg_limit' => [
  245. 'type' => 'number',
  246. 'label' => 'PLUGIN_EMAIL.QUEUE_FLUSH_MSG_LIMIT',
  247. 'size' => 'x-small',
  248. 'append' => 'PLUGIN_EMAIL.QUEUE_FLUSH_MSG_LIMIT_APPEND'
  249. ],
  250. 'queue.flush_time_limit' => [
  251. 'type' => 'number',
  252. 'label' => 'PLUGIN_EMAIL.QUEUE_FLUSH_TIME_LIMIT',
  253. 'size' => 'x-small',
  254. 'append' => 'PLUGIN_EMAIL.QUEUE_FLUSH_TIME_LIMIT_APPEND'
  255. ],
  256. 'advanced_section' => [
  257. 'type' => 'section',
  258. 'title' => 'PLUGIN_EMAIL.ADVANCED',
  259. 'underline' => true
  260. ],
  261. 'debug' => [
  262. 'type' => 'toggle',
  263. 'label' => 'PLUGIN_EMAIL.DEBUG',
  264. 'highlight' => 1,
  265. 'default' => 0,
  266. 'options' => [
  267. 1 => 'PLUGIN_ADMIN.ENABLED',
  268. 0 => 'PLUGIN_ADMIN.DISABLED'
  269. ],
  270. 'validate' => [
  271. 'type' => 'bool'
  272. ]
  273. ]
  274. ]
  275. ]
  276. ]
  277. ];