Hi,
I am trying to use MAPI with Lotus Notes Client. (I have to use MAPI).
I have a MapiFile Object as folows.
Dim mFile(0) As MapiFile
With mFile(0)
.lpszPathName = "C:\test.tx t"
.lpszFileName = "C:\test.tx t"
.nPosition = 0
.flFlags = 0
.lpFileType = 0
End With
And mapiMessage.nFi leCount = 1
mapimessage.lpF iles = mFile
Public Declare Auto Function MapiSendMail Lib "Mapi32.dll " Alias
"MAPISendMa il" _
(ByVal pSession As Integer, _
ByVal pUIParam As Integer, _
ByRef pMsg As MapiMessage, _
ByVal pFlags As Integer, _
ByVal pReserved As Integer) As Integer
MapiSendMail(0, 0, msg, 0, 0)
I tried another way also. I included MapiFile in MapiSendMail function
as follows.
Public Declare Auto Function MapiSendMail Lib "Mapi32.dll " Alias
"MAPISendMa il" _
(ByVal pSession As Integer, _
ByVal pUIParam As Integer, _
ByRef pMsg As MapiMessage, _
ByRef pFile As MapiFile, _
ByVal pFlags As Integer, _
ByVal pReserved As Integer) As Integer
And tried
MapiSendMail(0, 0, msg, mfile(0), 0, 0)
Both methods open a new message in Lotus Notes, but the attachments
are missing. Subject and body text are coming fine. I am programming
in VB.NET and I am not able to figure out what I am doing wrong.
Any help would greatly be appreciated.
Thank you
Kani 0 1461 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: NickBlooruk |
last post by:
Hello,
I have successfully linked a Lotus Notes server to our SQL Server
database using an ODBC connection.
This works fine when wanting to select records
eg openquery(LOTUSNOTES2, 'select * from Person' )
The problem I have is when I try to update the record I get an error
eg
update openquery(LOTUSNOTES, 'select * from Person where
|
by: hrishy |
last post by:
Hi
I have heard rumors that Lotus notes would be moving to db2 as the
datastore..would that mean db2 for windows and Linux have a shot in
its arm and become as pervasive as oracle and ms-sql server..
would appreciate your thoughts on this..
regards
Hrishy
|
by: Colin Anderson |
last post by:
I discovered, with great excitement, this article
http://www.davison.uk.net/vb2notes.asp when researching methods for
emailing from Access via Notes. Unfortunatly, when I run this I get a
Run-time error. When I run it on an XP machine it crashes, but on an
NT box it just generates an unknown error, handled by the error
handler. I have debugged and stepped through the code and have
narrowed the issue to the point at which the...
|
by: PZ Fosbeck |
last post by:
I'm not a Lotus Notes developer but thanks to this group's archives
have successfully created a function for sending Lotus Notes emails
from Access.
The follow code works great except I want to remove my name from the
'Sent By' portion of the email.
These messages are sent using my client session of Lotus Notes, using
a database called 'Tech Team' The resulting email message headers
contains
(Bold, the From name) 'Tech Team'
|
by: Joe |
last post by:
HI
Has anyone been able to work with lotus notes automation classes???
Can you post sample code of how to use these classes. I have setup in VB but
I am not able to port
to C# This is what I have so far - I cannot create a session and not sure
how to setup From/Subject
| |
by: =?Utf-8?B?SmFtZXNU?= |
last post by:
I can create a message and send it via my btopenworld account but is the
method the same when using Lotus Notes.
I have no experience of Lotus Notes whatsoever. I have never seen it at all.
the code I am using is:
dim smtp as new smtpclient
dim message as new mailmessage( from@cc.com, to@dd.com)
message.subject = "test"
|
by: kohligagan2 |
last post by:
Hi,
I am working on a scenario . And scenario is I am trying to send an Email using my Lotus notes Client Id ( Lotus notes :- is used for messaging and sending mails work as a middleware)
I have an ASP .NET website running on a IIS Server with Lotus note is running at the machine where server is running.
One client sends the request to the server and correspondingly mail goes to the respective person as mentioned.
I am using a...
|
by: MarkStorer |
last post by:
Hi All
I need to email a report (with contains graphs) via Lotus Notes. I've tried the 'SendObjectSnp' method (which works with some Lotus Notes clients (but not many others)); so I used the code below: -
Public Sub SEND_EMAILS()
Dim session As Object
Dim db As Object
Dim doc As Object
Dim rtitem As Object
|
by: Bob Alston |
last post by:
I am trying to access data in a Lotus Notes database, from Access.
The Notes database is release R5.
I installed NotesSQL 8.x and have it working. However it chokes on
one of the tables and references problems with the dates.
If I create a query, without these dozen or so dates, I can access all
the data.
However I am guessing that most of the dates are correct and only some
are bad.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |