Not sure whats happening with emails Not sure whats happening with emails
 

News:

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

Main Menu

Not sure whats happening with emails

Started by photobombs, November 28, 2015, 01:52:31 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

photobombs

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


ron4mac

Quote from: photobombs on November 29, 2015, 10:56:20 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'.

Αndré

Quote from: photobombs on November 28, 2015, 01:52:31 PM
I've checked, changed and checked again the email details and they're correct

Does it work if you leave the email settings blank?

photobombs

just turned debug mode on for everyone

its the same whether email settings are in or left blank

Αndré

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

photobombs

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

<?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

Joe Carver

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

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

Αndré

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?

photobombs

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



photobombs

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

photobombs

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

Αndré

You can get all email addresses of your inactive users with a script like that:
<?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.

ron4mac

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

Αndré

Quote from: ron4mac 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.

The same applies for account "André" ;)

ron4mac

Quote from: Αndré on December 02, 2015, 01:00:17 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.

gmc

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.
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money