Re: Email Handling and Manipulation Question 11

16 views
Skip to first unread message

Dan Kelly

unread,
Jul 19, 2011, 1:16:35 PM7/19/11
to Zend Certification Study Group
What do you need to do in order for the mail function to work under
Windows, assuming that
sendmail is not installed on your machine?

A. Install a sendmail server
B. Install Microsoft Exchange
C. Install any mailserver on your computer
D. Change your php.ini configuration
E. Write a script that connects to a public e-mailing service

Seal Trip

unread,
Jul 19, 2011, 6:55:39 PM7/19/11
to zend-certificat...@googlegroups.com
D. Change your php.ini configuration

Alex Stetsenko

unread,
Jul 20, 2011, 1:57:47 PM7/20/11
to zend-certificat...@googlegroups.com
Seal, can you provide more details on what the change is and why not A, B, C won't work?

Seal Trip

unread,
Jul 20, 2011, 2:21:33 PM7/20/11
to zend-certificat...@googlegroups.com
It is my understanding that on windows, the mail functionality MTA is already available. Also php is by default config to work with sendmail. 

So, in the php.ini there is a place where you can set the send_path , from and smtp port. So by POE D seems to make sense to me.

Installing a others will only add more mail functionality but in the end. Php still need configuration to know where the mail client is.

Just my understanding

Dan Kelly

unread,
Jul 22, 2011, 8:28:04 AM7/22/11
to Zend Certification Study Group
On a UNIX-like system, PHP relies on the sendmail application to
handle its e-mailing (even
if sendmail itself is not installed on the server and it’s emulated by
a different Mail Transport
Agent). On Windows machines, however, the mail function actually
performs an SMTP
transaction against the server specified in the SMTP INI setting,
unless a sendmail wrapper is
used. Therefore, Answer D is correct.
Reply all
Reply to author
Forward
0 new messages