I am doing an application that among the many activities it has to
carry on, it must also send through e-mail one or more than one PDF files.
I found out a similar example that do this function in the common site. In
this example there is not the sender, because it rightly consider the user
that
is using the program.
Unfortunately the application is used by a group of users and the mails they
send must have the same
sender (for instance: in**@dominio.it that is a common mailbox for all
users)
without considering the personal e-mail address.
I set up the code as follows
....
....
....
ReDim MAPI_Recip(2) As MapiRecip
'SENDER
MAPI_Recip(0).Reserved = 0
MAPI_Recip(0).RecipClass = MAPI_ORIG '(=0)
MAPI_Recip(0).Name = "@info"
MAPI_Recip(0).Address = "in**@dominio.it"
MAPI_Recip(0).EIDSize = 0
MAPI_Recip(0).EntryID = strNull
'RECEIVER
MAPI_Recip(1).Reserved = 0
MAPI_Recip(1).RecipClass = MAPI_TO '(=1)
MAPI_Recip(1).Name = "de**********@altrodominio.it"
MAPI_Recip(1).Address = "de**********@altrodominio.it"
MAPI_Recip(1).EIDSize = 0
MAPI_Recip(1).EntryID = strNull
....
....
....
MAPI_Message.Subject = sSubject
MAPI_Message.NoteText = sMessage
MAPI_Message.RecipCount = 2
SendMail = MAPISendMail(0, 0, MAPI_Message, MAPI_Recip,
MAPI_File,MAPI_LOGON_UI, 0)
....
....
Unfortunately the DLL comes back the error 15....
Is there someone that can help me to understand what I do wrong?
Thank you
Eugenio