Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Not sure whats happening with emails  (Read 5820 times)

0 Members and 1 Guest are viewing this topic.

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Not sure whats happening with emails
« on: November 28, 2015, 01:52:31 pm »

People are able to register
and their details are added to the site but they get an error message

Critical error
The registration confirmation email can't be send!

I've checked, changed and checked again the email details and they're correct

The site is www.photobombs.co.uk

Evidently this has been going on for over a year and been missed, So I have a few 1000 members not been contacted, so the site has slowly died..

I've updated to the latest version, but its not been fixed

Is there a way for me to send new messages to all the people that haven't been contacted.. about 70 pages of them, to chase them up and try and redraw their interests...

cheers
« Last Edit: December 17, 2015, 02:07:29 pm by ron4mac »
Logged

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Not sure whats happening with emails
« Reply #1 on: November 29, 2015, 10:56:20 pm »

anyone?
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 700
Re: Not sure whats happening with emails
« Reply #2 on: November 29, 2015, 11:26:30 pm »

anyone?
You will likely need to let one of our development team have access to your gallery as an admin.  Or, optionally, enable debug mode for everyone and also set 'Display notices in debug mode'.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: Not sure whats happening with emails
« Reply #3 on: November 30, 2015, 10:09:48 am »

I've checked, changed and checked again the email details and they're correct

Does it work if you leave the email settings blank?
Logged

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Not sure whats happening with emails
« Reply #4 on: November 30, 2015, 03:36:42 pm »

just turned debug mode on for everyone

its the same whether email settings are in or left blank
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: Not sure whats happening with emails
« Reply #5 on: November 30, 2015, 03:47:08 pm »

Unfortunately debug mode only tells us that cpg_mail cannot send the email. Does sending emails with the PHP mail function work? See http://php.net/manual/en/function.mail.php
Logged

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Not sure whats happening with emails
« Reply #6 on: December 01, 2015, 12:32:01 pm »

I'm not sure if it is or isn't as I am not skilled in this field

I created a file test.php with the code

Code: [Select]
<?php
$to      
'carl@whereinhull.com';
$subject 'the subject';
$message 'hello';
$headers 'From: carl@whereinhull.com' "\r\n" .
    
'Reply-To: carl@whereinhull.com' "\r\n" .
    
'X-Mailer: PHP/' phpversion();

mail($to$subject$message$headers);
?>

but I am receiving nothing
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1498
  • aka 'i-imagine'
    • Home Page
Re: Not sure whats happening with emails
« Reply #7 on: December 01, 2015, 06:14:24 pm »

Check with your hosting company. They might have disabled php mail functions. This can occur if they have spammers using a shared server or IP address.

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Not sure whats happening with emails
« Reply #8 on: December 02, 2015, 11:23:23 am »

surely though, putting in the smtp details would bypass the php mail
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: Not sure whats happening with emails
« Reply #9 on: December 02, 2015, 11:27:25 am »

Maybe they've also disabled something that denies connecting to your chosen SMTP server. Is it an external server or the recommended SMTP server of your host?
Logged

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Not sure whats happening with emails
« Reply #10 on: December 02, 2015, 11:58:25 am »

I have just been on with tech support

they say ....
For security reasons, sending e-mail using the internal PHP mail() function is disabled on most of our shared servers.
The mail() function is often used by malicious users on our network to send spam and other unsolicited e-mails.
You will need to switch over to using SMTP authentication for e-mails to work.

SMTP settings are in... but they've definately done something as a different critical error message now

The registration confirmation email can't be send! File: /home/photobom/public_html/register.php - Line: 627


Logged

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Not sure whats happening with emails
« Reply #11 on: December 02, 2015, 12:34:17 pm »

FIXED


http://photobombs.co.uk/admin.php

under "General settings"

Gallery administrator email was admin@photobombs.co.uk

which was incorrect as there was no such email

present on the server

I have changed that to info@photobombs.co.uk

This has fixed the issue


Thanks for help guys
Logged

photobombs

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Not sure whats happening with emails
« Reply #12 on: December 02, 2015, 12:36:11 pm »

now if only there was a way to re-contact the 1600+ members I missed out on  :(
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: Not sure whats happening with emails
« Reply #13 on: December 02, 2015, 01:00:17 pm »

You can get all email addresses of your inactive users with a script like that:
Code: [Select]
<?php

define
('IN_COPPERMINE'1);
require 
'include/init.inc.php';

if (!
GALLERY_ADMIN_MODE) {
    
cpg_die(ERROR$lang_errors['access_denied'], __FILE____LINE__);
}

pageheader();

$result CPG_db_query("SELECT DISTINCT(user_email) FROM {$CONFIG['TABLE_USERS']} WHERE user_active = 'NO' AND user_email != ''");
$email_array = array();
while (
$row mysql_fetch_assoc($result)) {
    
$email_array[] = $row['user_email'];
}
mysql_free_result($result);

echo 
implode(', '$email_array);

pagefooter();

?>


Just copy that code to a new file in your gallery root and visit it with your browser while logged in as admin. Then you can copy & paste all email addresses to your favorite mail client and send an email.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 700
Re: Not sure whats happening with emails
« Reply #14 on: December 02, 2015, 01:15:41 pm »

You can delete the two accounts that start with 'rogermac' that I created while trying to look at your email issue.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: Re: Not sure whats happening with emails
« Reply #15 on: December 02, 2015, 01:16:41 pm »

You can delete the two accounts that start with 'rogermac' that I created while trying to look at your email issue.

The same applies for account "André" ;)
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 700
Re: Re: Not sure whats happening with emails
« Reply #16 on: December 02, 2015, 01:28:53 pm »

You can get all email addresses of your inactive users with a script like that:
Maybe some new additions here for admin tools:  Send email to active/inactive users; resend activation emails.
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 723
    • GMC Design Photo Gallery
Re: Not sure whats happening with emails
« Reply #17 on: December 03, 2015, 01:20:57 am »

4 albums, 286 photos, and you have 1600 members you didn't contact?
Thinking you have a large number of spam registrations in that list.
Be prepared for a lot of bounced email messages.
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 21 queries.