-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend Can't Trigger Invoice Email with PDF Attachment #1208
Comments
Is there someone already working on this ?I would be interested in implementing this feature |
Hi @McDonaldMusimwa, I don't think anybody implemented it yet, I appreciate you if you can implement it asap :) |
Hi @ahmadasakra i am trying to triangulate this bug this button highlighted is sending an email with an attached pdf invoice.Did someone work on the bug already or perhaps you are referring to a different bug. |
No, I mean this error. When I want to send the invoice on PDf, it cannot be sent. I tried to implement it and it worked correctly in the Backend via Postman, but when I connect it to the Frontend, I always face a problem. |
@ahmadasakra i see you said "This error" but there is no attachment, would you kindly upload a screenshot with the error , so that I can recreated the bug on my side . |
Is your feature request related to a problem? Please describe.
I implemented functionality for sending invoices via email in the backend, specifically in invoiceController/mail.js. The backend processes the request and sends the email successfully with Postman. However, the frontend cannot trigger this functionality in invoice ream, which prevents the user from sending invoices directly. Additionally, the email should include the PDF file of the invoice as an attachment, but this integration is not fully working from the frontend.
Describe the solution you'd like
I need the frontend to integrate seamlessly with the backend to enable invoice emailing. This involves:
the button in the invoice item that contais send via mail.
A frontend API call that correctly triggers the backend functionality in invoiceController/mail.js.
Passing the required data (e.g., invoice ID, recipient email) from the frontend to the backend.
Ensuring the PDF file of the invoice is properly generated and attached to the email.
The text was updated successfully, but these errors were encountered: