Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paradox and Lotus Notes

Status
Not open for further replies.

cobweb

IS-IT--Management
May 5, 2002
95
GB
Hi:
We have just migrated to Lotus Notes/Domino from Exchange.
Now my lovely emails of files from Paradox are refused as Paradox 9 does not seem to recognise Notes!
Is anybody aware of this issue and how to resolve it?
Thanks!
 
cobweb,

Notes may be requiring you to log into the email server before accepting MAPI requests.

How are you currently sending mail from Paradox? Can we see some (appropriately massaged) code?

-- Lance
 
Thanks; here is the code.

VAR
m MAIL
ENDVAR
m.addAddress("bill.gates@microsoft.com")
m.setSubject("Todays Orders")
m.setMessage("Attached are the header and detail orders received by us on the last working day before today")
m.addAttachment("Header.txt")
m.addAttachment("Detail.txt")
m.send()
endMethod
 
cobweb,

Well, that's looks fairly straight-forward. :)

Oddly, the Mail::send() method doesn't return a value indicating success or failure.

I note the Help topic for send() suggests it may be necessary to call logon() before calling send(); howeer, it appears that logon() doesn't return a value, either.

However, the logonDlg() does return a logical value. So, the following code works on my end:

Code:
method run(var eventInfo Event)
var
   m Mail
endVar

   if m.logonDlg() then

      m.addAddress("nouser@example.com")
      m.setSubject("Paradox Mail Test")
      m.setMessage("This is a test of the Paradox 10 Mail type.")
      m.send()
      m.logOff()

   endIf

endMethod

Now, my email server isn't Lotus Notes. I did need to define a profile on my Windows XP box for the currently registered MAPI client, but the dialogs for all of that appeared as expected.

There's an article at dbcommunity though ( which links to an IBM article that may help. The IBM article is fairly extensive.

Hope it helps...

-- Lance
 
Thanks (as usual!), footpad.
You got me on the right track with LogonDlg.
This prompted me to create a new profile; I did, pointing it at Notes...and it works a treat.

Thanks again for all your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top