Hey All,
I’ll preface this with I know nothing about php tried just wont stick,
In email settings if I have chosen sendmail as my sending preference so as to use my own server, when send is click on in which file is the sendmail command as I wish to add an option to it?
Thanks
Regards
Graeme
1 Like
application/modules/mailer/controllers/Mailer.php
application/helpers/mailer_helper.php
application/modules/mailer/helpers/phpmailer_helper.php
That last file, changing function phpmail_send
is your best bet.
If you want to debug sending emails through your own server, PHPMailer has some debug options.
Adding dd()
somewhere in your code should show what you put in your dd()
and then die the script.
But to do that i would:
rm -Rf vendor composer.lock
composer install
The .zip file that belongs to any release of InvoicePlane doesn’t contain the “require-dev” from composer.json
by default. In order to execute your dd()
you’ll need those packages installed as well
Thanks Underdog,
Just wanting to add " -N success " to the sendmail command so clients get instant feed back, as with all invoicing the old I didn’t get lie.
Regards
Graeme
Instant feedback will be highly appreciated, so if you can make a pull-request, go ahead.
Howeverrrrr sending email is not really a command in the way it is in the Laravel world.
When i’m on an invoice and i click the menu option top right corner and click “send mail”, it’s purely functions that get executed.
The only “sendmail” command that i can think of is the “cron” that belongs to automatically sending mails for the recurring invoices.
If you make your issue belonging to the PR for instant feedback for the users while sending emails, both situations need to be dealt with: “cron” (that can happen any time of the day) and send mail from that menu on the invoice page.