Zend_Application-AvailableResources-Mail.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect2 id="zend.application.available-resources.mail">
  4. <title>Zend_Application_Resource_Mail</title>
  5. <para>
  6. <classname>Zend_Application_Resource_Mail</classname> can be used
  7. to instantiate a transport for <classname>Zend_Mail</classname> or set
  8. the default name and address, as well as the default replyto- name and address.
  9. </para>
  10. <para>
  11. When instantiating a transport, it's registered automatically to
  12. <classname>Zend_Mail</classname>. Though, by setting the
  13. <property>transport.register</property> directive to <constant>FALSE</constant>, this
  14. behaviour does no more occur.
  15. </para>
  16. <example id="zend.application.available-resources.mail.configExample">
  17. <title>Sample Mail Resource Configuration</title>
  18. <para>
  19. Below is a sample <acronym>INI</acronym> snippet showing how to
  20. configure the mail resource plugin.
  21. </para>
  22. <programlisting language="ini"><![CDATA[
  23. resources.mail.transport.type = smtp
  24. resources.mail.transport.host = "smtp.example.com"
  25. resources.mail.transport.auth = login
  26. resources.mail.transport.username = myUsername
  27. resources.mail.transport.password = myPassword
  28. resources.mail.transport.register = true ; True by default
  29. resources.mail.defaultFrom.email = john@example.com
  30. resources.mail.defaultFrom.name = "John Doe"
  31. resources.mail.defaultReplyTo.email = Jane@example.com
  32. resources.mail.defaultReplyTo.name = "Jane Doe"
  33. ]]></programlisting>
  34. </example>
  35. </sect2>