Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

Replacing Word Mail-Merge with Python for Conditional Paragraphs

Word mail-merge works fine for one letter with 40 names. Then the request changes: "include the bonus paragraph only for people who get a bonus," and "name each file after the person so I can email…

  • Python script automates personalized letter creation
  • Uses docx library to handle Word documents
  • Preserves original formatting while applying conditional logic

More from Thursday 12 November →