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

Customized Print Format Not showing properley when Attach document print in email #12455

Open
mertberber opened this Issue Jan 11, 2018 · 3 comments

Comments

Projects
None yet
5 participants
@mertberber
Copy link

mertberber commented Jan 11, 2018

When I send email from a document lets say from Sales Invoice, The attach document print does not show the customized print format correctly due to extensive Customization scripts.

I can print PDF without any issues but when I send email by using Attach document print, the invoice does not show correctly in the email as an attachment which I also cc to myself to check it out.

@mainul94

This comment has been minimized.

Copy link
Contributor

mainul94 commented Feb 15, 2018

attatch_pdf
link_pdf

@ewqiop

This comment has been minimized.

Copy link

ewqiop commented Mar 28, 2018

Fixed this for myself. To save someone some hassle check the html being passed to pdfkit.from_string and you will see that the url to bootstrap et al. is incorrect. It constructs the URL using site1.local as opposed to the domain.

Performed the following to fix from frappe-bench directory:

mv sites/site1.local sites/actual.domain
bench setup add-domain --site actual.domain actual.domain
bench setup nginx
sudo service nginx restart
bench restart

PDFs attached to email are now displayed correctly.

@clarkejj

This comment has been minimized.

Copy link
Contributor

clarkejj commented Mar 13, 2019

This email attachment issue occurs on v11 and python 3.5 but not on 2.7 https://discuss.erpnext.com/t/smtplib-smtpdataerror-501-bsyntax-error-line-too-long/46570/6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.