Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI I can and MAPI i cannot
Message
From
20/12/2002 16:41:47
 
 
To
03/12/2002 18:16:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00729147
Message ID:
00735029
Views:
12
Hi Marcia and Glenn,

it might be a problem of Outlook, as I can send HTML messages through MAPI with no problems using Eudora 5.1 as the MAPI server.
I have a form with and edit box with the HTML code inside it. You can modify the message and when finished, just click on the "send" button which fires the following code:

local lcDirectory

*-- MAPI server can change the working directory when initiated
lcDirectory = set('directory')

*-- Signon
with thisForm.oleMAPISession
.Signon()
*-- Checks the session has been opened
if ( .SessionID > 0 )
thisForm.oleMAPIMessages.SessionID = .SessionID
else
wait window "No se pudo inciar sesión de eMail"
return
endif
endwith

*-- Sends the email
with thisForm.oleMAPIMessages
.Compose()

.RecipDisplayName = allTrim(thisForm.txtDestinatario.Value)
.RecipType = 1
.ResolveName()

.MsgSubject = allTrim(thisForm.txtEncabezado.Value)
*-- edbMensaje is an editBox in which you can modify the HTML code
.MsgNoteText = allTrim(thisForm.edbMensaje.Value)

.Send(.f.)
endwith

thisForm.oleMAPISession.Signoff()
set directory to (lcDirectory)

If you need further explanations, please let me know, but it works fine for me.
Regards,
Javier Borrajo.


>Hi Glen.
>
>I need to format a message with HTML and send it VIA MAPI. Unfortunatly
>with wwipstuff and sendmapimail this is not possible at this time. Does nayone have any other suggestions? (not SMTP)

>
>You can't send HTML formatted messages using MAPI. So you are SOL (Scientifically out of luck < g > )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform