Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Help! Mail question  (Read 12970 times)

0 Members and 1 Guest are viewing this topic.

LiquidStang

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Help! Mail question
« 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
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Help! Mail question
« Reply #1 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 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

LiquidStang

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Help! Mail question
« Reply #2 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
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Help! Mail question
« Reply #3 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() 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() doesn't work unless you're using php as a module

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Help! Mail question
« Reply #4 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?

Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help! Mail question
« Reply #5 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 18 queries.