Jump to content

Phpvms not sending email


sherming

Recommended Posts

Hi everyone, recently I changed my website host into a new one that is Windows based. However, after that I did not receive emails anymore from phpvms, such as Pirep submitted,new pilots registration, password reset and many more. Does anyone have a fix to this? Thanks in advance :)

Link to comment
Share on other sites

I got this O.O this didnt appeared before during installation

Install Check
phpVMS Build Number: v2.1.935
Checking PHP version
[OK] PHP version is 5.2.17.x
ASP Tags
[OK] ASP-style tags are disabled
Checking connectivity...
[OK] Can contact outside servers
Checking for SimpleXML module...
[OK] SimpleXML module exists!
Checking file hashes for corrupt or mismatched files
[Checksum failed] /admin/modules/Import/Import.php did not match, possibly corrupt or out of date
[Checksum failed] /admin/modules/MassMailer/MassMailer.php did not match, possibly corrupt or out of date
[Checksum failed] /action.php did not match, possibly corrupt or out of date
[Checksum failed] /core/modules/ACARS/fsacars.php did not match, possibly corrupt or out of date
[Checksum failed] /core/modules/ACARS/xacars.php did not match, possibly corrupt or out of date
-- Checked 183 files, found 5 errors

but the checkdb.php shows no problem :)

Checking phpvms_acarsdata...OK
Checking phpvms_adminlog...OK
Checking phpvms_aircraft...OK
Checking phpvms_airlines...OK
Checking phpvms_airports...OK
Checking phpvms_awards...OK
Checking phpvms_awardsgranted...OK
Checking phpvms_bids...OK
Checking phpvms_customfields...OK
Checking phpvms_downloads...OK
Checking phpvms_expenselog...OK
Checking phpvms_expenses...OK
Checking phpvms_fieldvalues...OK
Checking phpvms_financedata...OK
Checking phpvms_fuelprices...OK
Checking phpvms_groupmembers...OK
Checking phpvms_groups...OK
Checking phpvms_navdata...OK
Checking phpvms_news...OK
Checking phpvms_pages...OK
Checking phpvms_pilots...OK
Checking phpvms_pirepcomments...OK
Checking phpvms_pirepfields...OK
Checking phpvms_pireps...OK
Checking phpvms_pirepvalues...OK
Checking phpvms_ranks...OK
Checking phpvms_schedules...OK
Checking phpvms_sessions...OK
Checking phpvms_settings...OK
Checking phpvms_updates...OK

Link to comment
Share on other sites

  • Moderators

Open you DB(Data base, click on "phpvms_settings" table and make sure the email address you saved is there. If it's there then open core/common/PIREPData.class.php go down around line 753 where you see the following and make sure its there:

if (Config::Get('EMAIL_SEND_PIREP') === true) {

	    # 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"
		    ."Landing Rate: {$pirepdata['landingrate']}\n"."Filed using: {$pirepdata['source']}\n\n"
		    ."Comment: {$comment}\n\n"
		    ."Click to approve this pirep (admin must be signed in):\n"
		    .adminurl('/pirepadmin/approvepirep/'.$pirepid);

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

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

And let us know what you do. :D

Link to comment
Share on other sites

  • Moderators

I don't know about plesk and mailerphp but cpanel doesn't have such option and is working just fine. You may want to check with you host provider see if they have any idea about this but I think if you have email accounts and email service activated on your website then there shouldn't be any problems.

Have you been using phpVMS before or this is your first time?

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...