wordpress cron: using wp_mail function
Today I had to solve the problem, that my wordpress cron throws an exception like this when sending an email via wp_mail function inside a cron scheduled event function. PHP Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: (setFrom) wordpress@’ in /var/www/clients/client2/web8/web/wp-base/wp-includes/class-phpmailer.php:1023 Stack trace: #0 /var/www/clients/client2/web8/web/wp-base/wp-includes/pluggable.php(352): PHPMailer->setFrom(‘wordpress@’, ‘WordPress’, false) #1 /var/www/clients/client2/web8/web/wp-base/wp-content/plugins/sheldon_misc/admin/class-sheldon_misc-admin.php(183): wp_mail(‘info@ask-sheldon.com….’, ‘Statusmailing i…’, […]