<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>24 May 2015 13:13:00 Z</lastBuildDate><pubDate>22 May 2015 13:56:00 Z</pubDate><description>Hi,&#13;
&#13;
WinDev 19 - 56s&#13;
&#13;
I`m using a EDT_HTML_Text (also tried with EDTY_Rtf_text) to send a formatted email via outlook but I only get a result as shown below:&#13;
&#13;
&#13;
&#13;
What is a bit strange is that in the "Sendt element" it shows up right, but the receiver gets what is shown above.&#13;
&#13;
I tried a couple of different code blocks, but I`m a bit confused (to say the least)&#13;
&#13;
With the EDT_HTML_Text I tried (imsg contains a string of html):&#13;
&#13;
Mail[n].sMail.Message= HTMLToText(Imsg) mail[n].sMail.HTML = ""+imsg+""&#13;
With the EDT_Rtf_Text I tried:&#13;
Mail[n].sMail.Message= RTFToText(Imsg) mail[n].sMail.HTML = ""+RTFTOHTML(imsg)+""&#13;
But nothing seems to do the trick? :(&#13;
&#13;
Anybode care to point me in the right direction? :)&#13;
&#13;
My array of emails is defined like:&#13;
STdocuments is Structure sFile is string sEmail is string sTable is ANSI string sPrimKey is string END STEmails is Structure sMail is Email Attachment is EmailAttach END cEmail is a Class Doc is array of STdocuments Mail is array of STEmails Emailtype is int //1 = html, 2 = RTF END&#13;
&#13;
My SendOutlookEmail method is:&#13;
nOutlookSessionID is int // Opens the Outlook session with the default profile nOutlookSessionID = EmailStartOutlookSession("") // Session started? IF nOutlookSessionID = 0 THEN // Failure starting the session Error("Failure opening the Outlook session", ErrorInfo()) ELSE // // Process // Info("List of email folders of Outlook:", ... // EmailListFolder(nOutlookSessionID)) FOR EACH ds OF :Mail IF EmailSendMessage(nOutlookSessionID, ds.sMail, False) = False THEN Error("Email: "+ErrorInfo()) END // IF EmailSendMessage(SMTP,ds.sMail) = False THEN // Error("Email: "+ErrorInfo()) // END END // Closes the session EmailCloseSession(nOutlookSessionID) END RESULT True&#13;
Edit: also the PrepareOneMail method I supply:&#13;
PROCEDURE PrepareOneMail(iToMail,ISubject,Imsg,Ifiles) n is int n = Add(Mail) Add(Mail[n].sMail.Recipient, iToMail) IF INIRead("SMTP","Copy","",gsInifile) &lt;&gt; "" THEN Add(Mail[n].smail.Recipient,INIRead("SMTP","Copy","",gsInifile)) END FOR EACH STRING sFilename OF Ifiles SEPARATED BY CR IF NoSpace(sFilename) &lt;&gt; "" THEN Mail[n].Attachment.Content = fLoadText(sFilename) Mail[n].Attachment.Name = fExtractPath(sFilename,fFileName+fExtension) Mail[n].Attachment.ContentType = "application/pdf" Mail[n].Attachment.ContentDescription = "PDF Invoice" Add(Mail[n].sMail.Attach, Mail[n].Attachment) END END Mail[n].sMail.Sender = INIRead("email","from","",gsInifile)+"&lt;"+INIRead("email","from email","",gsInifile)+"&gt;" Mail[n].sMail..SenderAddress = INIRead("email","from email","",gsInifile) Mail[n].smail.DispositionNotification = False IF :Emailtype = 1 THEN Mail[n].sMail.Message = RTFToText(Imsg) // mail[n].sMail.HTML = ""+imsg+"" // EmailImportHTML(Mail[n].sMail,Imsg,"C:\Users\ or_000\Pictures\Images\") // Mail[n].sMail.Message = HTMLToText(Imsg) ELSE IF :Emailtype = 2 Mail[n].sMail.Message = RTFToText(Imsg) Mail[n].sMail.HTML = ""+RTFToHTML(Imsg)+"" END Mail[n].sMail.Subject= ISubject&#13;
&#13;
Cheers&#13;
Tor-Bjarne</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email/read.awp</link><title>Struggling with outlook email</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52257/read.awp</comments><pubDate>24 May 2015 13:13:00 Z</pubDate><description>Hi Kimor,&#13;
&#13;
Thank you for your reply :)&#13;
&#13;
In my "Invoice software" there is a option to send email as SMTP and this works grea…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52257/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52257/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email/read.awp">Struggling with outlook email</source><title>Re: Struggling with outlook email</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52253/read.awp</comments><pubDate>23 May 2015 21:30:00 Z</pubDate><description>Hi,&#13;
&#13;
Have you tried to just enter som simple formatted HTML as string to confirm that it works before passing it on from an ed…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52253/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52253/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email/read.awp">Struggling with outlook email</source><title>Re: Struggling with outlook email</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52242/read.awp</comments><pubDate>22 May 2015 15:48:00 Z</pubDate><description>Hi Alexandre,&#13;
&#13;
Tank you for your reply&#13;
&#13;
&#13;
The ""+imsg+"" was actually "HTML-STARTTAG"+imsg+"HTML-ENDTAG" this dissapared fro…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52242/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52242/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email/read.awp">Struggling with outlook email</source><title>Re: Struggling with outlook email</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52238/read.awp</comments><pubDate>22 May 2015 14:28:00 Z</pubDate><description>Hi Tor-Bjarne,&#13;
&#13;
Just another detail about Outlook. Sometimes we have problems with it on customers sites. It looks like in som…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52238/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52238/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email/read.awp">Struggling with outlook email</source><title>Re: Struggling with outlook email</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52237/read.awp</comments><pubDate>22 May 2015 14:23:00 Z</pubDate><description>Hi Tor-Bjarne,&#13;
&#13;
The problem might be on the receiver side depending on the configuration of its email software, what software …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52237/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email-52237/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52235-struggling-with-outlook-email/read.awp">Struggling with outlook email</source><title>Re: Struggling with outlook email</title></item></channel></rss>
