Click here to Skip to main content
15,902,755 members
Home / Discussions / C#
   

C#

 
Generalget application task Pin
kendao27-Nov-04 21:18
kendao27-Nov-04 21:18 
GeneralRe: get application task Pin
Luis Alonso Ramos28-Nov-04 7:34
Luis Alonso Ramos28-Nov-04 7:34 
Generalrichtextbox problem Pin
kendao27-Nov-04 21:12
kendao27-Nov-04 21:12 
GeneralRe: richtextbox problem Pin
Jay Shankar28-Nov-04 13:56
Jay Shankar28-Nov-04 13:56 
Generalcollection properties in user controls Pin
Anonymous27-Nov-04 19:31
Anonymous27-Nov-04 19:31 
GeneralView&Write Pin
kenes27-Nov-04 13:50
kenes27-Nov-04 13:50 
GeneralRe: View&Write Pin
Corinna John28-Nov-04 3:54
Corinna John28-Nov-04 3:54 
GeneralSimple MAPI can't fill address field Pin
Ray17027-Nov-04 7:47
Ray17027-Nov-04 7:47 
I am trying to send email using the simple mapi. I cannot download the example because the server seems to be unavailable, so I wonder if anyone can help.

The problem I have is how to handle the MapiRecipDesc field in the MapiMessage structure. Apart from this it all works except I can't fill the Address field. I have the following declarations

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
public class MapiMessage
{
public uint ulReserved=0;
public string lpszSubject="";
public string lpszNoteText="";
public string lpszMessageType="";
public string lpszDateReceived="";
public string lpszConversationID="";
public uint flFlags=0;
public MapiRecipDesc lpOriginator;
public long nRecipCount;
public MapiRecipDesc lpRecips;
public ulong nFileCount=0;
public MapiFileDesc lpFiles;
}

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
public class MapiRecipDesc
{
public ulong ulReserved=0;
public ulong ulRecipClass=0;
public string lpszName="";
public String lpszAddress="";
public ulong ulEIDSize=0;
public IntPtr lpEntryID = IntPtr.Zero;
}

and in the body I do

public const uint MAPI_TO=1;

MapiMessage message= new MapiMessage();
MapiRecipDesc recipDesc =new MapiRecipDesc();

recipDesc.ulRecipClass = MAPI_TO;
recipDesc.lpszName = "Fred";
recipDesc.lpszAddress = "someone@somewhere"

message.lpszSubject = "test subject";
message.lpszNoteText = "test message";
message.nRecipCount = 1;
message.lpRecips = recipDesc;



Ray
GeneralConvert.FromBase64String(base64String); - ERROR Pin
anderslundsgard27-Nov-04 4:18
anderslundsgard27-Nov-04 4:18 
Generaltraffic system simulation project Pin
Member 148592127-Nov-04 3:50
Member 148592127-Nov-04 3:50 
GeneralRe: traffic system simulation project Pin
Colin Angus Mackay27-Nov-04 14:54
Colin Angus Mackay27-Nov-04 14:54 
Generallogging package Pin
mathon27-Nov-04 3:32
mathon27-Nov-04 3:32 
Generalcolumn wise display in datagrid Pin
imarehan27-Nov-04 3:03
imarehan27-Nov-04 3:03 
QuestionHow to write a Grid Pin
Mehdy Khoshrou27-Nov-04 2:19
Mehdy Khoshrou27-Nov-04 2:19 
AnswerRe: How to write a Grid Pin
Nick Parker27-Nov-04 4:28
protectorNick Parker27-Nov-04 4:28 
AnswerRe: How to write a Grid Pin
Alex Korchemniy27-Nov-04 10:04
Alex Korchemniy27-Nov-04 10:04 
GeneralProgressBar Pin
MoustafaS27-Nov-04 0:41
MoustafaS27-Nov-04 0:41 
GeneralComboBox tooltips Pin
Mr.Cooper26-Nov-04 23:40
Mr.Cooper26-Nov-04 23:40 
Generalimplementing dts in c# Pin
Thirumalaraj26-Nov-04 22:08
Thirumalaraj26-Nov-04 22:08 
GeneralRe: implementing dts in c# Pin
David Salter27-Nov-04 1:12
David Salter27-Nov-04 1:12 
Generaldocking windows in an mdi app Pin
Anonymous26-Nov-04 20:07
Anonymous26-Nov-04 20:07 
GeneralProgressBar and Label Pin
26-Nov-04 19:15
suss26-Nov-04 19:15 
GeneralRe: ProgressBar and Label Pin
Alex Korchemniy26-Nov-04 19:39
Alex Korchemniy26-Nov-04 19:39 
QuestionHow to get system data and time in C#? Pin
momer26-Nov-04 19:07
momer26-Nov-04 19:07 
AnswerRe: How to get system data and time in C#? Pin
Alex Korchemniy26-Nov-04 19:15
Alex Korchemniy26-Nov-04 19:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.