News:

AbanteCart v1.4.2 is released.

Main Menu
support

Email error

Started by lovue, April 14, 2025, 02:46:46 PM

Previous topic - Next topic

lovue

Hello,

My customers are not getting their order summary email after purchasing from my website. Here are the logs from my server:

2025-04-14 16:19:42 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
2025-04-14 16:28:34 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
2025-04-14 16:28:35 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()

Email functionality was working after upgrading Abantecart to v1.4.1 but today is when we noticed the errors.

abolabo

#1
Quote from: lovue on April 14, 2025, 02:46:46 PM
Hello,

My customers are not getting their order summary email after purchasing from my website. Here are the logs from my server:

2025-04-14 16:19:42 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
2025-04-14 16:28:34 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
2025-04-14 16:28:35 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()

Email functionality was working after upgrading Abantecart to v1.4.1 but today is when we noticed the errors.

please open admin->system->settings->system -> button phpinfo() at the heading,
then find directives disable_functions and sendmail_***
Please post them here with values.

+ what settings of mailer do you have, "Inner mailer", "smtp" or "config"?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

lovue

disable_functions   exec,passthru,shell_exec,system   exec,passthru,shell_exec,system
sendmail_from   no value   no value
sendmail_path   /usr/sbin/sendmail -t -i   /usr/sbin/sendmail -t -i

The setting for mailer is inner mailer



Quote from: abolabo on April 14, 2025, 04:31:45 PM
Quote from: lovue on April 14, 2025, 02:46:46 PM
Hello,

My customers are not getting their order summary email after purchasing from my website. Here are the logs from my server:

2025-04-14 16:19:42 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
2025-04-14 16:28:34 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
2025-04-14 16:28:35 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()

Email functionality was working after upgrading Abantecart to v1.4.1 but today is when we noticed the errors.

please open admin->system->settings->system -> button phpinfo() at the heading,
then find directives disable_functions and sendmail_***
Please post them here with values.

+ what settings of mailer do you have, "Inner mailer", "smtp" or "config"?

abolabo

Quote from: lovue on April 15, 2025, 11:48:41 AM
disable_functions   exec,passthru,shell_exec,system   exec,passthru,shell_exec,system
sendmail_from   no value   no value
sendmail_path   /usr/sbin/sendmail -t -i   /usr/sbin/sendmail -t -i

The setting for mailer is inner mailer


so wierd. I cannot to replicate this bug on my host with the same settings.
Can you help me with debugging?
Please replace your file public_html/core/lib/mail.php
with attached.  ( added trace in the error message ).
Then replicate the error and post error message here.
Thank you.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

lovue

#4
When I do an order status update and notifying the customer:

2025-04-16 8:09:51 - App Warning: AbanteCart core v.1.4.1 Resize image error. File: /home/fabulouspetsuppl/public_html/resources/image/2f/db/7.jpeg in /home/fabulouspetsuppl/public_html/core/engine/resources.php on line 368
2025-04-16 16:16:05 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
#0 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/SendmailTransport.php(115): Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream->initialize()
#1 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/AbstractTransport.php(69): Symfony\Component\Mailer\Transport\SendmailTransport->doSend(Object(Symfony\Component\Mailer\SentMessage))
#2 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/SendmailTransport.php(78): Symfony\Component\Mailer\Transport\AbstractTransport->send(Object(Symfony\Component\Mime\Email), Object(Symfony\Component\Mailer\DelayedEnvelope))
#3 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Mailer.php(38): Symfony\Component\Mailer\Transport\SendmailTransport->send(Object(Symfony\Component\Mime\Email), NULL)
#4 /home/fabulouspetsuppl/public_html/core/lib/mail.php(332): Symfony\Component\Mailer\Mailer->send(Object(Symfony\Component\Mime\Email))
#5 /home/fabulouspetsuppl/public_html/admin/model/sale/order.php(1185): AMail->send()
#6 /home/fabulouspetsuppl/public_html/admin/controller/pages/sale/order.php(1156): ModelSaleOrder->addOrderHistory('48', Array)
#7 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php(306): ControllerPagesSaleOrder->history()
#8 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php(341): ADispatcher->dispatch(Object(ControllerCommonPage))
#9 /home/fabulouspetsuppl/public_html/core/engine/page.php(110): ADispatcher->dispatch()
#10 /home/fabulouspetsuppl/public_html/core/engine/router.php(204): APage->build('common/page')
#11 /home/fabulouspetsuppl/public_html/core/engine/router.php(86): ARouter->route()
#12 /home/fabulouspetsuppl/public_html/index.php(101): ARouter->processRoute('sale/order/hist...')
#13 {main}
2025-04-16 16:16:05 - AMail. transport: Symfony\Component\Mailer\Transport\SendmailTransport: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
#0 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/SendmailTransport.php(115): Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream->initialize()
#1 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/AbstractTransport.php(69): Symfony\Component\Mailer\Transport\SendmailTransport->doSend(Object(Symfony\Component\Mailer\SentMessage))
#2 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/SendmailTransport.php(78): Symfony\Component\Mailer\Transport\AbstractTransport->send(Object(Symfony\Component\Mime\Email), Object(Symfony\Component\Mailer\DelayedEnvelope))
#3 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Mailer.php(38): Symfony\Component\Mailer\Transport\SendmailTransport->send(Object(Symfony\Component\Mime\Email), NULL)
#4 /home/fabulouspetsuppl/public_html/core/lib/mail.php(332): Symfony\Component\Mailer\Mailer->send(Object(Symfony\Component\Mime\Email))
#5 /home/fabulouspetsuppl/public_html/core/lib/im.php(672): AMail->send(true)
#6 /home/fabulouspetsuppl/public_html/core/lib/im_manager.php(369): AMailIM->send('vue.vicky@gmail...', 'Fabulous Pet Su...', '', Array, Array)
#7 /home/fabulouspetsuppl/public_html/admin/model/sale/order.php(1217): AIMManager->sendToGuest('48', Array)
#8 /home/fabulouspetsuppl/public_html/admin/controller/pages/sale/order.php(1156): ModelSaleOrder->addOrderHistory('48', Array)
#9 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php(306): ControllerPagesSaleOrder->history()
#10 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php(341): ADispatcher->dispatch(Object(ControllerCommonPage))
#11 /home/fabulouspetsuppl/public_html/core/engine/page.php(110): ADispatcher->dispatch()
#12 /home/fabulouspetsuppl/public_html/core/engine/router.php(204): APage->build('common/page')
#13 /home/fabulouspetsuppl/public_html/core/engine/router.php(86): ARouter->route()
#14 /home/fabulouspetsuppl/public_html/index.php(101): ARouter->processRoute('sale/order/hist...')
#15 {main}

When I try to send an email to a single customer:

2025-04-16 16:56:37 - App Error: AbanteCart core v.1.4.1 AMail Errors: Call to undefined function Symfony\Component\Mailer\Transport\Smtp\Stream\proc_open()
#0 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/SendmailTransport.php(115): Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream->initialize()
#1 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/AbstractTransport.php(69): Symfony\Component\Mailer\Transport\SendmailTransport->doSend(Object(Symfony\Component\Mailer\SentMessage))
#2 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Transport/SendmailTransport.php(78): Symfony\Component\Mailer\Transport\AbstractTransport->send(Object(Symfony\Component\Mime\Email), Object(Symfony\Component\Mailer\DelayedEnvelope))
#3 /home/fabulouspetsuppl/public_html/vendor/symfony/mailer/Mailer.php(38): Symfony\Component\Mailer\Transport\SendmailTransport->send(Object(Symfony\Component\Mime\Email), NULL)
#4 /home/fabulouspetsuppl/public_html/core/lib/mail.php(332): Symfony\Component\Mailer\Mailer->send(Object(Symfony\Component\Mime\Email))
#5 /home/fabulouspetsuppl/public_html/admin/controller/task/sale/contact.php(256): AMail->send()
#6 /home/fabulouspetsuppl/public_html/admin/controller/task/sale/contact.php(162): ControllerTaskSaleContact->_send_email('mouafeng@gmail....', Array)
#7 /home/fabulouspetsuppl/public_html/admin/controller/task/sale/contact.php(74): ControllerTaskSaleContact->_send(174, 34086)
#8 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php(306): ControllerTaskSaleContact->sendEmail(174, 34086, Array)
#9 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php(202): ADispatcher->dispatch('')
#10 /home/fabulouspetsuppl/public_html/core/lib/task_manager.php(250): ADispatcher->dispatchGetOutput()
#11 /home/fabulouspetsuppl/public_html/task.php(115): ATaskManager->runStep(Array)
#12 {main}
Trace:
#0 /home/fabulouspetsuppl/public_html/admin/controller/task/sale/contact.php on line 259
#1 /home/fabulouspetsuppl/public_html/admin/controller/task/sale/contact.php on line 162
#2 /home/fabulouspetsuppl/public_html/admin/controller/task/sale/contact.php on line 74
#3 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php on line 306
#4 /home/fabulouspetsuppl/public_html/core/engine/dispatcher.php on line 202


Quote from: abolabo on April 16, 2025, 02:52:19 AM
Quote from: lovue on April 15, 2025, 11:48:41 AM
disable_functions   exec,passthru,shell_exec,system   exec,passthru,shell_exec,system
sendmail_from   no value   no value
sendmail_path   /usr/sbin/sendmail -t -i   /usr/sbin/sendmail -t -i

The setting for mailer is inner mailer


so wierd. I cannot to replicate this bug on my host with the same settings.
Can you help me with debugging?
Please replace your file public_html/core/lib/mail.php
with attached.  ( added trace in the error message ).
Then replicate the error and post error message here.
Thank you.

abolabo

You should to ask your hosting provider why they disabled function proc_open() on your host.  Some hosting providers do that by security reasons.
Or ask them how to enable it via cPanel.
Also you can try to setup dsn inside your system/config.php file and change mailer setting on admin-side to "take from config"


// details about allowed DSN settings  https://symfony.com/doc/6.0/mailer.html#transport-setup
const MAILER = [
    //'dsn' => null,
    // OR
    'protocol' => 'smtp', // or ses+smtp, gmail+smtp, mandrill+smtp, mailgun+smtp, mailjet+smtp, postmark+smtp, sendgrid+smtp, sendinblue+smtp, ohmysmtp+smtp
    //we use "username" also as ID, KEY, API_TOKEN, ACCESS_KEY
    'username' => 'merchant@yourdomain.com',
    'password' => '****super-secret-password****',
    'host'     => 'your-hostname',
    'port'     => 465 //or 587 etc
];



"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -