Prev | Current Page 240 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

com' as the fourth parameter in the mail() function
which then sends it in the following command which sets the sender address of the email:
sendmail -f welcome@greatnewsite.com
Since all we are doing is sending a command, this method should be fast and incur little latency, however,
that is dependant on the setup of the machines on which it is being called and run from. Also, as this is a *nix
command, it is not even an option on Windows based servers which will default to using SMTP anyway.
Sending via SMTP
There are occasions when you do not want to burden the local mailserver with sending your mail. A good
example would be when sending large volumes of mail in an environment where there may be restrictions on
the amount of mail your local mailserver can send. In this case it is possible to pass on the mail via SMTP to
another service provider.
Because SMTP (Simple Mail Transfer Protocol) is the standard by which all mail is sent across the
internet even if we use sendmail our email is ultimately sent using SMTP. When we say "sending via SMTP"
Licensed to Menshu You
Zend Framework in Action (Ch010) Manning Publications Co. 5
in this case we are meaning, more specifically, sending through a specified outgoing SMTP server in much the
same way that we set-up our email clients to send our mail.


Pages:
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
pozycjonowanie stron mieszkania szczecin - sprzedaż i wynajem poker online wizualizacje noclegi w górach