|Newbie questions about Pliant
sending MIME multipart email
I want to send mail to smtp server with text part and html part
|Message posted by maybe Boris Reitman on 2006/12/21 03:28:50
|The abstract says it all. I am opening connection with "smtp:" prefix.
function sendmail from to subject content -> is_success
arg Str from to subject content ; arg Bool is_success
var Str options := "server [dq]" + SMTP_Server + "[dq] from [dq]" + from + "[dq] s
ubject [dq]" + subject + "[dq]"
(var Stream s) open "smtp:"+to options out+safe
s writechars content
s writeline "[lf]"
is_success := s:close=success
But this just send one body. I need to compose the body to consists of two mime parts,
and add corresponding mime header.
|Message posted by maybe Hubert Tonneau on 2006/12/21 10:00:16
|You could add 'noheader' to your options, then send the all content of the
mail yourself, including the header.
In such a case, Pliant SMTP client will deal only with SMTP protocol aspects,
and you are free to put the exact content you like.
|Message posted by maybe Boris Reitman on 2006/12/21 10:02:44
|Amazing, I had some internet problems at home, and went to a different location to get online,
to finish with this email thing. And when I finally got online and checked the
fullpliant forum, I saw your reply within a minute of your posting :)