Skip to content
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

Open
ahmadasakra opened this issue Jan 15, 2025 · 5 comments
Open

Frontend Can't Trigger Invoice Email with PDF Attachment #1208

ahmadasakra opened this issue Jan 15, 2025 · 5 comments

Comments

@ahmadasakra
Copy link

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.

@McDonaldMusimwa
Copy link

Is there someone already working on this ?I would be interested in implementing this feature

@ahmadasakra
Copy link
Author

Hi @McDonaldMusimwa, I don't think anybody implemented it yet, I appreciate you if you can implement it asap :)

@McDonaldMusimwa
Copy link

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.

Image

@ahmadasakra
Copy link
Author

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.

@McDonaldMusimwa
Copy link

@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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants