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!
What about if you're using a Win32 server, and you don't have an SMTP server running locally? Is there like may be a sendmail or like binary that one could use? Or can you use somebody else's mail server, like is there may be some mail servers out there that allow other people to use the smtp (relaying i think its called?)?
I have a smtp server elsewhere that I can use with phpBB just fine. I have to login though, and phpBB can handle that. But for the rest of my site, where in php.ini can I put the user/pass for my remote smtp server?
I don't think an SMTP server is needed locally. Rather just the address of an working SMTP server in your php.ini.
I certainly don't have one locally, and it's working fine.
Here's a short explanation of the configuration directives.
SMTPstring
Used under Windows only: DNS name or IP address of the SMTP server PHP should use for mail sent with the mail() function.
smtp_portint
Used under Windows only: Number of the port to connect to the server specified with the SMTP setting when sending mail with mail(); defaults to 25. Only available since PHP 4.3.0.
SMTP relays will end up on black lists immediately, so don't use those. And beware the free smtp servers for win32
because they will open relay to use your machine as a host.
If you do use one of these nightmare apps be sure to set port redirection on your firewall to avooid being used as a relay... muhahahha
I have an smtp server set in my php.ini, it's not a local one, it's my ISP's. But it requires authentication. Is there a way I can tell php.ini my authentication directives?
The same thing you are; just my ISP's SMTP server. For me, I don't believe sending requires authentication, just the retrieval (POP3) part of the process.
Check out this Google search: [google]smtp authentication sendmail[/google]
I think that will have some answers to your questions.
I've concluded that the only way to use smtp auth with php is if you write your own mail functions using fsockopen (like phpBB does), or a already written class like this one.