PHP Mailer Error

I get the following error when accepting applications
Warning: require(/public_html/waridischool.ac.ke/sis/lib/PHPMailer/class.phpmailer.php): failed to open stream: No such file or directory in /home/jmsperu1/public_html/waridischool.ac.ke/sis/modules/Students/applicationForm_manage_accept.php on line 24

Fatal error: require(): Failed opening required ‘/public_html/waridischool.ac.ke/sis/lib/PHPMailer/class.phpmailer.php’ (include_path=‘:/usr/local/php70/lib/php’) in /home/jmsperu1/public_html/waridischool.ac.ke/sis/modules/Students/applicationForm_manage_accept.php on line 24

James,

Are you using v12 or v13?

Ross

The one released June 2016. 12 I guess

OK, that would be v12. So, do you have the file class.phpmailer.php in the folder /lib/PHPMailer/ if you look in the file system of your server OS?

Hello, the file is there. Supposed mails are hosted by suppose office 365 of Google Suite where do I add the SMTP settings?

James,

SMTP settings are a new feature in v13, and can be found under Admin > System Admin in the main menu and then Third Party Settings in the module menu. v13 is due for release on January 20th 2017 (as I believe you know), and you can see this feature in the development branch already.

Thanks,

Ross

Hi,

We are attempting to send emails automatically to parents once their application has been approved. However, there seems to be an issue when attempting to do this.

We selected the below and setup the smtp mail settings already but we keep getting error msg regarding the sent mail.

Automatically inform parents of their Gibbon login details by email?

Parent Welcome Email
A welcome email could not be sent to Jill Done.

Could you help with this?

Pl.ease see error log

[Sun Jan 29 14:23:14 2017] [error] [client 72.252.198.39] PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=dallas137.arvixeshared.com' did not match expected CN=localhost’ in /home/public_html/domain.com/sms/lib/PHPMailer/class.smtp.php on line 355, referer: http://domain.com/index.php?q=/modules/Students/applicationForm_manage_accept.php&gibbonApplicationFormID=000000000004&gibbonSchoolYearID=022&search=
[Sun Jan 29 14:22:12 2017] [error] [client 72.252.198.39] PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=dallas137.arvixeshared.com' did not match expected CN=localhost’ in /home/public_html/domain.com//sms/lib/PHPMailer/class.smtp.php on line 355, referer: http://domain.com//?q=/modules/Students/applicationForm.php
[Sun Jan 29 14:22:12 2017] [error] [client 72.252.198.39] PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=dallas137.arvixeshared.com' did not match expected CN=localhost’ in /home/public_html/domain.com/sms/lib/PHPMailer/class.smtp.php on line 355, referer: http://domain.com/?q=/modules/Students/applicationForm.php

I also host with arvixe, could it be a problem with them?

I’m using gmail for my emails

James, to enter the SMTP information, please make sure you are using v13, and then go to Admin > School Admin in the main menu, followed by Third Party Settings in the module menu.

rprice1978, I would look at using Google’s servers to send the mail out, rather than your host (some hosts don’t allow this on shared servers in order to control performance issues. Check out this Google guide and then go to Admin > School Admin in the main menu, followed by Third Party Settings in the module menu. Ross.

I did a fresh reinstall: rprice1978 I can help you if you have not resolved yours