HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Change CC Email to BCC

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#37857 (In Topic #8517)
Avatar

Community saint

I have had some complaints by my hosting company that there might be some spam originating from my site and they threatened to deactivate my domain. So I added an email to the CC thing in the settings and it worked great as all of the emails sent through the system are sent to me and if there are any more Spam issues I can see just what happened. The only problem is that on all of the emails sent out it shows that it was Carbon copied to me and it look like I am spying or something. My question is, is there a way to have the emails set to BCC instead of CC. Thanks in advance!

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#37899
Avatar

Hi,

In sources/mail.php, look for this line:

Code

   if (($cc_address!='') && (!in_array($cc_address,$to_email))) $headers.='Cc: <'.$cc_address.'>'.$line_term;
and change to:

Code

   if (($cc_address!='') && (!in_array($cc_address,$to_email))) $headers.='BCC: <'.$cc_address.'>'.$line_term;
and save as sources_custom/mail.php (so you know you changed it).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37908
Avatar

Community saint

Not sure if it is totally relevant, but should …

$headers.='BCC:
read
$headers.='Bcc:

… the way email clients show it?

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#37912
Avatar

Community saint

Chris,

Very strange, I did as you said and all looked well. I got a couple of site related email and it no longer showed that it was CC'd to me. But about 10 minutes later I started receiving personal emails indicating they could not sign in. I thought it strange but logged out and tried to log back in and it would take me to the screen about the Cookie thing settings but when I clicked on the next step that usually took me back into th site it took me straight back to the login screen indicating I was not logged in.

I have no idea what the fix would have to do with logging in but since it was the last thing that I altered on the site I thought lets try deleting the file that got saved in the custom_sources. after doing that all is fine again.

Any ideas?
 

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#37943
Avatar

Hi,

Please describe further the 'screen about the Cookie thing settings'.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#37960
Avatar

Community saint

This isn't meant to 'interfere', only to 'amplify' …

The patch to ../sources/mail.php is working fine for me, and isn't causing any related problems.

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#37961
Avatar

Community saint

Chris,

When that alteration that you suggested is active when I go to login it says Logged in up above but there is a light box that has the following content.


Please note that cookies must be enabled on your computer for this site to stay logged in between visits.
Click to proceed to your destination.


 
As soon as I click on the link it loggs me straight out again. As soon as I remove the mod it works properly again.

Fletch thanks for your help and suggestions as well but I tried the BCC the way Chris said and the Bcc the way you said and it makes no differance

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#37999
Avatar

Fletch, thanks for your comments. I don't believe it is case-sensitive with 'BCC', but I've added this as a feature to ocp4 and I have used your varitation.

Rick, I've tried this out myself and don't seem to have a log in problem. As you mentioned, there doesn't seem to be a reason e-mail would affect login. Could you try again please? I think you must have been hit by some other coincidental problem.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#38027
Avatar

Community saint

OK this is getting stranger: I tried several times to edit the mail.php file and save it in the sources_custom folder but got the same error every time, I am sure the edit is correct, I mean is is only a couple of letters getting changed. So I got to thinking that maybe it was something to do with having it in that custom folder. So I removed the edited one and copied that original one that is working from the sources folder into the custom_sources folder and got the same error back.

So I thought it was the folder that was causing the error, I deleted the file in the custom folder, everything works again. This time I just edited the mail.php file and left it where it was and got the same problem back. I unedited it and still had the problem, now I am getting really stumped. Had to go back the the manual install file extracted the original email.php file and uploaded it and all is working again. As to what I use to edit the files it is what I have used for years, Dreamweaver, never had problems with it before and I edit files with it all the time without issue.

As stated earlier there is no reason in my mind why this file should effect the login but it definitely is. This time I selected everything in that little box that came up and got the source of it, see below:


<div>
            Please note that cookies must be enabled on your computer for this site to stay logged in between visits.

            <p>
              Click <input accesskey="C" class="buttonhyperlink" value="here" type="submit"> to proceed to your destination.
            </p>

           
          </div>

I seem to remember reading something about that word accesskey, I don't remember changing any settings for that but my questions still is why would changing the mail.php file cause this thing to engage and stop logins from working?
 

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38039
Avatar

Aha, I think I've worked it out.

Please check that dreamweaver hasn't added blank lines above <?php (top of the file) or before ?> (bottom of the file).

If it has, it'll stop PHP being able to save login cookies.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#38043
Avatar

Community saint

Chris,

That was it, as always you are awesome!

I have to ask a question though, I have been using Dreamweaver for years and have never noticed this quark, does anyone else use DW and if so have they found a way to stop it from doing this. Now I am very concerned about using it, have always thought it to be the best, oh well live and learn. Thanks again Chris…
 

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38045
Avatar

Community saint

rick said

… does anyone else use DW and if so have they found a way to stop it from doing this.

Rick, I use DW for all my website building, EXCEPT for ocPortal. Tutes & past forum entries have made it clear that OCP isn't 'editable' in DW, but I think that referred to the overall HTML as you'd see it if you viewed source. Since OCP is made of many templates, editing it in DW isn't going to achieve anything.

You are the first I've noticed who actually edits the composition of files in DW. There have been several posts about 'editing' OCP files and templates, and the recommendation is always to use a good text editor. The staff recommend ConTEXT (freeware), and I would add EditPad (Lite = freeware - Pro = paid).

I would be using ConTEXT by now if I hadn't bought EditPad Pro a few years ago. Can't think of editing anything without it.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#38076
Avatar

Community saint

Thanks Fletch, I will use ConTEXT in future.

I have always used dreamweaver because it cuts a few steps. Using an editor like your suggestion means I have to find it with FTP program, download it, access file on local machine with editor and edit it, then go back to FTP program and upload it in the correct place. With Dreamweaver I just locate it on the site, double click on it, edit it, then save. I know the steps are basically the same but everything is done in one easy to use environment. I also have a complete backup of my system within Dreamweaver.

Oh well, not a big change just not as convenient.

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: