forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: LiquidStang on October 01, 2003, 01:05:58 am

Title: Help! Mail question
Post by: LiquidStang on October 01, 2003, 01:05:58 am
Ok, another question here.  What does Coppermine use to send e-mail out about your ecards, etc?  I see "SMTP" in the mail php file, but don't see sendmail anywhere.  Where do I enter the path to sendmail, etc????  Or does it only use SMTP?

-Eric
Title: Help! Mail question
Post by: gtroll on October 01, 2003, 02:35:58 am
If you have the smtp_host setting set in the config it uses that. Leave that setting blank to use the php mail() function- that should work as is-
...if you need to configure the php mail function (http://us3.php.net/manual/en/ref.mail.php) to use sendmail that would be in php.ini or through a php_ini setting....
for more info on that http://php.net/manual/en/ref.mail.php
Title: Help! Mail question
Post by: LiquidStang on October 01, 2003, 03:23:19 am
Ok, in which config file is this?  cause I don't see it in the gallery's "config" option.  Or do you just mean the mailer.inc file?

And I'm assuming this php mail() function would have to be set up by my host.....

-Eric
Title: Help! Mail question
Post by: gtroll on October 01, 2003, 03:32:49 am
So you have two choices keep it like it is no changes
1.using the php mail function
Regarding php mail() - From the link I gave you...
Quote
There is no installation needed to use these functions(ed:mail functions); they are part of the PHP core.

I didn't mean to confuse you there also smtp settings for the mail() functions
in the php.ini, these can be set locally through the php_set() (http://www.php.net/ini-set) function of php

2.or you can use SMTP
and yes I guess those configuration variables are declared in mailer.inc.php
$CONFIG['smtp_host'] = '';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';

If you are not running php as a module (ie suexec) you will need to use option 2 to use SMTP as php_set() (http://www.php.net/ini-set) doesn't work unless you're using php as a module
Title: Re: Help! Mail question
Post by: xplicit on October 07, 2005, 08:58:57 am
Hi I got same question.

I just transferred to another host and after hosting my own server for year but I have the same "problem" that they don't allow relay SMTP.

So I asked them what the other options were and they answered:

Quote
Yes, scripts running on our servers can send out email.  We don't offer an outgoing SMTP server to send out email from your personal computer.

Normally, scripts just directly access the "sendmail" program on the server to send out email.  PHP offers the "mail()" function which should work just fine.  Can you configure your script to not use SMTP but to use sendmail on the local host?

As far as I understand from this toppic I just leave the settings blank in my mailer.inc.php or do I have to change my script aswell?

Title: Re: Help! Mail question
Post by: Joachim Müller on October 07, 2005, 09:02:50 am
As far as I understand from this toppic I just leave the settings blank in my mailer.inc.php or do I have to change my script aswell?
yes, just leave it blank. However, you'replied to a thread on the cpg1.1.x board. This version is completely outdated. Locking this thread now. Please read the docs.