Email History

Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules
Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
nes
Posts: 1
Joined: 10 Jan 2017, 16:24
what is two(2) plus three(3) ?: 5

Email History

Post by nes » 10 Jan 2017, 16:43

Hello everyone,

I saw a feature while testing candidATS that would be a really nice addition to OpenCATS, that is Email history and send email button in the candidate profile (see image below). Does anyone have implemented this in OpenCATS ?
If not, is there a way to get some help in developing this and maybe add it to the next release of OpenCATS ? I have a rather decent level in programming but I will need some help in order to know what files I should look into.

Image

Cheers,

User avatar
cptr13
Posts: 414
Joined: 23 Apr 2008, 01:53
what is two(2) plus three(3) ?: 5
Location: Mobile, AL
Contact:

Re: Email History

Post by cptr13 » 10 Jan 2017, 21:01

You can put this as a feature request on the OpenCATS github. I would include the image.

dveos
Posts: 80
Joined: 09 Jun 2015, 15:35
what is two(2) plus three(3) ?: 5

Re: Email History

Post by dveos » 08 May 2017, 14:08

Hi nes,

Did you get any further with this?

User avatar
RussH
Site Admin
Posts: 810
Joined: 12 Apr 2008, 08:28
what is two(2) plus three(3) ?: 5
Location: UK
Contact:

Re: Email History

Post by RussH » 20 Jun 2017, 11:54

Hi.

Two things;

- does this give you what you need? https://github.com/opencats/OpenCATS/pull/246

"added the option to email a candidate from the candidate show page using OpenCATS email feature. emailing was already implemented through mailto:, but this option is through OpenCATS so the email templates can be used"

Alternatively there is a (stalled) project to poll your mailserver using IMAP , do a candidate lookup on inbound/outbound emails and insert the content to the appropriate candidate activity record. https://github.com/opencats/Opencats-email2activity ..you could give that code some love and see if it can be made operational. I believe it worked okay on small databases, but didn't scale well.
RussH

Report your issues and feature requests;
https://github.com/opencats/opencats/issues

Please CLICK THE TICK to accept the answer!

dveos
Posts: 80
Joined: 09 Jun 2015, 15:35
what is two(2) plus three(3) ?: 5

Re: Email History

Post by dveos » 08 Nov 2017, 17:41

Hi, just wanted to revive this thread to say that I am close to achieving this as shown in the image - I am one small hurdle away from completing. Will update shortly :D

dveos
Posts: 80
Joined: 09 Jun 2015, 15:35
what is two(2) plus three(3) ?: 5

Re: Email History

Post by dveos » 09 Nov 2017, 14:05

I now have this working, I'm not sure of the be best way to upload / contribute if it's something people would be interested in.

User avatar
RussH
Site Admin
Posts: 810
Joined: 12 Apr 2008, 08:28
what is two(2) plus three(3) ?: 5
Location: UK
Contact:

Re: Email History

Post by RussH » 09 Nov 2017, 16:14

Hi dveos.. yes yes yes .. email me the patch please or the installation instructions and I can add to opencats if you cant add on github yourself!

(ahem, kinda keen to see it working!)
RussH

Report your issues and feature requests;
https://github.com/opencats/opencats/issues

Please CLICK THE TICK to accept the answer!

dveos
Posts: 80
Joined: 09 Jun 2015, 15:35
what is two(2) plus three(3) ?: 5

Re: Email History

Post by dveos » 09 Nov 2017, 19:03

Hi Russ,

It's a start!

Please find instructions below, it's not 100% perfect yet as I noticed an issue with emails being sent through the "Activity" pop up. But seems to work perfectly when you email candidates through the standard procedure.

1, Firstly need to create two columns in the email_history table entitled for_id and for_module.
2, I have attached amended files for upload, don't think I'm missing anything.. then job done!

Basically what should happen is when an email goes out it logs the Candidate ID in the for_id column, and also module (i.e. Candidates). Then returns each email in the data grid.

Any issues let me know, or similarly if you can solve the activity email issue please do let me know! :D
Last edited by dveos on 24 Aug 2018, 07:29, edited 1 time in total.

dveos
Posts: 80
Joined: 09 Jun 2015, 15:35
what is two(2) plus three(3) ?: 5

Re: Email History

Post by dveos » 10 Nov 2017, 09:56

Hi Russ,

I just noticed it's the wrong nc file, please find attached.
Last edited by dveos on 24 Aug 2018, 07:29, edited 1 time in total.

dveos
Posts: 80
Joined: 09 Jun 2015, 15:35
what is two(2) plus three(3) ?: 5

Re: Email History

Post by dveos » 10 Nov 2017, 12:38

The following change in lib/pipelines.php from line 369 solves the activity issue:-

Code: Select all

/* Send e-mail notification. */
            //FIXME: Make subject configurable.
            $mailer = new Mailer($this->_siteID);
            $mailerStatus = $mailer->sendToOne(
                array($emailAddress, '', 'candidate->'.$candidateID),
                CANDIDATE_STATUSCHANGE_SUBJECT,
                $emailText,
                true
            );
        }
    }

Post Reply