Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending HTML email via Microsoft Outlook
Message
From
04/05/2001 14:31:03
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00495872
Message ID:
00503696
Views:
22
Well, now you have mentioned a couple of things that might be causing some problem. You said the HTMLeditor will convert the message to RTF. I have my Outlook configuration set to send mail as HTML. Should I set it to send mail as RTF ? Also, when we create the HTML message (in MSWord) we save it as an HTM file. Should we be saving it as an RTF file ?





>It should work. We have implemented this is some of our systems. We experienced the exact same problem at the start. Here is a copy of the response that I received from Microsoft.
>
>--------
>The way you see is by design and when you call Display before Send,
>Outlook will call HTMLEditor to interpreter the HTML body and convert it
>into RTF then send it out. The Yahoo and Hotmail mail servers are able
>to understand RTF and display it correctly. On the other hands, if you
>call Send directly, no HTMLEditor gets involved and Yahoo and Hotmail
>mail servers don't how to handle such stream and as the results, they
>will display it as plain text...
>
>Workaround:
>Call Display then call Send!
>
>Sample:
>
>Private Sub Command1_Click()
> Dim OL As New Outlook.Application
> Dim MI As MailItem
> Set MI = OL.CreateItem(olMailItem)
> With MI
> .To = "rtrabin@upstart.com" ' TODO:
> '.Cc = "larryzdu@hotmail.com" ' TODO:
> .Subject = "Send html formatted mail - with display"
> .HTMLBody = "HTML message"
> .Display
> .Send
> End With
> Unload Me
>End Sub
>------
>
>FYI - In our office we are using Outlook 2000 and MS Exchange Server 5.5.
>
>If you discover any interesting tricks please let me know. What are you using to edit the HTML message? We are currently using MS Word, but would like to include an HTML editor in our App. Have you ever seen an Active-X HTML editor?
>
>I hope this helps. If it still doesn't work, let me know and I will send you some code that works in our office.
>
>>Well, I just tried that. No cigar. I saw the Outlook message screen flash on the screen but when I checked the recipient's mail ... HTML did not show up.
>>Thanks for trying anyway.
>>
>>
>>
>>>Don,
>>>
>>>To send HTML through Outlook you must call .Dispaly( ) before .Send( ).
>>>
>>>>Our company is beginning to explore sending email via Microsoft Outlook through Visual Foxpro 6.0. It works just fine except for 1 vital thing. The email we send in HTML format ends up being displayed in text only format. It works fine with email we send within our own company but external mail is received as text only. This happens at every site we have tested so far so we suspect it is a problem at our end. Anyone have an idea of what might be wrong ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform