On 9/13/05, Antoine <[EMAIL PROTECTED]> wrote:
Hi,
I am trying to get php to send an email and am completely lost. It seems
as though I had it working on an mdk box at work today, cos I got the
messages on my yahoo account, but now I am trying to set up a similar
thing at home I am getting nowhere. I have never done anything apart
from setting up pop/smtp servers in gui mail clients and once in a
networking class we sent an email via telnet.
Having done the extremely simple cl mail sending I was under the
impression that this would be simple!
I just can't work out why it is so difficult... first of all ssmtp was
blocking everything. So I uninstall and install postfix. I try to get
postfix going but get lots of abusive messages about it not liking
certain parameters (the default php ones). Now I read the ssmtp man page
and ask myself - why shouldn't this work? All I want to do is send a
simple little email - if telnet can do it then this can...
Now I reinstall ssmtp and nothing is working. From mutt, sendmail (see
below) and the php script I get the below.
tux ~ # sendmail [EMAIL PROTECTED]
hithere
sendmail: Cannot open mail:25
I don't want to do ANYTHING but have php send emails. I don't really
care about security (for the moment) and really just want it to work
without thinking about it! Can someone give me some advice?
Cheers
Antoine
Personally I would just emerge sendmail and use that, especially if you don't need incoming mail. Postfix is probably overkill and I don't know jack about ssmtp. You may encounter two situations however: 1) Your ISP is blocking the SMTP port (25) and/or 2) Your firewall, software or hardware, is blocking mail. As I recall there isn't any special setting needed for sendmail to send a message from php, it just needs to be installed.
-Mike
--
________________________________
Michael E. Crute
Software Developer
SoftGroup Development Corporation
Linux, because reboots are for installing hardware.
"In a world without walls and fences, who needs windows and gates?"
--
________________________________
Michael E. Crute
Software Developer
SoftGroup Development Corporation
Linux, because reboots are for installing hardware.
"In a world without walls and fences, who needs windows and gates?"

