Problem to send email

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Problem to send email

Postby gabriele.cecchi » 15. May 2021 15:04

Hi all,
i can't send mail from vm 8.0.6 installed on osx high sierra 10.13
I've created the example in faqs under htdocs and here is the errors:

[15-May-2021 15:42:27 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function connect() on null in /opt/lampp/lib/php/Net/SMTP.php:447
Stack trace:
#0 /opt/lampp/lib/php/Mail/smtp.php(385): Net_SMTP->connect(NULL)
#1 /opt/lampp/lib/php/Mail/smtp.php(271): Mail_smtp->getSMTPObject()
#2 /opt/lampp/lib/php/Mail/smtp.php(258): Mail_smtp->send_or_fail('gabriele.cecchi...', Array, 'test')
#3 /opt/lampp/htdocs/mail.php(23): Mail_smtp->send('gabriele.cecchi...', Array, 'test')
#4 {main}
thrown in /opt/lampp/lib/php/Net/SMTP.php on line 447
[15-May-2021 15:42:27 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function write() on null in /opt/lampp/lib/php/Net/SMTP.php:264
Stack trace:
#0 /opt/lampp/lib/php/Net/SMTP.php(302): Net_SMTP->_send('QUIT\r\n')
#1 /opt/lampp/lib/php/Net/SMTP.php(491): Net_SMTP->_put('QUIT')
#2 /opt/lampp/lib/php/Mail/smtp.php(432): Net_SMTP->disconnect()
#3 /opt/lampp/lib/php/Mail/smtp.php(230): Mail_smtp->disconnect()
#4 [internal function]: Mail_smtp->__destruct()
#5 {main}
thrown in /opt/lampp/lib/php/Net/SMTP.php on line 264

With xampp installed locally in osx system it works (this version and the old previous 5.16).
can someone help me ?
thanks

Regards,
Gabriele
gabriele.cecchi
 
Posts: 1
Joined: 15. May 2021 14:51
XAMPP version: XAMPP-VM / PHP 8.0.6
Operating System: OS X

Re: Problem to send email

Postby davegarrett324 » 07. April 2023 14:52

Did you get this issue resolved?

I have the same problem.

<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function connect() on null in /opt/lampp/lib/php/Net/SMTP.php:447
Stack trace:
#0 /opt/lampp/lib/php/Mail/smtp.php(385): Net_SMTP-&gt;connect(NULL)
#1 /opt/lampp/lib/php/Mail/smtp.php(271): Mail_smtp-&gt;getSMTPObject()
#2 /opt/lampp/lib/php/Mail/smtp.php(258): Mail_smtp-&gt;send_or_fail('dave32831954@gm...', Array, 'test')
#3 /opt/lampp/htdocs/test_mail.php(23): Mail_smtp-&gt;send('dave32831954@gm...', Array, 'test')
#4 {main}
thrown in <b>/opt/lampp/lib/php/Net/SMTP.php</b> on line <b>447</b><br />
<br />
<b>Fatal error</b>: Uncaught Error: Call to a member function write() on null in /opt/lampp/lib/php/Net/SMTP.php:264
Stack trace:
#0 /opt/lampp/lib/php/Net/SMTP.php(302): Net_SMTP-&gt;_send('QUIT\r\n')
#1 /opt/lampp/lib/php/Net/SMTP.php(491): Net_SMTP-&gt;_put('QUIT')
#2 /opt/lampp/lib/php/Mail/smtp.php(432): Net_SMTP-&gt;disconnect()
#3 /opt/lampp/lib/php/Mail/smtp.php(230): Mail_smtp-&gt;disconnect()
#4 [internal function]: Mail_smtp-&gt;__destruct()
#5 {main}
thrown in <b>/opt/lampp/lib/php/Net/SMTP.php</b> on line <b>264</b><br />
davegarrett324
 
Posts: 1
Joined: 07. April 2023 14:48
XAMPP version: 8.2.0-0
Operating System: Ubuntu 22.04

Re: Problem to send email

Postby fredcoxjr » 27. March 2024 00:39

Hello All,

I am quite new here so I am sorry if it is basic question, but I am facing the same error.
Have you guys found a solution for that ?

BR, Fred
fredcoxjr
 
Posts: 1
Joined: 27. March 2024 00:35
XAMPP version: 8.2.4
Operating System: Mac


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 17 guests