Coder Social home page Coder Social logo

sendrecurringinvoicebymail's People

Contributors

beetix avatar bugness-chl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sendrecurringinvoicebymail's Issues

No scheduled job

I've installed the module using the release here on Github, but in the scheduled jobs module, there's no job to run the class. Is that how it is supposed to be, is it a bug or am I missing something?

Mail sent not in html

Hi,

I test your module with mail template in HTML, but mail content received not in HTML.
Possible to have this feature ?
Thanks in advance.

Settings unavailable

Using Dolibarr 13.0.0, i am unable to find any settings für this module.
I edited the template text inside the database in order to use module for my use case.

Is there any option to set a specific template to one recurring invoice?
e.g. rec_invoice_template_customer1: E-Mail Template invoice_sepa
rec_invoice_template_customer2: E-Mail template invoice_normal

Thanks!

[CSRF] Issue saving settings

Hello!
I was able to install the module but I have an error saving settings on 'Sending by email'.
How can I fix this? My server is not behind a proxy :(

Token not provided refers for the user token to put in the cron command?

Access to this page this way (POST method or GET with a sensible value for 'action' parameter) is refused by CSRF protection in main.inc.php. Token not provided. If you access your server behind a proxy using url rewriting and the parameter is provided by caller, you might check that all HTTP header are propagated (or add the line $dolibarr_nocsrfcheck=1 into your conf.php file or MAIN_SECURITY_CSRF_WITH_TOKEN to 0 instead of 2 into setup).

Thanks!

Fails with 18.0.4

Hi,

i run your code on my setup and it worked pretty cool since month. Now I updated from 17.0.3 to 18.0.4 and without any other change recurring job fails with:

cron_run_jobs.php cronjobid: 1 priority=50 entity=1 label=RecurringInvoicesJob - qualifiedPHP Warning:  Undefined property: TCPDI::$page_largeur in /var/www/VHOST-hpanel-SSL/demo01/core/lib/pdf.lib.php on line 1255
PHP Warning:  Undefined property: TCPDI::$margin_left in /var/www/VHOST-hpanel-SSL/demo01/core/lib/pdf.lib.php on line 1255
PHP Warning:  Undefined property: TCPDI::$margin_right in /var/www/VHOST-hpanel-SSL/demo01/core/lib/pdf.lib.php on line 1255
PHP Warning:  Undefined array key 0 in /var/www/VHOST-hpanel-SSL/demo01/core/class/CMailFile.class.php on line 306
PHP Fatal error:  Uncaught TypeError: preg_split(): Argument #2 ($subject) must be of type string, array given in /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php:312
Stack trace:
#0 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php(312): preg_split()
#1 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php(259): Swift_Mime_Headers_AbstractHeader->getEncodableWordTokens()
#2 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/UnstructuredHeader.php(103): Swift_Mime_Headers_AbstractHeader->encodeWords()
#3 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderSet.php(309): Swift_Mime_Headers_UnstructuredHeader->getFieldBody()
#4 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(529): Swift_Mime_SimpleHeaderSet->toString()
#5 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(601): Swift_Mime_SimpleMimeEntity->toByteStream()
#6 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Message.php(162): Swift_Mime_SimpleMessage->toByteStream()
#7 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(400): Swift_Message->toByteStream()
#8 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(502): Swift_Transport_AbstractSmtpTransport->streamMessage()
#9 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(517): Swift_Transport_AbstractSmtpTransport->doMailTransaction()
#10 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(206): Swift_Transport_AbstractSmtpTransport->sendTo()
#11 /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mailer.php(71): Swift_Transport_AbstractSmtpTransport->send()
#12 /var/www/VHOST-hpanel-SSL/demo01/core/class/CMailFile.class.php(1165): Swift_Mailer->send()
#13 /var/www/VHOST-hpanel-SSL/demo01/custom/sendrecurringinvoicebymail/class/actions_sendrecurringinvoicebymail.class.php(166): CMailFile->sendfile()
#14 /var/www/VHOST-hpanel-SSL/demo01/core/class/hookmanager.class.php(254): Actionssendrecurringinvoicebymail->afterCreationOfRecurringInvoice()
#15 /var/www/VHOST-hpanel-SSL/demo01/compta/facture/class/facture-rec.class.php(1403): HookManager->executeHooks()
#16 /var/www/VHOST-hpanel-SSL/demo01/cron/class/cronjob.class.php(1290): FactureRec->createRecurringInvoices()
#17 /var/www/VHOST-hpanel-SSL-scripts-demo01/extra/scripts/cron/cron_run_jobs.php(257): Cronjob->run_jobs()
#18 {main}
  thrown in /var/www/VHOST-hpanel-SSL/demo01/includes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php on line 312

I already tried to find which of their changes causes the problem, but have not found anything helpful. I use Swiftmailer because smtp/smtps lib does not work with my sendmail setup. All other mails out of 18.0.4 works. So creating the invoice manually, even with the same mail template and subject, works fine.

Thank you for any hints.

HTML overriding template doesn't format properly the resulting email

Hello!
I'm encountering issues while attempting to override the global template. When I paste HTML and select 'Auto-select' or 'HTML', the resulting email doesn't get properly formatted.

22
HTML override

33
Results

Environment:
Doli 19.0.1
PHP 8.0.30
Ubuntu 22.04
sendrecurringinvoicebymail 0.3.4
Default mail body's format -1. (auto-select)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.