[Use templ override] Flexicontent Favourites Email the page

More
10 years 11 months ago #43899 by atulvin
Hi,
How can you put a button at the top of Favourites page section which can be configured in the backend to send email to a fixed email id (configuring in the admin backend) and a cc to the user logged in.

Further to this, is it possible that the favourites page can be emailed to Category wise email IDs ( one email id per category and the respective selected favourites per category - automatically selected to go to the the proper category email id) which can be configured in the admin.

Thanks

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #43905 by micker
i think use a RSform or chronform component to create a form
create a button to open popup to your form (modal for exemple)
and use php programmation (form documentation will be great) to find id etc to put it in some field form

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #43914 by ggppdk

atulvin wrote: Hi,
How can you put a button at the top of Favourites page section which can be configured in the backend to send email to a fixed email id (configuring in the admin backend) and a cc to the user logged in.

Further to this, is it possible that the favourites page can be emailed to Category wise email IDs ( one email id per category and the respective selected favourites per category - automatically selected to go to the the proper category email id) which can be configured in the admin.

Thanks

Hello what is the purpose / usefulness of this ?
PS: you can create a Joomla template override of file:
components/com_flexicontent/views/favourites/tmpl/default.php
and add a email form inside the view

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #43934 by atulvin
Hello, Thanks for the prompt reply. I will try this and let you know. The purpose is to shortlist a database of candidates which can be sent to an employment agency (which will create the shortlist - favourites). Regards

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #44159 by atulvin
Hi,

I managed to put the Jmail code into the page.
Code:
$mailer = JFactory::getMailer(); $config = JFactory::getConfig(); $sender = array( $config->getValue( 'config.mailfrom' ), $config->getValue( 'config.fromname' ) ); $mailer->setSender($sender); $user = JFactory::getUser(); $recipient = $user->email; $mailer->addRecipient($recipient); $mailer->addCC("abcd@xyz.com"); $body = $content; $mailer->isHTML(true); $mailer->Encoding = 'base64'; $mailer->setSubject('Your Shortlisted Candidates'); $mailer->setBody($body); $send = $mailer->Send(); if ( $mailer->Send() !== true ) { echo 'Error sending email:' . $send->message; } else { echo 'Mail Sent'; }
.....................
Now the page does send emails, but it does it every refresh, entry and exit of the page. Can we have a small form (what will be the form action?) which can activate Jmail only on submit of the form button (and which directory will the files go.

Thanks
atul

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #44175 by ggppdk
Hello

what about setting a COOKIE to avoid resending the email ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.693 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline