email - How to check if PHP mail() is enabled? -


i need install php site on microsoft server. reason host isn't allowing site send e-mails. host has sent me code sample... didn't work.

is there way check if server allows sending of e-mails through php mail() function?

at stage finger pointing , need proof here show client host @ fault.

in linux, default mail() function uses sendmail operating system.

in windows, default mail() doesn't anything, have set editing php.ini file.

you can check options php.ini hosting using, writing showinfo.php file, , inside it, write:

   <?php    phpinfo();    ?> 

then if call webpage, show enabled options.

to able send mail on windows, these 2 values should set similar these:

smtp = smtp.isp.net (the name or ip of server) sendmail_from = me@isp.net 

xampp platform comes mailtodisk replacement, , can set use "fakemail" in place of sendmail, means of smtp connection. can take sendmail folder comes xampp, , set in php.ini iis uses.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -