Controller email function not working, have tried everything. cake 2.0

This is my shameless asking for help with something that should be simple. After a week of trying , I don’t know what else to do. I have an email function in my controller that errors out when Im using good credentials in email.php `
the controller code:

ini_set('display_errors', '1');
App::uses('CakeEmail', 'Network/Email');
class LeadsController extends AppController {
public $helpers = array('Html', 'Form', 'Session');
public $components = array('Session', 'Flash', 'Email');
public function add() {
        if ($this->request->is('post')) {

            $Email = new CakeEmail();
            $Email->subject('Thanks for Contacting US at medpavilion');

            $emailContent = '<div style="background-color: #f2f2f2; padding: 20px;">
                <h2 style="color: #333;">Thank you for your submission!</h2>
                <p style="color: #333;">Please visit our website at <a href=""></a> for more information.</p>
                <p style="color: #333;">Best regards,</p>
                <p style="color: #333;">Your Company</p>

            if ($this->Lead->save($this->request->data)) {
                $this->Session->setFlash('Message Successfully Sent!.');
//. --------- end 

So, if I’m getting this error:

2023-07-14 01:22:02 Error: [SocketException] SMTP server did not accept the password.

Request URL: /leads/add

Stack Trace:

#0 /srv/ SmtpTransport->_auth()
#1 /srv/ SmtpTransport->send(Object(CakeEmail))
#2 /srv/ CakeEmail->send()
#3 [internal function]: LeadsController->add()
#4 /srv/ ReflectionMethod->invokeArgs(Object(LeadsController), Array)
#5 /srv/ Controller->invokeAction(Object(CakeRequest))
#6 /srv/ Dispatcher->_invoke(Object(LeadsController), Object(CakeRequest))
#7 /srv/ Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#8 {main}---------------------------

Does that mean Absolutely it’s a password issue and nothing else?

I should add that when I do this in the email.php: and set $Email->config(‘default’); in the controller,
no error, but no email either.

public $default = array(
  'transport' => 'Mail',
  'from' => '',
  //'charset' => 'utf-8',
  //'headerCharset' => 'utf-8',

It runs with no error and no error message but the email never gets there.