| View previous topic :: View next topic |
| Author |
Message |
Roombor
Joined: 02 Jun 2006 Posts: 111
|
| I'm having problems with mail() and I'm pretty sure it is a lack of some config, what do I need to do to allow php to mail out? |
| |
|
|
|
|
WarChild
Joined: 24 Feb 2006 Posts: 46
|
It deppends of what OS are you using.
Also check out the relevant part of your php.ini |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
Have a local smtp-installation.
Which either means you need ssmtp and a smtp-server or a smtp-server on the php-running box.
In both cases you should have a "sendmail" command which is working. if you don't have, php can't send email (afaik) |
| |
|
|
Roombor
Joined: 02 Jun 2006 Posts: 111
|
| :), I installed ssmtp, I kind of thumbled through the config of it, I was concerned with mailhub= var in the config. Am I right in thinking that you only need ssmpt and nothing else to send emails from php? |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| As long as you have a smtp-server running accepting mails from the php-running box (the one you installed ssmtp on) without further authentication and stuff - yes. |
| |
|
|
Roombor
Joined: 02 Jun 2006 Posts: 111
|
| K, thx |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
Not really
You need to configure php a little differently for it to work with ssmtp
The default way it calls the mailer does not work with sendmail |
| |
|
|
Roombor
Joined: 02 Jun 2006 Posts: 111
|
| Any recommendations for an smtp server? |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
If you jsut want to send mails, ssmtp is perfectly fine
Let me search the correct line to put in php.ini for it to work, just a moment
Sendmail_path = "/usr/sbin/ssmtp -t -i"
That's it :) |
| |
|
|
Roombor
Joined: 02 Jun 2006 Posts: 111
|
| So I don't need an additional server with ssmtp |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Roombor: i'm using postfix on my servers. |
| |
|
|
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
You can run it on the same server without problems (ssmtp)
This setup actually expects the ssmtp server to be on the same machine, as it's directly calling the binary |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Roombor, if your provider lets you send mails without authentication to its smtp-servers, yes. |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
montanarry, ehmm with ssmtp you are your own smtp-server...
Ssmtp is full smtp server
Just with very little functionality besides sending mail out |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| PaulKolin, but no way to deliver mail to any mailbox. |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
No, it's only there to send mail, which is what an smtp server should only do
Delivering mail is the job of a MDA |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
Have a local smtp-installation.
Which either means you need ssmtp and a smtp-server or a smtp-server on the php-running box.
In both cases you should have a "sendmail" command which is working. if you don't have, php can't send email (afaik)
but you may try to get some processing time |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| :), I installed ssmtp, I kind of thumbled through the config of it, I was concerned with mailhub= var in the config. Am I right in thinking that you only need ssmpt and nothing else to send emails from php? |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| As long as you have a smtp-server running accepting mails from the php-running box (the one you installed ssmtp on) without further authentication and stuff - yes. |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| K, thx |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
Not really
You need to configure php a little differently for it to work with ssmtp
The default way it calls the mailer does not work with sendmail |
| |
|
|
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Any recommendations for an smtp server? |
| |
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
If you jsut want to send mails, ssmtp is perfectly fine
Let me search the correct line to put in php.ini for it to work, just a moment
Sendmail_path = "/usr/sbin/ssmtp -t -i"
That's it :) |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| So I don't need an additional server with ssmtp |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| ovigo22, i'm using postfix on my servers. |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|