Prev | Current Page 251 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

com>
Zend Framework in Action (Ch010) Manning Publications Co. 11
$at->disposition = Zend_Mime::DISPOSITION_INLINE; C
$at->encoding = Zend_Mime::ENCODING_BASE64; C
A Getting the general information about the file
B Adding the attachment to the email
C Optional settings for the attachment
The optional settings in listing 9.7 are only really needed if your attachment deviates from the default
which is a binary object transferred with base64 encoding, and handled as an attachment. In our case we??™ve
specified that the attachment be displayed inline in the email just so we don??™t have to open the file separately
to view it. As mentioned early in the chapter settings like this are handled by Zend_Mime so you will need to
look at its section of the Zend Framework manual for more information.
With the fifth requirement taken care of that leaves the sixth and final requirement which is to format the
emails so they can be quickly and easily read by the busy admin team.
9.3.5 Formatting the email
The subject of whether to send text or HTML email is a contentious issue that is debated at almost every
opportunity. Whatever your personal preference, as a developer you still need to know how to send either one,
though ironically, Zend_Mail makes the process easier than the choice.


Pages:
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
strony warszawa Pozycjonowanie reklama Apart