forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: olegario on November 10, 2003, 07:27:02 pm

Title: https in emails
Post by: olegario on November 10, 2003, 07:27:02 pm
I'm very new to Coppermine, and I really like the product.  I'm testing the email sending option, and I'm having some issues with it.  I'm running my site over https, but the links and pics are sent to the http address.  I changed the setting the config tab, but still doesn't work.  Any help would be appreciated.  Thanks!
Title: https in emails
Post by: Joachim Müller on November 10, 2003, 08:46:30 pm
edit /include/mailer.inc.php and edit
Code: [Select]
$CONFIG['smtp_host'] = '';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';
if the default values don't work for you.

GauGau
Title: https in emails
Post by: olegario on November 10, 2003, 09:50:40 pm
Actually, I'm talking more about the actual body of the email that gets sent.  The link in the body which goes to "If the e-card does not display correctly, click this link" goes to an http site, as opposed to my https site.  Also, the images within the body of the email don't work because they point back to an http site.
Title: https in emails
Post by: Joachim Müller on November 10, 2003, 10:13:04 pm
sorry, I got you wrong then. To change http to https, edit ecard.php and find
Code: [Select]
   $gallery_url_prefix = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $gallery_dir . (substr($gallery_dir, -1) == '/' ? '' : '/');

Cheers

GauGau
Title: https in emails
Post by: olegario on November 11, 2003, 01:55:07 am
Thanks!  That works perfectly...

Great product...was a linpha user, but starting to really like the coppermine tools...