Getting an error when running the customer/email/account scheduler task

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
agandhi
Posts: 4
Joined: 25 Sep 2024, 07:36

Getting an error when running the customer/email/account scheduler task

Post by agandhi » 21 Jan 2025, 10:24

Hello,

I am getting this error: Uncaught TYPO3 Exception Aimeos\Base\Mail\Message\Typo3::from(): Argument #1 ($email) must be of type string, null given, called in /html/web/vendor/aimeos/ai-controller-jobs/src/Controller/Jobs/Mail.php on line 98
thrown in file /html/web/vendor/aimeos/ai-typo3/src/Base/Mail/Message/Typo3.php
in line 47 when running the job: customer/email/account

TYPO3 12.4.21
aimeos-typo3 24.7

I understood that it's trying to get the email from 'resource/email/from-email'. Where can I add this configuration? I added it in the scheduler like this:

plugin.tx_aimeos.settings {
client {
html {
resource {
email {
from-email = test-email@test-email.com
reply-email = test-email@test-email.com
bcc-email = test-email@test-email.com
}
}
}
}
}

But it throws the same error.

User avatar
aimeos
Administrator
Posts: 8467
Joined: 01 Jan 1970, 00:00

Re: Getting an error when running the customer/email/account scheduler task

Post by aimeos » 21 Jan 2025, 10:47

If you don't have a project specific Aimeos TYPO3 extension created and installed where you can add the e-mail address to the ./Resources/Private/Config/resource.php file, then add this to the TypoScript configuration field in your scheduler tasks:

Code: Select all

resource.email.from-email = test-email@test-email.com
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

agandhi
Posts: 4
Joined: 25 Sep 2024, 07:36

Re: Getting an error when running the customer/email/account scheduler task

Post by agandhi » 21 Jan 2025, 11:01

When I tried to add it to the configuration in scheduler task, I am getting this error: No resource configuration for "db" available
Last edited by agandhi on 21 Jan 2025, 11:05, edited 1 time in total.

User avatar
aimeos
Administrator
Posts: 8467
Joined: 01 Jan 1970, 00:00

Re: Getting an error when running the customer/email/account scheduler task

Post by aimeos » 21 Jan 2025, 11:02

./Resources/Private/Config/resource.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

agandhi
Posts: 4
Joined: 25 Sep 2024, 07:36

Re: Getting an error when running the customer/email/account scheduler task

Post by agandhi » 21 Jan 2025, 11:11

When I tried to add it to the configuration in scheduler task, I am getting this error: No resource configuration for "db" available

agandhi
Posts: 4
Joined: 25 Sep 2024, 07:36

Re: Getting an error when running the customer/email/account scheduler task

Post by agandhi » 21 Jan 2025, 12:47

Adding it to resource.php did it. Thank you!

User avatar
aimeos
Administrator
Posts: 8467
Joined: 01 Jan 1970, 00:00

Re: Getting an error when running the customer/email/account scheduler task

Post by aimeos » 21 Jan 2025, 12:55

Reminder: This must be added to a project specific Aimeos extension. If it's done in the ./vendor/aimeos/aimeos-typo3/ directory, it will be overwritten with the next update.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply