Zend_Application-AvailableResources-Mail.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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>When instantiating a transport, it's registered automatically to
  11. <classname>Zend_Mail</classname>. Though, by setting the transport.register
  12. directive to false, this behaviour does no more occur.
  13. </para>
  14. <example id="zend.application.available-resources.mail.configExample">
  15. <title>Sample Mail Resource Configuration</title>
  16. <para>
  17. Below is a sample <acronym>INI</acronym> snippet showing how to
  18. configure the mail resource plugin.
  19. </para>
  20. <programlisting language="ini"><![CDATA[
  21. resources.mail.transport.type = smtp
  22. resources.mail.transport.host = "smtp.example.com"
  23. resources.mail.transport.auth = login
  24. resources.mail.transport.username = myUsername
  25. resources.mail.transport.password = myPassword
  26. resources.mail.transport.register = true ; True by default
  27. resources.mail.defaultFrom.email = john@example.com
  28. resources.mail.defaultFrom.name = "John Doe"
  29. resources.mail.defaultReplyTo.email = Jane@example.com
  30. resources.mail.defaultReplyTo.name = "Jane Doe"
  31. ]]></programlisting>
  32. </example>
  33. </sect2>