Jump to content

How to Disable EMAIL_NEW_PIREP? [Solved]


ARV187

Recommended Posts

# Send an email to the admin that a PIREP was submitted
       $sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})";
       $message="A PIREP has been submitted by {$pilotcode} ({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n"
               ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n"
               ."Aircraft: {$pirepdata['aircraft']}\n"
               ."Flight Time: {$pirepdata['flighttime']}\n"
               ."Filed using: {$pirepdata['source']}\n\n"
               ."Comment: {$pirepdata['comment']}";

       $email = Config::Get('EMAIL_NEW_PIREP');
       if(empty($email))
       {
           $email = ADMIN_EMAIL;
       }

       Util::SendEmail($email, $sub, $message);   

Find that piece of code in core>common>PIREPData.class.php and comment it out. backup the file first, so if something goes wrong you can revert back to the original.

Link to comment
Share on other sites

  • Moderators

Find the line which says:

Util::SendEmail($email, $sub, $message);

And replace it with this one(comment it):

//Util::SendEmail($email, $sub, $message);

Then, keep a backup of the last version of the file and upload the new one on your server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...