General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only