Re: [gentoo-user] to mail or not to mail
On Tue, 2005-09-13 at 23:12 +0200, Antoine wrote: > Billy Holmes wrote: > > Antoine wrote: > > > >> tux ~ # sendmail [EMAIL PROTECTED] > >> hithere > >> > >> sendmail: Cannot open mail:25 > > > > > > ssmtp always uses a smart host. It can't deliver mail by itself. > > > > edit /etc/ssmtp/ssmtp.conf, make your changes (use your ISP's mail > > server), and I personally turn on FromLineOverride=yes. You may have to > > set your hostname in the file, too. > > I will give that a try but I seem to be making at least some progress > with sendmail (in fact it wasn't properly installed and I had to > uninstall ssmtp and reinstall to get it working...) I also had to > hardcode /usr/sbin/sendmail.sendmail into php.ini cos > /etc/mail/mailer.conf doesn't look like it's working but anyway - > > tux ~ # php /home/antt/tmp/test.php > [EMAIL PROTECTED] Connecting to [127.0.0.1] via relay... > [EMAIL PROTECTED] Deferred: Connection refused by [127.0.0.1] > Message successfully sent!tux ~ # > > Obviously it wasn't successful, and I have done something silly here... > This is frustrating! > Cheers > Antoine You aren't the only one with such a problem, I just tried to register on the jahshaka.org forum (phpBB) and it tells me: General Error Failed sending email :: PHP :: DEBUG MODE Line : 234 File : emailer.php -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] to mail or not to mail
Billy Holmes wrote: Antoine wrote: tux ~ # sendmail [EMAIL PROTECTED] hithere sendmail: Cannot open mail:25 ssmtp always uses a smart host. It can't deliver mail by itself. edit /etc/ssmtp/ssmtp.conf, make your changes (use your ISP's mail server), and I personally turn on FromLineOverride=yes. You may have to set your hostname in the file, too. I will give that a try but I seem to be making at least some progress with sendmail (in fact it wasn't properly installed and I had to uninstall ssmtp and reinstall to get it working...) I also had to hardcode /usr/sbin/sendmail.sendmail into php.ini cos /etc/mail/mailer.conf doesn't look like it's working but anyway - tux ~ # php /home/antt/tmp/test.php [EMAIL PROTECTED] Connecting to [127.0.0.1] via relay... [EMAIL PROTECTED] Deferred: Connection refused by [127.0.0.1] Message successfully sent!tux ~ # Obviously it wasn't successful, and I have done something silly here... This is frustrating! Cheers Antoine -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] to mail or not to mail
Antoine 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? Stick with ssmtp as you don't need a full MTA. You'll need to configure ssmtp as it needs a relay host to actually send any email. That'll lickly be your ISP mail server. sendmail [EMAIL PROTECTED] is a bad test because ssmtp is not able to deliver locally. ssmtp is realyy just a sendmail work a like binary that can be used from the commandline. kashani -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] to mail or not to mail
Antoine wrote: tux ~ # sendmail [EMAIL PROTECTED] hithere sendmail: Cannot open mail:25 ssmtp always uses a smart host. It can't deliver mail by itself. edit /etc/ssmtp/ssmtp.conf, make your changes (use your ISP's mail server), and I personally turn on FromLineOverride=yes. You may have to set your hostname in the file, too. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] to mail or not to mail
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. Nope... i still get the same thing with the proper sendmail :-(. I can also telnet to yahoo (though can't seem to send because it wants to authenticate...) on port 25 so don't think it is the isp or firewall. Anything else I could try? Cheers Antoine -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] to mail or not to mail
On 9/13/05, Antoine <[EMAIL PROTECTED]> wrote: Hi,I am trying to get php to send an email and am completely lost. It seemsas 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 similarthing at home I am getting nowhere. I have never done anything apartfrom setting up pop/smtp servers in gui mail clients and once in anetworking class we sent an email via telnet. Having done the extremely simple cl mail sending I was under theimpression that this would be simple!I just can't work out why it is so difficult... first of all ssmtp wasblocking everything. So I uninstall and install postfix. I try to get postfix going but get lots of abusive messages about it not likingcertain parameters (the default php ones). Now I read the ssmtp man pageand 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 (seebelow) and the php script I get the below.tux ~ # sendmail [EMAIL PROTECTED] hitheresendmail: Cannot open mail:25I don't want to do ANYTHING but have php send emails. I don't reallycare about security (for the moment) and really just want it to workwithout thinking about it! Can someone give me some advice? CheersAntoine 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. CruteSoftware DeveloperSoftGroup Development CorporationLinux, because reboots are for installing hardware."In a world without walls and fences, who needs windows and gates?"
[gentoo-user] to mail or not to mail
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 -- gentoo-user@gentoo.org mailing list