Introducción a Zend Framework

 Aprendiendo Zend Framework

Apéndice

 Referencia de Zend Framework


  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Traducción al 26.9% - Actualizado el 2011-11-16 - Revisión 24249 - Versión ZF 1.11.x

    45.9. Additional Headers

    Zend_Mail provides several methods to set additional Mail Headers:

    • setReplyTo($email, $name=null): sets the Reply-To: header.

    • setDate($date = null): sets the Date: header. This method uses current time stamp by default. Or You can pass time stamp, date string or Zend_Date instance to this method.

    • setMessageId($id = true): sets the Message-Id: header. This method can generate message ID automatically by default. Or You can pass your message ID string to this method. This method call createMessageId() internally.

    [Nota] Return-Path

    If you set Return-Path on your mail, see Configuring sendmail transport. Unfortunately, setReturnPath($email) method does not perform this purpose.

    Furthermore, arbitrary mail headers can be set by using the addHeader() method. It requires two parameters containing the name and the value of the header field. A third optional parameter determines if the header should have only one or multiple values:

    Ejemplo 45.10. Adding E-Mail Message Headers

    $mail = new Zend_Mail();
    $mail->addHeader('X-MailGenerator''MyCoolApplication');
    $mail->addHeader('X-greetingsTo''Mom'true); // multiple values
    $mail->addHeader('X-greetingsTo''Dad'true);

    digg delicious meneame google twitter technorati facebook

    Comentarios

    Loading...