Jump to content

Class SMTP not found


oswaldo

Recommended Posts

Hi guys.

I installed phpvms and when i try to send a Mass email i receive the message below.

Anyone can help me?

 

My local.config.php is

# Email Settings
Config::Set('EMAIL_FROM_NAME', 'Vatsim Brasil Airlines');
Config::Set('EMAIL_FROM_ADDRESS', 'noreply@vatsim.net.br');

Config::Set('EMAIL_USE_SMTP', true);
# Add multiple SMTP servers by separating them with ;
Config::Set('EMAIL_SMTP_SERVERS', 'smtp.sendgrid.net');
Config::Set('EMAIL_SMTP_PORT', '587');
Config::Set('EMAIL_SMTP_USE_AUTH', true);
Config::Set('EMAIL_SMTP_USER', 'user');
Config::Set('EMAIL_SMTP_PASS', 'pass');
 

 

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'SMTP' not found in /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php:1520\nStack trace:\n#0 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1603): PHPMailer->getSMTPInstance()\n#1 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1540): PHPMailer->smtpConnect(Array)\n#2 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1335): PHPMailer->smtpSend('Date: Tue, 9 Ma...', 'This is a multi...')\n#3 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1213): PHPMailer->postSend()\n#4 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/classes/Util.class.php(276): PHPMailer->send()\n#5 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/admin/modules/MassMailer/MassMailer.php(99): Util::SendEmail('oswaldobiolo@ho...', 'teste', '<html><head></h...')\n#6 /var/www/vhosts/vatbrz.net.br/vms.vatb...\n', referer: http://vms.vatbrz.net.br/admin/index.php/massmailer

Link to comment
Share on other sites

  • 2 weeks later...

I am having this same problem.  I downloaded the zip file again, extracted, copied to server.  Error says:

Fatal error: Class 'SMTP' not found in C:\HostingSpaces\SchoolSystems, LLC\myschoolsystems.com\wwwroot\include_files\PHPMailer\PHPMailer_v5.5.23\class.phpmailer.php on line 1520

 

my code looks like: 

  ini_set ("include_path", "include_files/PHPMailer/PHPMailer_v5.5.23/");
  require ("PHPMailerAutoload.php");

  $mailer = new PHPMailer();

  $mailer -> IsSMTP();
  $mailer -> Host = 'smtp.mandrillapp.com';
  $mailer -> SMTPAuth = true;
  $mailer -> Username = 'myemail@mydomain.com';
  $mailer -> Password = 'mypassword';
  $mailer -> SMTPSecure = 'tls';
  $mailer -> Port = 587;
  $mailer -> IsHTML(true);

in my folder I have these files, no subfolders:

  class.phpmailer.php
  class.phpmaileroauth.php
  class.phpmaileroauthgoogle.php
  class.pop3.php
  class.smtp.php
  composer.json
  composer.lock
  get_auth_token.php
  LICENSE
  PHPMailerAutoload.php
  VERSION

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Moderators
On 5/9/2017 at 8:26 AM, oswaldo said:

Hi guys.

I installed phpvms and when i try to send a Mass email i receive the message below.

Anyone can help me?

 

My local.config.php is

# Email Settings
Config::Set('EMAIL_FROM_NAME', 'Vatsim Brasil Airlines');
Config::Set('EMAIL_FROM_ADDRESS', 'noreply@vatsim.net.br');

Config::Set('EMAIL_USE_SMTP', true);
# Add multiple SMTP servers by separating them with ;
Config::Set('EMAIL_SMTP_SERVERS', 'smtp.sendgrid.net');
Config::Set('EMAIL_SMTP_PORT', '587');
Config::Set('EMAIL_SMTP_USE_AUTH', true);
Config::Set('EMAIL_SMTP_USER', 'user');
Config::Set('EMAIL_SMTP_PASS', 'pass');
 

 

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'SMTP' not found in /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php:1520\nStack trace:\n#0 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1603): PHPMailer->getSMTPInstance()\n#1 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1540): PHPMailer->smtpConnect(Array)\n#2 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1335): PHPMailer->smtpSend('Date: Tue, 9 Ma...', 'This is a multi...')\n#3 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/lib/phpmailer/class.phpmailer.php(1213): PHPMailer->postSend()\n#4 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/core/classes/Util.class.php(276): PHPMailer->send()\n#5 /var/www/vhosts/vatbrz.net.br/vms.vatbrz.net.br/admin/modules/MassMailer/MassMailer.php(99): Util::SendEmail('oswaldobiolo@ho...', 'teste', '<html><head></h...')\n#6 /var/www/vhosts/vatbrz.net.br/vms.vatb...\n', referer: http://vms.vatbrz.net.br/admin/index.php/massmailer

You are using an email address that is not associated with your domain. Try using an email address that is at your domain on your installation. (ex. yourname@yourdomain.com)

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