How to send email attachment to suppier request for quotation

Hello,

I’m having an issue with RFQ emails to suppliers - they are not receiving the RFQ as a PDF attachment.

I’ve already verified:

  • Print Settings → “Send Print as PDF” is enabled
  • Email account is configured correctly
  • Suppliers have valid email addresses

When I submit the RFQ, emails are sent to suppliers but without the PDF attachment. How can I ensure the RFQ PDF is automatically attached to the supplier emails? It only seem to work if I select Send Document Print but the formatting is not the best.

Frappe Framework: v15.84.0
ERPNext: v15.81.1

Any help would be appreciated!

If you are using Notification Doctype for sending mail, then at the bottom there is an option “Attach Print”. When you select this option, you have to select print format. PDF of this print format gets attached to mail.

If you are triggering mail from python code, then you can use below syntax:
pdf = frappe.attach_print(“Doctype Name”, doc.name, print_format=“Print Format Name”)
frappe.sendmail(
recipients=[recipient_mail_ids],
cc=[creator_email],
subject=subject,
message=message,
attachments=[pdf]
)

Hello and thank you for your reply.

Is there a way to send an rfq as pdf to suppliers?

Can you elaborate the task little bit? Which doctypes involved, when do you want to send the mail etc.