using mail(), smtp to send email without modifying php.ini

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonaqua
Forum Newbie
Posts: 2
Joined: Tue Aug 05, 2003 8:52 am

using mail(), smtp to send email without modifying php.ini

Post 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
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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?
jonaqua
Forum Newbie
Posts: 2
Joined: Tue Aug 05, 2003 8:52 am

Post by jonaqua »

thanks, it's windows running an exchange server.
Post Reply