Mass Mailer[SOLVED]

hello all

i have a quick question would it be possible to add a line to the massmailer to only mail to active pilots(not inactive in phpvms but retired in the database) as the autoretire function doesn’t put the retired pilots it inactive in the admin.

gr joeri

thanks Jeff going to try it lateron

on a second hand did you ever recived my email regarding the tnt acars iff not let me know the i can resend it

thanks Jeff going to try it lateron

on a second hand did you ever recived my email regarding the tnt acars iff not let me know the i can resend it

ok tried it but getting this error

Parse error: syntax error, unexpected T_PUBLIC in /home/tntvirtua/domains/tnt-virtual.be/public_html/admin/modules/Maintenance/Maintenance.php on line 332

i probably do something verry stupid an easy wrong but i cant find it :slight_smile:

gr joeri

ok no problem will resend it.

could you help on the error i am stuck this moment

i added it to thissite

i commented your pice off code out.

thanks in advance joeri

You can also add on this line:

http://github.com/nshahzad/phpVMS/blob/master/admin/modules/MassMailer/MassMailer.php#L91

if($pilot->active == '0') { continue; }

That will skip adding inactive pilots, no matter the group. Add it before that echo

ok but the main problem is when a pilot gets retired using the autoretire the inactive/active part off phpvms doesn’t take that out the the retire table from the database so when doing a mass mail it sends it to all the pilots in the database and not only to the still active as i did not make them inactive in the admin.

gr joeri

ps still struggeling on the code i must be missing something verry stupid

wierd now its working

thanks jeff

machines somethimes you want to kill them when they don’t do what you want them to do