[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Batch MAPISendMail (OpenInsight Specific) ====
=== At 01 FEB 2002 08:40:38PM Barry Stevens wrote: ===
{{tag>"OpenInsight Specific"}}
Doing a bit of R&D (on client behalf) in Batch sending e-mail using MAPISendMail.
I want to send statments to customers using HTML output from OIPI and use that as the e-mail body, as opposed to an attachment.
I was first off trying to embed a simple HTML script in the BODY but looking at the result, apears I need to be able to set the format? of the e-mail to HTML as opposed to text. Using MS OutLook Express.
Barry
----
=== At 01 FEB 2002 09:49PM Frank Tomeo wrote: ===
Barry,
I may be able to assist you in this, but I've never gotten the OI mail functions and OE to work together. I have always had to use Outlook for it to work. If you don't mind me asking, how did you get OE to work?
ftomeo@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 01 FEB 2002 10:56PM Barry Stevens wrote: ===
E-mail ends up in the outbox of MS OutLook express.
***********************************************************
function test_send_email(Void)
declare function Send_Email
equ CrLf$ to \0D0A\
SendTo=barry@bsbsoft.com.au"
CC="
From=barry@bsbsoft.com.au"
Subject=Testing..."
Body=This is a Test line":CrLf$:"This is second line"
*Embedded HTML does seen to work
*Need to flag e-mail as HTML format.
Ret=Send_Email(SendTo, CC, From, Subject, Body)
return Ret
**********************************************************
function Send_Email(SendTo, CC, From, Subject, Body)
equate No$ to 0
equate Yes$ to 1
$Insert MAPI_EQUATES
Declare subroutine Get_Status
Declare function MAPILogon, MAPISendMail, MAPILogoff
MsgSent=No$
If Assigned(SendTo) else SendTo="
If Assigned(CC) else CC="
If Assigned(From) else From="
If Assigned(Subject) else Subject="
If Assigned(Body) else Body="
If SendTo GT "" then
If Body GT "" then
If MAPILogon(Session, @Window, "MS Exchange Settings", "") then
Message='
Message=Subject
Message=SendTo
Message=CC
Message=From
Message=Body
Message=IPM.Microsoft Mail.Note"
Message=MAPI_RECEIPT_REQUESTED$
If MAPISendMail(0, @Window, 0, Message) then
MsgSent=Yes$
end else
MsgSent=No$
end
Status=MAPILogoff(Session, @Window)
end
end
end
Return MsgSent
**********************************************
Mmm, just realised now, that when received e-mail sent to myself, no receipt request was asked for.
Barry
----
=== At 04 FEB 2002 02:39PM Frank Tomeo wrote: ===
Barry,
Have you considered using the OIPI to print to an Acrobat .PDF file and email that as an attachment? Is that an option for you or do you need HTML for a specific reason?
ftomeo@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 04 FEB 2002 02:39PM Matt Sorrell wrote: ===
Barry,
You need to change the email headers to tell the client that you are sending HTML email. Have you checked the POS_TYPE$ values to see if there is another option besides "Note"? There might be a setting there for an HTML email. Otherwise, you need to set the header mime-type to tell it you're sending text/html instead of test/ascii.
HTH,
msorrel@greyhound.com
[url=http://www.greyhound.com]Greyhound Lines, Inc.[/url]
----
=== At 04 FEB 2002 04:18PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote: ===
You need to incorporate the MIME information into the mail for Outlook Express to validate it as HTML.
[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 04 FEB 2002 10:06PM Barry Stevens wrote: ===
]]do you need HTML for a specific reason
Thanks for the PDF suggestion. Do you have to have any PDF create licence, that Acrobat, isn't it.
Barry
----
=== At 04 FEB 2002 10:07PM Barry Stevens wrote: ===
Out of my depth here, but, I will do some digging.
Barry
----
=== At 04 FEB 2002 10:09PM Barry Stevens wrote: ===
So, that means it cant be done....(unless your Sprezzatura, of course )
Barry
----
=== At 04 FEB 2002 11:01PM Frank Tomeo wrote: ===
Barry,
There are two ways to get PDF output from OI:
1) Use the Adobe Acrobat Distiller and "print" to the distiller, which will create a file that you can email. We've used this many times.
2) Use OIPI Professional which now has a PDF output option. We've not tested this new feature though.
ftomeo@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 04 FEB 2002 11:15PM Mike Ruane wrote: ===
OIPI PDF works great.
There's even a white paper about it [url=http://www.revelation.com/WEBSITE/knowledge.nsf/07dbcbabb6b3e379852566f50064cf25/fb9fa2a4bb1e5ff085256aff007a8659?OpenDocument] here [/url]
Mike
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=7296BF59066618C288256B54000936BB|View this thread on the forum...]]