Hi! How do I send an email either as text/plain, or which includes line breaks? I've tried all kinds of text formats, I've tried various HTMLs, but the emails that get sent don't have any paragraphs / line breaks in them.

Thanks,
Ricky

Comments

pukku created an issue. See original summary.

scott_euser’s picture

Status: Active » Fixed

Hi Ricky,

Line breaks should appear when you allow html emails to be sent. If you use the smtp module, it is this box in the configuration:

Allow to send e-mails formatted as HTML

If you use mailsystem with swiftmailer, in the swiftmailer configuration it is under 'messages', either:

Respect provided e-mail format.

or:

Message format: HTML

Hope that helps!
Scott

pukku’s picture

Hi! I'm not using any extra modules -- it sends emails without extra modules, why do I need to have an additional module? Is there some way to make it send plain text emails? Looking through the module, it seems like the content-type is hard coded to 'text/html'...

scott_euser’s picture

Category: Support request » Feature request
Status: Fixed » Needs review
StatusFileSize
new3.3 KB

Changing this to feature request. Quick patch attached, please let me know if it works for you.

  • scott_euser committed 622b818 on 8.x-1.x
    Issue #2853611 by scott_euser: Send plain text email (or put line breaks...
scott_euser’s picture

Status: Needs review » Fixed

Removed dpm and committed on dev branch (not released)

pukku’s picture

Hi! I apologize for taking so long to get to this -- I got taken onto another project, and have only just now come back around to this. I'm happy to report that this worked for me, except that it has a `dpm` in it, but I can remove that (I think; I'm using composer, so hopefully manually changing things won't break everything...)

Many thanks for fixing this so quickly, even if I wasn't able to actually take advantage of that...

Ricky

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.