Skip to content

[Bug]: Fix "text/plain" Content-Type in emails #2156

@maltfield

Description

@maltfield

Issue Description

This ticket is a bug report for missing content in the "text/plain" Content-Type in emails sent by OpenSign.

Expected Behavior

OpenSign should send emails that can be read on text-only email clients, or email clients that have html disabled (eg for security).

The contents of the text/plain content-type should be human-readable and include a URL to the document that the user can copy/paste into their web browser.

Current Behavior

The emails sent by OpenSign currently include multiple Content-Types

  1. text/plain
  2. text/html

Consider, for example, this email that was sent to me by OpenSign

----_NmP-ef7d96f9353ac13d-Part_1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

mail
----_NmP-ef7d96f9353ac13d-Part_1
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D'Content-Type' content=3D'text/html;charset=
=3DUTF-8' /></head><body>...
...
...</p>
----_NmP-ef7d96f9353ac13d-Part_1--

Note that the text/html section above was edited for brevity and privacy. And note that the text/plain section was not edited at all.

Important to note, however, is that the html contents (virtually unreadable in my email client) does contain a link to a document to be signed (though the encoding is so horribly broken that I can't click it or copy/paste it).

And the text/plain section's contents is literally just mail -- that's the bug.

Steps to reproduce

  1. Create account on https://app.opensignlabs.com/
  2. Login
  3. Create a template
  4. Create a contact
  5. Use template and email to contact
  6. See email's text/plain contents doesn't contain the message; it literally just says mail

Screenshots of the issue(optional)

No response

Operating System [e.g. MacOS Sonoma 14.1, Windows 11]

Debian Linux

What browsers are you seeing the problem on?

Chrome, Firefox

What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6]

I'm using OpenSign hosted by OpenSignLabs. And this isn't in the browser. It's in thunderbird.

What environment are you seeing the problem on?

Production (app.opensignlabs.com)

Please check the boxes that apply to this issue report.

  • I have searched the existing issues & discussions to make sure that this is not a duplicate.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I have searched the existing issues & discussions to make sure that this is not a duplicate.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions