php-cron-scheduler icon indicating copy to clipboard operation
php-cron-scheduler copied to clipboard

Send output in body instead of attachment

Open rafal-sokolowski opened this issue 6 years ago • 4 comments

It'd be great to have the ability to insert a job output directly in the message body, not as an attachment. I receive lots of emails with the output which is always a short plain text and it's quite inconvenient to open every single one.

Besides, it looks like the body specified in the job is always replaced with "Cronjob output attached" defined inaddPart method in Mailer.php

$scheduler->configure([
    'email' => [
        'subject' => 'Test subject',
        'body' => 'Test body',
    ]
]);

/src/GO/Traits/Mailer.php ->setBody($config['body'], 'text/html') ->addPart('<q>Cronjob output attached</q>', 'text/html');

rafal-sokolowski avatar Oct 30 '18 11:10 rafal-sokolowski

Any news on if this enhancement will ever make it to Master @peppeocchi ?

yratof avatar Dec 05 '18 10:12 yratof

how do you configure this to work?

TwinMist avatar Aug 01 '19 10:08 TwinMist

how does this work?

TwinMist avatar Nov 01 '19 13:11 TwinMist

This would be indeed great feature! I receive tons of Crons and opening attachments each time is real pain :(

pdolinaj avatar Aug 05 '23 18:08 pdolinaj