Email individual pilot is a module that allow you to send a mail a a certain pilot to his email address from inside the phpVMS admin panel.
Installation:
Upload mailer_mailpilot_form.tpl to your /admin/templates folder on ftp.
Insert the following lines at your MassMailer.php file located at /modules/MassMailer on your ftp.
#------------Individual Pilot Mailing------------------------------------------------------------ #Copyrights dimitris phpvms forum
public function mail_pilot() {
$this->render(‘mailer_mailpilot_form.tpl’);
}
public function sendmail_pilot(){
echo ‘
Parse error: syntax error, unexpected T_PUBLIC in /home/virtualf/public_html/admin/modules/MassMailer/MassMailer.php on line 109
Am I supposed to replace something? If I were to paste this at the ent of the original .php file, I get that error. Line 109 is the start of your code above.
public function index()
{
$this->set('allgroups', PilotGroups::getAllGroups());
$this->render('mailer_form.tpl');
}
and above the
public function sendmail()
{
echo '<h3>Sending email</h3>';
if($this->post->subject == '' || trim($this->post->message) == '')
{
$this->set('message', 'You must enter a subject and message!');
$this->render('core_error.tpl');
return;
}
Yes it is You need a textbox and some javascript/jquery code to search the MySQL table. I m not familiar with this type of coding… I m sorry but I can’t help with this, anybody else is welcomed to edit the module