Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
[version -15] incompatible email QueueBuilder API, raw_html parameter not recognised | GoodFirstPicks

[version -15] incompatible email QueueBuilder API, raw_html parameter not recognised

frappe/frappe 0 comments 6d ago
View on GitHub
lowopenScope: clearSkill match: maybeFrappe / ERPNextPython

Why this is a good first issue

The `raw_html` parameter is not recognized in the email QueueBuilder API.

AI Summary

The issue involves a compatibility problem in the email QueueBuilder API where the `raw_html` parameter is not recognized. This appears to be a straightforward bug fix requiring updates to the API to accept the parameter. No major blockers are evident, but understanding the email stack's context is necessary.

Issue Description

Description of the issue

New sendmail API has been pulled into latest frappe, but the rest of the email stack is not compatible.

For example the raw_html parameter is not recognised

https://github.com/frappe/frappe/blob/61ab7e2b2409b293ffd3c8f72d730fa89b201332/frappe/email/__init__.py#L242

Context information (for bug reports)

Output of bench version

Frappe Framework: v15.103.0

Steps to reproduce the issue

  1. from frappe.email import sendmail
  2. sendmail(..., raw_html=True)

Observed result

Error below

Expected result

Allowed

Stacktrace / full error message

  File "apps/frappe/frappe/email/__init__.py", line 210, in sendmail
    builder = QueueBuilder(
      recipients = '[email protected]'
      sender = ''
      subject = 'subject'
      message = '<!DOCTYPE html>\n<html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml">\n<head>\n<title></title>\n<!--[if !mso]><!-->\n<meta content="IE=edge" http-equiv="X-UA-Compatible"/>\n<!--<![endif]-->\n<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>\n<meta content="width=device-width, initial-scale=1" name="viewport"/>\n<style type="text/css">\n    #outlook a {\n      padding: 0;\n    }\n\n    body {\n      margin: 0;\n      padding: 0;\n      -webkit-text-size-adjust: 100%;\n      -ms-text-size-adjust: 100%;\n    }\n\n    table,\n    td {\n      border-collapse: collapse;\n      mso-table-lspace: 0pt;\n      mso-table-rspace: 0pt;\n    }\n\n    img {\n      border: 0;\n      height: auto;\n      line-height: 100%;\n      outline: none;\n      text-decoration: none;\n      -ms-interpolation-mode: bicubic;\n    }\n\n    p {\n      display: block;\n      margin: 13px 0;\n    }\n  </style>\n<!--[if...
      as_markdown = False
      delayed = True
      unsubscribe_method = None
      unsubscribe_params = None
      unsubscribe_message = None
      add_unsubscribe_link = 1
      attach

GitHub Labels

bug

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • API compatibility
Loading labels...

Details

Points10 pts
Difficultylow
Scopeclear
Skill Matchmaybe
Test Focusedno