Page 1 of 1
using mail(), smtp to send email without modifying php.ini
Posted: Tue Aug 05, 2003 8:52 am
by jonaqua
I don't have access to the php.ini file which identifies the smtp server. Can I still send email using the mail function? maybe something like mail( "mail.blah.com", "from", "to", "etc" )
I'm relatively new to php.
Thanks
Posted: Tue Aug 05, 2003 9:20 am
by Stoker
if your server is a Unix-like system (BSD, GNU/Linux etc) you can likely just send mail at will and the servers MTA will send it for you (No SMTP), it is only WIndows that does not have a MTA system and needs SMTP settings..
If you really do want to manually do SMTP you can use sockets for that, there are likely many libs out there than can do this..
Perhaps the IMAP extension has some stuff for this as well?
Posted: Tue Aug 05, 2003 9:23 am
by jonaqua
thanks, it's windows running an exchange server.