ARV187 Posted May 12, 2013 Report Share Posted May 12, 2013 Hi, is good receive emails when a new pilot is registered, etc. However, if the actual pilots send much pireps is a continous emails messages inbox email folder. ¿How can I disable only the new pirep send notification? Thanks. Quote Link to comment Share on other sites More sharing options...
Strider Posted May 13, 2013 Report Share Posted May 13, 2013 # 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. Quote Link to comment Share on other sites More sharing options...
ARV187 Posted May 13, 2013 Author Report Share Posted May 13, 2013 Hi Strider, After of make the backup, what should I do? delete the entry? regards, Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted May 13, 2013 Moderators Report Share Posted May 13, 2013 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. Quote Link to comment Share on other sites More sharing options...
ARV187 Posted May 13, 2013 Author Report Share Posted May 13, 2013 Ok, thanks guys!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.