We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 389d068 commit 4998b26Copy full SHA for 4998b26
api/data_ingestion/internal/email.py
@@ -189,13 +189,11 @@ def send_dq_report_email_with_pdf(body: EmailRenderRequest[DqReportRenderRequest
189
"filename", f"data-quality-report-{body.props.country}.pdf"
190
)
191
192
- # Decode PDF and create attachment
193
- pdf_content = base64.b64decode(pdf_base64)
194
-
+ # Use base64 string directly as required by Mailjet v3 send API
195
attachment = {
196
"Content-type": "application/pdf",
197
"Filename": pdf_filename,
198
- "content": pdf_content,
+ "content": pdf_base64,
199
}
200
201
# Send email with PDF attachment
0 commit comments