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
using mail(), smtp to send email without modifying php.ini
Moderator: General Moderators
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?
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?