Author Topic: Message could not be sent  (Read 794 times)

justme1003

  • Newbie
  • *
  • Posts: 15
    • View Profile
Message could not be sent
« on: February 20, 2018, 08:22:03 PM »
Quote
Message could not be sent.Mailer Error: Could not instantiate mail function.
Register successful
We have received your application and we will process it within 24 hours! You will receive a new email once we have validated your application. (Make sure your email client allows mail from admin@flybywires.net - if you do not receive any email, please check your spam folder)

The above msg is what a new user sees when they register. They never get a email

I am trying to get this working so new users can register. can somoen please help me
« Last Edit: February 21, 2018, 03:05:26 AM by justme1003 »

VAM

  • Administrator
  • Hero Member
  • *****
  • Posts: 1328
    • View Profile
    • virtual Airlines Manager
Re: Message could nto be sent
« Reply #1 on: February 20, 2018, 11:04:08 PM »
did you change the email settings as suggested in the installation pdf?
VAM Creator and programmer.

justme1003

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Message could nto be sent
« Reply #2 on: February 21, 2018, 03:04:24 AM »
Quote
did you change the email settings as suggested in the installation pdf?

Yes


http://flybywires.net/vamcore/vam/index.php#myModal

justme1003

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Message could not be sent
« Reply #3 on: February 23, 2018, 03:37:52 PM »
Can someone please help me with this. I have no ideas and have have been updating and adding users direct to the database for months now. I need to have a solution on this and i can not seem to figure it out. I have posted on these forums several times but never seem to have anyone actual stick with me to help resolve the issue

I am fairly new to all this stuff and so its likely something simple but just do not know where to to start looking anymore

drgullen

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Message could not be sent
« Reply #4 on: February 23, 2018, 08:15:18 PM »
I'm confused by this a bit.  In your quote from your initial post, it says "Register Successful" but you then say you are manually adding people to the database.  That message usually indicates that the database was updated with the new user and is waiting to be activated.

The title of this thread is "Message could not be sent" but you are saying it's more than that, it's also that new registrars aren't ending up in the database, is that right?  If you do a test and use your own website to register yourself, ignore the email error for now, but check the database anyway -- do you not see a new entry in the gvausers table with a callsign of _NEW_ in there?

justme1003

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Message could not be sent
« Reply #5 on: February 24, 2018, 04:13:09 AM »
Here is what is happening with more details

The new user is being added to the database. But when the user creates the account he sees this msg.

Quote
Message could not be sent.Mailer Error: Could not instantiate mail function.
Register successful
We have received your application and we will process it within 24 hours! You will receive a new email once we have validated your application. (Make sure your email client allows mail from admin@flybywires.net - if you do not receive any email, please check your spam folder)

The user never gets a email

But the account is created in the database.

Now when i go to the website under administrator and activate the user here is what i get.

Quote
mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
Error: An Internal Error Has Occurred.

Stack Trace
CORE\Cake\Network\Email\MailTransport.php line 52 → MailTransport->_mail(string, string, string, string, null)
CORE\Cake\Network\Email\CakeEmail.php line 1173 → MailTransport->send(CakeEmail)
APP\Controller\GvausersController.php line 117 → CakeEmail->send(string)
[internal function] → GvausersController->edit(string)
CORE\Cake\Controller\Controller.php line 491 → ReflectionMethod->invokeArgs(GvausersController, array)
CORE\Cake\Routing\Dispatcher.php line 193 → Controller->invokeAction(CakeRequest)
CORE\Cake\Routing\Dispatcher.php line 167 → Dispatcher->_invoke(GvausersController, CakeRequest)
APP\webroot\index.php line 111 → Dispatcher->dispatch(CakeRequest, CakeResponse)
ROOT\index.php line 41 → require(string)

Also am i correct in thinking that when the user signs up they should recieve a automatic email from the site?

Also if the user forgets his/her password they should be able to use
Quote
Recover Password
. Here is what i get when a user uses this feature this is what the user sees and never does receive the email

Quote
Message could not be sentMailer Error: Could not instantiate mail function.

And also this

Quote
The new password is sent to your email address.

Its seems the msg that says its being sent does not mean it actual sent. just a generic msg. the first msg saying message could not be sent is where the problem is but no idea what the issue is or how to fix it

drgullen

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Message could not be sent
« Reply #6 on: February 24, 2018, 06:11:06 AM »
I would suggest you get help from whoever your hosting provider is.  The 503 error means that your email authentication isn't setup correctly.  Go through your host's help pages and search for SMTP or 503 error and then follow their directions on how to configure your email.  You could also open a help ticket with them (or have a chat session if they offer that) if you can't figure it out by yourself.

I think once you have configured your email properly, most if not all of these issues should resolve themselves.

justme1003

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Message could not be sent
« Reply #7 on: February 25, 2018, 04:49:32 PM »
thanks i will try that

justme1003

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Message could not be sent
« Reply #8 on: February 25, 2018, 07:26:43 PM »
I would suggest you get help from whoever your hosting provider is.  The 503 error means that your email authentication isn't setup correctly.  Go through your host's help pages and search for SMTP or 503 error and then follow their directions on how to configure your email.  You could also open a help ticket with them (or have a chat session if they offer that) if you can't figure it out by yourself.

I think once you have configured your email properly, most if not all of these issues should resolve themselves.


Ok i changed a few this around. in email.php i used smtp. I entered the correct username and password. Also entered the correct smtp server address

public $smtp = array(
      'transport' => 'Smtp',
      'from' => array('info@flybywires.net' => 'My Site'),
      'host' => 'smtp.xxxxx.com',
      'port' => 25,
      'timeout' => 30,
      'username' => 'info@flybywires.net',
      'password' => 'xxxxxxx',
      'client' => null,
      'log' => false,
      //'charset' => 'utf-8',
      //'headerCharset' => 'utf-8',

Also in GvausersController.php commented Line 111 and uncommented line 112

 Line 111 //$email = new CakeEmail('default');
 Line   112   $email = new CakeEmail('smtp');

Now i can in admin panel activate the user and assign a callsign to the user. However if the user forgets password and uses recover password i get the following error msg still. and the user does not seem to receive a email from the server