MAPI Outlook HTML TEXT
- MarcoBoschi
- Posts: 1070
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
MAPI Outlook HTML TEXT
Hi,
using this instruction from my fivewin program I obtain a perfect message If I use Thunderbird or David Infocenter
If I use Outlook no
I don't see the formatted text in the body but I see it as if it were normal text
DEFINE MAIL oMail ;
SUBJECT cSubject ;
TEXT cBodyHtml ;
FROM USER
any suggestions other than using another email program?
by by marco
using this instruction from my fivewin program I obtain a perfect message If I use Thunderbird or David Infocenter
If I use Outlook no
I don't see the formatted text in the body but I see it as if it were normal text
DEFINE MAIL oMail ;
SUBJECT cSubject ;
TEXT cBodyHtml ;
FROM USER
any suggestions other than using another email program?
by by marco
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it
Re: MAPI Outlook HTML TEXT
Show TEXT cBodyHtml ???
Gracias, thanks.
Regards, saludos.
Gracias, thanks.
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
- MarcoBoschi
- Posts: 1070
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
Re: MAPI Outlook HTML TEXT
Obviously I cut off some part of text for sensitive data
Code: Select all | Expand
<!DOCTYPE html>
<html>
<head><META http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body style="word-wrap:break-word" vlink="#954F72" link="#0563C1"
lang="IT">
Buongiorno,
<div class="moz-forward-container">
<div class="WordSection1">
<p class="MsoPlainText">si invia in allegato la situazione
contabile delle partite in essere alla data odierna.
</p>
<p class="MsoNormal"
style="margin-top:2.35pt;text-autospace:none"><span
style="mso-fareast-language:IT">Vi preghiamo di eseguire il
pagamento delle fatture scadute
</span><span style="color:black">sul seguente appoggio
bancario</span>:<span
style="color:black;mso-fareast-language:IT"></span></p>
<p class="MsoNormal" style="text-align:justify"><span
style="mso-fareast-language:IT">Se avete già provveduto a
quanto succitato, Vi preghiamo di ritenere nulla la presente
e di darcene comunicazione scritta e/o telefonica.</span></p>
<p class="MsoPlainText">Restiamo a disposizione per qualsiasi
chiarimento.</p>
<p class="MsoPlainText">Distinti saluti</p>
<p class="MsoNormal"> </p>
</div>
</div>
</body>
</html>
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it
Re: MAPI Outlook HTML TEXT
Look,
https://forums.fivetechsupport.com/view ... =3&t=43728
https://forums.fivetechsupport.com/view ... 87&start=0
Regards, saludos.
https://forums.fivetechsupport.com/view ... =3&t=43728
https://forums.fivetechsupport.com/view ... 87&start=0
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: MAPI Outlook HTML TEXT
Is not possible
Use OLE instead through outlook. A little problem: It requires configuration in outlook for sending 3rd parties software
Use OLE instead through outlook. A little problem: It requires configuration in outlook for sending 3rd parties software
Re: MAPI Outlook HTML TEXT
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Re: MAPI Outlook HTML TEXT
Marco:
En el html no estas incluyendo el estilo css que usas.
Tal vez te falte eso para darle el formato deseado.
Incluye el estilo, algo asi como esto:
Para ver si te respeta el estilo esperado
Obviamente el estilo se lo tienes que dar vos según tus preferencias
En el html no estas incluyendo el estilo css que usas.
Tal vez te falte eso para darle el formato deseado.
Incluye el estilo, algo asi como esto:
Code: Select all | Expand
<style type="text/css">
.moz-forward-container {
padding-top: 10px;
background-color: #ccc;
}
.WordSection1 {
margin-left: 20px;
padding-top: 5px;
}
.MsoNormal {
text-align: center;
color: red;
}
.MsoPlainText {
font-family: Roboto;
color: white;
background-color: #336699;
}
</style>
Obviamente el estilo se lo tienes que dar vos según tus preferencias
- MarcoBoschi
- Posts: 1070
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
Re: MAPI Outlook HTML TEXT
Hi,
If there is more than one account in Outlook, how can I select account that should be send from?
If there is more than one account in Outlook, how can I select account that should be send from?
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
- MarcoBoschi
- Posts: 1070
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
Re: MAPI Outlook HTML TEXT
I cannot test it but maybe
oMailItem:to := cRecipient
oMailItem:from := cFrom
you should try
oMailItem:to := cRecipient
oMailItem:from := cFrom
you should try
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it
Re: MAPI Outlook HTML TEXT
Thank you. But I have tried and get an errormessage.MarcoBoschi wrote:I cannot test it but maybe
oMailItem:to := cRecipient
oMailItem:from := cFrom
you should try
Code: Select all | Expand
Error description: (DOS Error -2147352570) WINOLE/1008 No exported variable: FROM
Args:
[ 1] = C hakan@objekt.com.tr
Stack Calls
===========
Called from: ..\contrib\hbwin\oleauto.prg => TOLEAUTO:_FROM( 0 )
https://learn.microsoft.com/en-us/offic ... ingaccount
Code: Select all | Expand
Sub SendUsingAccount()
Dim oAccount As Outlook.account
For Each oAccount In Application.Session.Accounts
If oAccount.AccountType = olPop3 Then
Dim oMail As Outlook.MailItem
Set oMail = Application.CreateItem(olMailItem)
oMail.Subject = "Sent using POP3 Account"
oMail.Recipients.Add ("someone@example.com")
oMail.Recipients.ResolveAll
Set oMail.SendUsingAccount = oAccount
oMail.Send
End If
Next
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04