b98e1d9eaa463a65a547a7d7cd564630.yaml.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/r2c.net/user/plugins/email/blueprints.yaml',
  5. 'modified' => 1529476890,
  6. 'data' => [
  7. 'name' => 'Email',
  8. 'version' => '2.7.1',
  9. 'description' => 'Enables the emailing system for Grav',
  10. 'icon' => 'envelope',
  11. 'author' => [
  12. 'name' => 'Team Grav',
  13. 'email' => 'devs@getgrav.org',
  14. 'url' => 'http://getgrav.org'
  15. ],
  16. 'keywords' => 'plugin, email, sender',
  17. 'homepage' => 'https://github.com/getgrav/grav-plugin-email',
  18. 'bugs' => 'https://github.com/getgrav/grav-plugin-email/issues',
  19. 'license' => 'MIT',
  20. 'dependencies' => [
  21. 0 => [
  22. 'name' => 'grav',
  23. 'version' => '>=1.1.9'
  24. ]
  25. ],
  26. 'form' => [
  27. 'validation' => 'loose',
  28. 'fields' => [
  29. 'enabled' => [
  30. 'type' => 'hidden',
  31. 'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS',
  32. 'highlight' => 1,
  33. 'default' => 1,
  34. 'options' => [
  35. 1 => 'PLUGIN_ADMIN.ENABLED',
  36. 0 => 'PLUGIN_ADMIN.DISABLED'
  37. ],
  38. 'validate' => [
  39. 'type' => 'bool'
  40. ]
  41. ],
  42. 'mailer.engine' => [
  43. 'type' => 'select',
  44. 'label' => 'Mail Engine',
  45. 'size' => 'medium',
  46. 'options' => [
  47. 'none' => 'Disabled',
  48. 'smtp' => 'SMTP',
  49. 'sendmail' => 'Sendmail'
  50. ]
  51. ],
  52. 'content_type' => [
  53. 'type' => 'select',
  54. 'label' => 'Content type',
  55. 'size' => 'medium',
  56. 'default' => 'text/html',
  57. 'options' => [
  58. 'text/plain' => 'Plain text',
  59. 'text/html' => 'HTML'
  60. ]
  61. ],
  62. 'charset' => [
  63. 'type' => 'text',
  64. 'size' => 'medium',
  65. 'label' => 'Charset',
  66. 'placeholder' => 'Defaults to UTF-8'
  67. ],
  68. 'from' => [
  69. 'type' => 'email',
  70. 'size' => 'medium',
  71. 'label' => 'Email from',
  72. 'placeholder' => 'Default email from address',
  73. 'validate' => [
  74. 'required' => true,
  75. 'type' => 'email'
  76. ]
  77. ],
  78. 'from_name' => [
  79. 'type' => 'text',
  80. 'size' => 'medium',
  81. 'label' => 'Email from name',
  82. 'placeholder' => 'Default email from name'
  83. ],
  84. 'to' => [
  85. 'type' => 'email',
  86. 'size' => 'medium',
  87. 'label' => 'Email to',
  88. 'placeholder' => 'Default email to address',
  89. 'multiple' => true,
  90. 'validate' => [
  91. 'required' => true,
  92. 'type' => 'email'
  93. ]
  94. ],
  95. 'to_name' => [
  96. 'type' => 'text',
  97. 'size' => 'medium',
  98. 'label' => 'Email to name',
  99. 'placeholder' => 'Default email to name'
  100. ],
  101. 'cc' => [
  102. 'type' => 'email',
  103. 'size' => 'medium',
  104. 'label' => 'Email CC',
  105. 'placeholder' => 'Default email CC address',
  106. 'multiple' => true,
  107. 'validate' => [
  108. 'type' => 'email'
  109. ]
  110. ],
  111. 'cc_name' => [
  112. 'type' => 'text',
  113. 'size' => 'medium',
  114. 'label' => 'Email CC name',
  115. 'placeholder' => 'Default email CC name'
  116. ],
  117. 'bcc' => [
  118. 'type' => 'email',
  119. 'size' => 'medium',
  120. 'label' => 'Email BCC',
  121. 'placeholder' => 'Default email BCC address',
  122. 'multiple' => true,
  123. 'validate' => [
  124. 'type' => 'email'
  125. ]
  126. ],
  127. 'reply_to' => [
  128. 'type' => 'email',
  129. 'size' => 'medium',
  130. 'label' => 'Email reply-to',
  131. 'placeholder' => 'Default email reply-to address',
  132. 'multiple' => true,
  133. 'validate' => [
  134. 'type' => 'email'
  135. ]
  136. ],
  137. 'reply_to_name' => [
  138. 'type' => 'text',
  139. 'size' => 'medium',
  140. 'label' => 'Email reply-to name',
  141. 'placeholder' => 'Default email reply-to name'
  142. ],
  143. 'body' => [
  144. 'type' => 'textarea',
  145. 'size' => 'medium',
  146. 'label' => 'Email body',
  147. 'placeholder' => 'Defaults to a table of all form fields'
  148. ],
  149. 'mailer.smtp.server' => [
  150. 'type' => 'text',
  151. 'size' => 'medium',
  152. 'label' => 'SMTP server',
  153. 'placeholder' => 'e.g. smtp.google.com'
  154. ],
  155. 'mailer.smtp.port' => [
  156. 'type' => 'text',
  157. 'size' => 'small',
  158. 'label' => 'SMTP port',
  159. 'placeholder' => 'Defaults to 25 (plaintext) / 587 (encrypted)',
  160. 'validate' => [
  161. 'type' => 'number',
  162. 'min' => 1,
  163. 'max' => 65535
  164. ]
  165. ],
  166. 'mailer.smtp.encryption' => [
  167. 'type' => 'select',
  168. 'size' => 'medium',
  169. 'label' => 'SMTP encryption',
  170. 'options' => [
  171. 'none' => 'None',
  172. 'ssl' => 'SSL',
  173. 'tls' => 'TLS'
  174. ]
  175. ],
  176. 'mailer.smtp.user' => [
  177. 'type' => 'text',
  178. 'size' => 'medium',
  179. 'label' => 'SMTP login name'
  180. ],
  181. 'mailer.smtp.password' => [
  182. 'type' => 'password',
  183. 'size' => 'medium',
  184. 'label' => 'SMTP password'
  185. ],
  186. 'mailer.sendmail.bin' => [
  187. 'type' => 'text',
  188. 'size' => 'medium',
  189. 'label' => 'Path to sendmail',
  190. 'placeholder' => '/usr/sbin/sendmail'
  191. ],
  192. 'debug' => [
  193. 'type' => 'toggle',
  194. 'label' => 'Debug',
  195. 'highlight' => 1,
  196. 'default' => 0,
  197. 'options' => [
  198. 1 => 'PLUGIN_ADMIN.ENABLED',
  199. 0 => 'PLUGIN_ADMIN.DISABLED'
  200. ],
  201. 'validate' => [
  202. 'type' => 'bool'
  203. ]
  204. ]
  205. ]
  206. ]
  207. ]
  208. ];