dimoss
Well-Known Member
Hi,
reading another thread and using the list csv plugin I manage to have automated email send after csv import.
using the following:
However in the list csv plugin as the code run on every row multiple emails are sent.
My question is how is it possible only one to be sent per import?
Thanks.
reading another thread and using the list csv plugin I manage to have automated email send after csv import.
using the following:
PHP:
$config = JFactory::getConfig();
$to = "xxxx@xxx.com";
$subject = "Some text";
$msg = "some text!";
$res = FabrikWorker::sendMail(
$config->get('emailfrom'),
$config->get('fromname'),
$to,
$subject,
$msg
);
However in the list csv plugin as the code run on every row multiple emails are sent.
My question is how is it possible only one to be sent per import?
Thanks.