Click here to Skip to main content
15,917,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: copying reference variables Pin
suzyb21-Mar-05 4:08
suzyb21-Mar-05 4:08 
GeneralImage Gallery Control! Pin
Micu Radu21-Mar-05 1:49
Micu Radu21-Mar-05 1:49 
GeneralDocument/View separation in MFC Pin
Rei Miyasaka20-Mar-05 23:58
Rei Miyasaka20-Mar-05 23:58 
GeneralRe: Document/View separation in MFC Pin
Colin Angus Mackay21-Mar-05 0:28
Colin Angus Mackay21-Mar-05 0:28 
GeneralRe: Document/View separation in MFC Pin
Rei Miyasaka21-Mar-05 0:40
Rei Miyasaka21-Mar-05 0:40 
QuestionHow to handle powerpoint? Pin
abandito20-Mar-05 23:31
abandito20-Mar-05 23:31 
GeneralInterprocess communication Pin
ppp00120-Mar-05 23:03
ppp00120-Mar-05 23:03 
Generalmapi message .. urgent help needed Pin
sheri198120-Mar-05 22:50
sheri198120-Mar-05 22:50 
hi
i am working with mapi and i want to use it to send a mail thorough my c# code.. i have managed to write a pice of code.. but i cant send any mails through it.. my code compiles and runs perectly ... but deosnt send any mails.. that is wen i run it no error or exception occurs.. but wen i turn to my in box there are no mail there either.. can anyone help me with this...

here is the code..

if (strServerType == "MAPI")
{

MAPI.SessionClass oSession = new MAPI.SessionClass();
// Will use vEmpty for Empty parameter
Object vEmpty = System.Reflection.Missing.Value;
// Logon
oSession.Logon(strHostName,
System.Reflection.Missing.Value,
false,
true,
0,
System.Reflection.Missing.Value,
@"outlook\smehmood");

MAPI.Folder outbox = (MAPI.Folder)oSession.Outbox;

MessageEmail MailToBeSent = new MessageEmail();// this is class which i derived from MAPI.message interface...

MailToBeSent.Session = oSession;
MailToBeSent.Recipients = strTo;
MailToBeSent.Subject = strSubject;
MailToBeSent.Text = strMessage;
MailToBeSent.Signed = true;
MAPI.Attachments at = (MAPI.Attachments)MailToBeSent.Attachments;


MailToBeSent.Send(true,false,System.Reflection.Missing.Value);
// Log off session.
if (oSession != null)
oSession.Logoff();
}
GeneralCan't detect previous version of Applcation Pin
azusakt20-Mar-05 22:05
azusakt20-Mar-05 22:05 
GeneralUnable to remove assembly from Cache Pin
Adnan Siddiqi20-Mar-05 21:17
Adnan Siddiqi20-Mar-05 21:17 
GeneralRe: Unable to remove assembly from Cache Pin
Adnan Siddiqi20-Mar-05 21:21
Adnan Siddiqi20-Mar-05 21:21 
GeneralWhy o why? Pin
leppie20-Mar-05 21:46
leppie20-Mar-05 21:46 
Generalabout the comminly used classes in .net Pin
satishrg20-Mar-05 18:46
satishrg20-Mar-05 18:46 
GeneralRe: about the comminly used classes in .net Pin
Colin Angus Mackay20-Mar-05 20:47
Colin Angus Mackay20-Mar-05 20:47 
GeneralRe: about the comminly used classes in .net Pin
leppie20-Mar-05 21:36
leppie20-Mar-05 21:36 
GeneralRe: about the comminly used classes in .net Pin
Rei Miyasaka21-Mar-05 0:02
Rei Miyasaka21-Mar-05 0:02 
Generalthanks to all Pin
satishrg21-Mar-05 5:43
satishrg21-Mar-05 5:43 
GeneralKeyboard language Pin
ABBASI_RA20-Mar-05 16:03
ABBASI_RA20-Mar-05 16:03 
GeneralRe: Keyboard language Pin
Christian Graus20-Mar-05 16:27
protectorChristian Graus20-Mar-05 16:27 
GeneralRe: Keyboard language Pin
Dave Kreskowiak20-Mar-05 17:27
mveDave Kreskowiak20-Mar-05 17:27 
Generalopen window Pin
ABBASI_RA20-Mar-05 15:46
ABBASI_RA20-Mar-05 15:46 
GeneralRe: open window Pin
Dave Kreskowiak20-Mar-05 17:28
mveDave Kreskowiak20-Mar-05 17:28 
GeneralRe: open window Pin
ABBASI_RA20-Mar-05 17:38
ABBASI_RA20-Mar-05 17:38 
GeneralRe: open window Pin
Dave Kreskowiak24-Mar-05 1:40
mveDave Kreskowiak24-Mar-05 1:40 
GeneralMultithreading on dual machine problem Pin
omid_dt20-Mar-05 10:38
omid_dt20-Mar-05 10:38 

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.