1
Text-only format for outbound SMTP messages
Source: chatwoot/chatwoot#3691 · opened by @Georgi-K
Context:
-> We are trying to implement a PGP-encrypted mail flow where Chatwoot is playing the role of the outbound SMTP client.
-> The latter is sending HTML formatted message to our Exchange Server which then is attempting to send to a PGP universal server.
Problem:
-> Chatwoot is sending HTML only formatted messages.
-> PGP universal is expecting Text-only format
As per this part , we are seeing that the format is always HTML:
def send_mail_with_liquid(*args)
mail(*args) do |format|
explored sending a multipart email containing both text type and html
parsing the html with nokogiri will remove the links as well
might also remove tags like b,li etc. so lets rethink about this later
format.text { Nokogiri::HTML(render(layout: false)).text }
format.html { render }
end
Is there an option to send text-only messages ? If not, can you please consider that feature?
-> We are trying to implement a PGP-encrypted mail flow where Chatwoot is playing the role of the outbound SMTP client.
-> The latter is sending HTML formatted message to our Exchange Server which then is attempting to send to a PGP universal server.
Problem:
-> Chatwoot is sending HTML only formatted messages.
-> PGP universal is expecting Text-only format
As per this part , we are seeing that the format is always HTML:
def send_mail_with_liquid(*args)
mail(*args) do |format|
explored sending a multipart email containing both text type and html
parsing the html with nokogiri will remove the links as well
might also remove tags like b,li etc. so lets rethink about this later
format.text { Nokogiri::HTML(render(layout: false)).text }
format.html { render }
end
Is there an option to send text-only messages ? If not, can you please consider that feature?
No pledges yet. Be the first to back this.
Comments
Similar requests
Add Support for Editing Messages in the Inbox API.
21 votes · 0 comments
feat: Ongoing campaign complex rules
3 votes · 0 comments
Forwards Messages with checkbox
2 votes · 0 comments
Add option for no auth for smtp in mail channel
1 vote · 0 comments
feat(api): Add parameter to skip conversation continuity emails on a per-message basis
1 vote · 0 comments
No comments yet.