Laurent Destailleur 4382f2a437 Clean language files 9 anni fa
..
README 3338649316 [task #217] Move core files in core directory 13 anni fa
advthirdparties.modules.php cf8c180fa4 Fix perm and CRLF 9 anni fa
contacts1.modules.php b57c156b60 Merge remote-tracking branch 'origin/3.7' into 3.8 9 anni fa
contacts2.modules.php b57c156b60 Merge remote-tracking branch 'origin/3.7' into 3.8 9 anni fa
contacts3.modules.php 78d18185e4 Several css enhancements 9 anni fa
contacts4.modules.php 78d18185e4 Several css enhancements 9 anni fa
example.modules.php 143a7d7328 Use rfc6761 example.com domain instead of domain.com in examples 10 anni fa
fraise.modules.php c2243909e9 Scrutinizer Auto-Fixes 9 anni fa
framboise.modules.php b8d9c20731 [Qual] Fixed HTML input form disabled attribute 10 anni fa
index.html ec661d0c6c Removed index.php and replaced them with blank index.html as it is more appropriate 11 anni fa
modules_mailings.php ae51321040 Debug Advance target emailing 9 anni fa
pomme.modules.php a10d97cce0 NEW Can filter on status employee when building emailing from users 9 anni fa
thirdparties.modules.php dc790ff586 NEW: Feature request: A page to merge two thirdparties into one #2613 10 anni fa
thirdparties_services_expired.modules.php 4382f2a437 Clean language files 9 anni fa
xinputfile.modules.php 828dc2c9f4 Fix code standard 10 anni fa
xinputuser.modules.php 828dc2c9f4 Fix code standard 10 anni fa

README

README (english)
------------------------------------
Adding your own email selector module
------------------------------------


If you want to add your own emails selector/import module. This is steps to follow
to add you own email predefined selector:


***** STEP 1 *****

Copy file
htdocs/core/modules/mailings/example.modules.php
into
htdocs/core/modules/mailings/myselector.modules.php

You can choose value of your choice instead of "myselector" in name
of new file.


***** STEP 2 *****

Edit this file myselector.modules.php and change following text:

"class mailing_example" into "class mailing_myselector"
"var $name='example';" into var $name='myselector';
"var $desc='...';" into var $desc='A text to describe selector';
"function mailing_example" into "function mailing_myselector"

Then add code inside the "add_to_target" function. What you must do is simply
fill the $target PHP array with one record for each email your selector must return.

You can choose the way you get data: From a file, a database. You are free,
the only requirement is that the $target array is filled by records that are
themselves array of: ('email', 'name', 'firstname', 'other').

This is for example how you can fill the $target array:

// ----- Your code start here -----
$target[0]=array('email'=>'email_0','name'=>'name_0','firstname'=>'firstname_0', 'other'=>'other_0');
...
$target[n]=array('email'=>'email_n','name'=>'name_n','firstname'=>'firstname_n', 'other'=>'other_n');
// ----- Your code end here -----



***** STEP 3 *****

Once this file has been edited, you can go to the Dolibarr emailing feature,
you will see a new line selector in the "targets" editor of emailing tool.