Want to send mail with php mail() command - minimum config required?
I am running a mediawiki site on Suse 10.3. I want it to be able to send e-mails, and for this it needs to use the php mail() command. What is the minimum configuration I would need to achieve this?
I do not have my own domain atm - I'm using NoIP.
I can use the command line mail to send mail to users on the same box. If I try to send to an internet address, the mail becomes stuck in mailq, with the message "No route to host". This happens whether or not Port 25 is open in my router firewall.
I think I am missing a huge configuration step somewhere. I played around with the YAST Postfix configuration but became lost when it started asking for mail server names on incoming mail - I don't want to get incoming mail, so I got stuck.
I have spent hours looking for a simple straightforward guide on how to do this minimum setup - if anyone can point me to one I would be very appreciative.
PS - I have checked the following related post:
1. http://www.linuxquestions.org/questi...ommand-641571/ I get "Unknown Service" if I try to start sendmail. YAST seems to push for Postfix over Sendmail.
I think I might be in the same boat as you. Well, sort of. I've been working on my first PHP application for a couple months, and I'm now in need of a simple way to send email (across the Internet) with PHP from my desktop. The idea being that when I actually install my program on a real server I won't need to make any major changes. At the moment, I just need to use PHP's mail() for sending my application's users a password reset link via email. I've done some googling and decided that I'm gonna give sSMTP a shot. I'll be using my ISP's email server in order to keep things as simple as possible. Not sure if this is the type of thing you are looking for, but I thought I'd share that link with you just in case.
Thanks win32sux. It's not exactly what I was looking for, but perhaps I was looking for the wrong thing, or at least something I didn't really need.
I will check it out. :)
|All times are GMT -5. The time now is 07:49 AM.|