Page 1 of 1
sending mail
Posted: Tue Dec 02, 2003 7:38 pm
by dull1554
i know that to use the
command you have to have sendmail or a pop3 mail server running, i was wondering if it is possiable to send mail without sendmail on one's server?
Posted: Wed Dec 03, 2003 8:20 pm
by uberpolak
You don't need sendmail per se, but an smtp server has to be running.
Posted: Wed Dec 03, 2003 8:22 pm
by infolock
aye, check out this link for more information :
http://www.php.net/mail
Posted: Thu Dec 04, 2003 1:41 am
by Pyrite
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?)?
Posted: Thu Dec 04, 2003 4:26 am
by Pyrite
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?
Posted: Thu Dec 04, 2003 12:29 pm
by m3mn0n
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.
SMTP string
Used under Windows only: DNS name or IP address of the SMTP server PHP should use for mail sent with the mail() function.
smtp_port int
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.
Posted: Thu Dec 04, 2003 12:48 pm
by xisle
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
Posted: Thu Dec 04, 2003 3:54 pm
by Pyrite
Neither of you answered my question.
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?
Posted: Thu Dec 04, 2003 3:56 pm
by Pyrite
Sami wrote:I certainly don't have one locally, and it's working fine.
Well, what are you using then? If you're using php's mail function, then it's got to be set to something.
Posted: Thu Dec 04, 2003 4:49 pm
by m3mn0n
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.
Posted: Thu Dec 04, 2003 10:08 pm
by Pyrite
I have Covad DSL, and yes it does required my user/pass for sending mail.
That google search has nothing to do with my question.
My question, has to do with php.ini and php's mail function. Not sendmail or smtp auth.

Posted: Thu Dec 04, 2003 10:51 pm
by xisle
try this google search...
[google] pain in the butt [/google]
Posted: Fri Dec 05, 2003 1:38 am
by Pyrite
After a little more searching ..
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.
http://phpmailer.sourceforge.net/