Python Forum
SMTPLIB MIMEText HTML - Words being broken
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SMTPLIB MIMEText HTML - Words being broken
#1
I have a PYTHON script that sends emails in HTML format and I am seeing words being broken (not hyphenated) / with spaces in them.
The email text is very lengthy (> 2,000 characters) and this may be the root cause, in which case, how do I get around this?

Example Text 1: Once upon a time there was a developer
Email Text 1: Once upon a ti me there was a developer

Example Text 2: Who just couldn't figure out why
Email Text 2: Who ju st couldn't fi gure out why (notice that 2 words are broken)

Another example is where I have <a href="https://google.co.uk">Click Here</a> in the email text and it just so happens that the space is inserted between "<" and "a", to the resultant email has the following displayed:

< a href="https://google.co.uk">Click Here</a>

Instead of displaying Click Here

Any help would be very much appreciated!
Reply


Messages In This Thread
SMTPLIB MIMEText HTML - Words being broken - by GaryK - Apr-12-2018, 11:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Send email with smtp without using Mimetext mgallotti 0 729 Feb-01-2023, 04:43 AM
Last Post: mgallotti
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 964 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
  Why is copying and pasting a block now broken? WagmoreBarkless 2 1,441 May-05-2022, 05:01 AM
Last Post: WagmoreBarkless
  Why is copying and pasting a block now broken? WagmoreBarkless 1 1,264 May-04-2022, 11:40 PM
Last Post: Larz60+
  Sending Attachments via smtplib [SOLVED] AlphaInc 3 2,193 Oct-28-2021, 12:39 PM
Last Post: AlphaInc
  Sending random images via smtplib [SOLVED] AlphaInc 0 1,711 Oct-19-2021, 10:10 AM
Last Post: AlphaInc
  [UnicodeEncodeError from smtplib] yoohooos 0 3,427 Sep-25-2021, 04:27 AM
Last Post: yoohooos
  Generate a string of words for multiple lists of words in txt files in order. AnicraftPlayz 2 2,871 Aug-11-2021, 03:45 PM
Last Post: jamesaarr
  reading html and edit chekcbox to html jacklee26 5 3,124 Jul-01-2021, 10:31 AM
Last Post: snippsat
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,504 May-06-2021, 05:39 AM
Last Post: throwaway34

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020