Prev | Current Page 234 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

1, we will cover a fairly typical use of email in a web application
where our user, Bert, sends a message inviting his friend, Ernie, to sign up on this fantastic new website he has
just found.
Licensed to Menshu You
Zend Framework in Action (Ch010) Manning Publications Co. 2
Figure 9.1 A simplified illustration of the processes involved in sending an email from an HTML form to its recipient??™s email client.
Bert starts by writing his message in the form and once satisfied, clicks "Submit" which sends the contents
to the server in a POST, or occasionally a GET, HTTP request method. Zend_Mail then composes this
information into email format and forwards it on to the mail transfer agent (MTA). Since Zend_Mail defaults
to using Zend_Mail_Transport_Sendmail, which is a wrapper for PHP's own mail() function, the expected mail
transfer agent is sendmail.
Having accepted the email, the mail transfer agent routes any local mail to local mailboxes (e.g. mail for
domains with a DNS entry on the same machine) or, in the case of this email for Ernie, places it in its queue to
be forwarded on. Once it clears the queue and is sent, the email will be bounced from server to server before
finally landing in the receiving mail server where it awaits collection.


Pages:
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
wyciągarki wróżby miłosne cukiernia-stykowscy.pl salon kosmetyczny kraków pompy ciepła