forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 email => Topic started by: photobombs 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
-
anyone?
-
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'.
-
I've checked, changed and checked again the email details and they're correct
Does it work if you leave the email settings blank?
-
just turned debug mode on for everyone
its the same whether email settings are in or left blank
-
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
-
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
-
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.
-
surely though, putting in the smtp details would bypass the php mail
-
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?
-
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
-
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
-
now if only there was a way to re-contact the 1600+ members I missed out on :(
-
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.
-
You can delete the two accounts that start with 'rogermac' that I created while trying to look at your email issue.
-
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é" ;)
-
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.
-
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.