infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
send email with content-type html?
Keith McLeod
I would like to send email from alerts wher ethe content-type is html. I am on AIX 5.1 CLoverleaf 3.8.1P rev 4 and other assorted versions. I would like to save documents created in Word as html format, be able to email them from an alert trigger and have the body of the message display appropraitely. So far not working for me.... Anybody doing this?
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Tom Henderson
We do something similar to send an email with a legal disclaimer in bold text. The key is that email only really works with plain text, so the message has to be properly encoded with MIME for it to work correctly. The format for HTML email is to MIME-encode the message as multipart/alternative, then supply the message as an HTML version (your document) and a plain text version. Conceptually, each version carries the same message, but nothing really enforces that. Spammers will often send out email where all the message is in the HTML part and the plain text part contains little or nothing.
The reason for this is so someone can read your email whether the email client supports HTML email or not.
Anyway, assuming that you a) have tcllib installed, which includes the MIME and SMTP extensions, and b) have the HTML and plain-text message in an HTML file and a plain-text file named nogo.html and nogo.txt, and c) change the email address and email server names to real-world values, this code should work.