Lotus Notes

S

spcruise

I have an A07 database with an SQL backend that has email functionality
incorporated through the use of code found in this discussion group.

I have a sperate PC that monitors an sql table that holds email requests.
When a new email request record is found in the table the email database
applicaion retreives all the information needed to compose an email; TO,
FROM, SUBJECT, BODY and the path to any attachments.

This email application has worked flawlessly and with out user intervention
for almost a year. My company has begun to implement Group Policy for Notes
8 and has chosen to not allow a users Mail File Location to be set to "On
Server". This policy is pushed down approx every 6 hours (4 times a day).
As long as I check it peridodially and set it back to "On Server", it will
process emails. Otherwise, the emails sit in the queue until it is set back
to "On Server".

I have located the following code that retrieves the Mail Type. It returns
a value of 1 if the Mail File Location is set to "Local" and a vaule of 0 if
set to "On Server".

Dim mailtype As String
mailtype = notessession.getenvironmentstring("mailtype", True)

What I am looking for is the code to set the Mail File Location to "On
Server" once I have determined through code that the Mail Type is 1. Then my
existing code could contiune and process emails.

Any help is greatly appreciated.
 
J

Jack Leach

I think this question may be better suited for a Lotus forum rather than
Access. I'm guessing that Notessession is an automation process, and
whatever methods are used within that context are probably not specific to
Access (such as the GetEnvironmentString function being specific to Lotus).

Better luck there.

hth
--
Jack Leach
www.tristatemachine.com

"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top