customize Notification mail

Phoca Guestbook - creating guestbooks in Joomla! CMS
delliano
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 23 Dec 2010, 15:53

customize Notification mail

Post by delliano »

Hi,

Can you tell me where i can find the file that sends the notification email. So that i can customize it a little bit of structure.

Kind regards
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: customize Notification mail

Post by Jan »

Hi, which version of Phoca Guestbook you are using?
If you find Phoca extensions useful, please support the project
zerofield
Phoca Member
Phoca Member
Posts: 20
Joined: 17 Sep 2014, 12:34

Re: customize Notification mail

Post by zerofield »

Since I was having the exact same question: I am currently running on version 2.07

Please inlcude this info(your answer) also in the manual or a faq. I'm not the only one who was wondering.

Sorry for hijacking this thread, but the original poster didn't respond.....
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: customize Notification mail

Post by Jan »

Hi, see:

sendPhocaGuestbookMail() method in
components/com_phocaguestbook/models/guestbook.php

Jan
If you find Phoca extensions useful, please support the project
zerofield
Phoca Member
Phoca Member
Posts: 20
Joined: 17 Sep 2014, 12:34

Re: customize Notification mail

Post by zerofield »

Hi Jan,

edit

Sorry, somehow my client software(winscp) was messed up. It didn't show the correct contents for multiple folders. After an automated search this got fixed. Now I have the file within my reach :)

Thanks.

/edit

assuming guestbook.ph was a typo and should have ended with .php, or is it a python script? Unfortunately neither of those files exists on our server in the referred location.

What I found is:
subfolders
- forms
- fields
files
- phocaguestbooks.php
- phocaguestbookbs.php
- phocaguestbookb.php
- phocaguestbook.php
- index.html

Neither of these files does contain sendMail method.

I do find the file in the installation package(which I used to upgrade) containing the method you pointed me at. Strange enough to find the files not back at the server.

Do I need to change the files in the installation package and do an additional update? Or would it be possible to edit code straight on the server?

Regards.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: customize Notification mail

Post by Jan »

Hi, there are two locations:

- one for frontend: components/com_phocaguestbook/ ...
- and second for admin: administrator/components/com_phocaguestbook ...

and it seems like you are looking at models in administration :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply