Click here to Skip to main content
15,905,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to convert COM Object to string in asp.net web application Pin
narendrakumarp21-Apr-06 2:21
narendrakumarp21-Apr-06 2:21 
GeneralRe: how to convert COM Object to string in asp.net web application Pin
Dave Kreskowiak21-Apr-06 6:57
mveDave Kreskowiak21-Apr-06 6:57 
Questionaccessing VB6 exe functions in C# Pin
shezh21-Apr-06 0:22
shezh21-Apr-06 0:22 
AnswerRe: accessing VB6 exe functions in C# Pin
Dave Kreskowiak21-Apr-06 7:02
mveDave Kreskowiak21-Apr-06 7:02 
QuestionHow to block shortcuts Pin
alexey N20-Apr-06 22:45
alexey N20-Apr-06 22:45 
AnswerRe: How to block shortcuts Pin
alexey N21-Apr-06 1:21
alexey N21-Apr-06 1:21 
QuestionRead data from Outlook .msg items Pin
allenmpcx20-Apr-06 22:28
allenmpcx20-Apr-06 22:28 
AnswerRe: Read data from Outlook .msg items Pin
alexey N21-Apr-06 1:07
alexey N21-Apr-06 1:07 
QuestionRemoting Pin
mehrdadc4820-Apr-06 21:00
mehrdadc4820-Apr-06 21:00 
AnswerRe: Remoting Pin
g00fyman20-Apr-06 21:07
g00fyman20-Apr-06 21:07 
AnswerRe: Remoting Pin
Vasudevan Deepak Kumar20-Apr-06 22:01
Vasudevan Deepak Kumar20-Apr-06 22:01 
AnswerRe: Browser Checking Pin
J4amieC20-Apr-06 21:38
J4amieC20-Apr-06 21:38 
Questionfunction browsing in propertygrid Pin
g00fyman20-Apr-06 20:59
g00fyman20-Apr-06 20:59 
AnswerRe: function browsing in propertygrid Pin
g00fyman20-Apr-06 21:20
g00fyman20-Apr-06 21:20 
GeneralRe: function browsing in propertygrid Pin
Robert Rohde20-Apr-06 22:22
Robert Rohde20-Apr-06 22:22 
GeneralRe: function browsing in propertygrid Pin
leppie20-Apr-06 22:55
leppie20-Apr-06 22:55 
Questionget Toolbox Pin
AnhTin20-Apr-06 20:47
AnhTin20-Apr-06 20:47 
AnswerRe: get Toolbox Pin
g00fyman20-Apr-06 21:10
g00fyman20-Apr-06 21:10 
QuestionUsing .rar/.zip documents Pin
QzRz20-Apr-06 20:37
QzRz20-Apr-06 20:37 
AnswerRe: Using .rar/.zip documents Pin
Robin Panther20-Apr-06 23:57
Robin Panther20-Apr-06 23:57 
QuestionMicrosoft controls Tree View control problem Pin
smadan20-Apr-06 20:11
smadan20-Apr-06 20:11 
QuestionHow to send the e-mail? Pin
Vasya - dragon20-Apr-06 20:09
Vasya - dragon20-Apr-06 20:09 
Good afternoon.
How to send e-mail that there was no window Outlook Security?
public bool Send( string sub, string txt )
{
lastMsg = new MapiMessage();
lastMsg.subject = sub;
lastMsg.noteText = txt;

// set pointers
lastMsg.originator = AllocOrigin();
lastMsg.recips = AllocRecips( out lastMsg.recipCount );
lastMsg.files = AllocAttachs( out lastMsg.fileCount );

error = MAPISendMail( session, winhandle, lastMsg, 0, 0 ); // WARNING Outlook SecurityOutlook Security
Dealloc();
Reset();
return error == 0;
}

[DllImport( "MAPI32.DLL")]
private static extern int MAPISendMail( IntPtr sess, IntPtr hwnd,
MapiMessage message,
int flg, int rsv );
private MapiRecipDesc origin = new MapiRecipDesc();
private ArrayList recpts = new ArrayList();
private ArrayList attachs = new ArrayList();

oSession = new MAPI.Session();
oSession.Logon(Missing.Value, Missing.Value, true, true, Missing.Value, Missing.Value, Missing.Value);
MAPI.Folder oFolder = (MAPI.Folder)oSession.Outbox;
MAPI.Messages oMessages = (MAPI.Messages)oFolder.Messages;
MAPI.Message oMsg = (MAPI.Message)oMessages.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value);
MAPI.Recipients oRcpt = (MAPI.Recipients)oMsg.Recipients;
oRcpt.Add("SMTP:xxx@xxx.xxx", "SMTP:xxx@xxx.xxx", MAPI.CdoRecipientType.CdoTo, Missing.Value);
oRcpt.Resolve(Missing.Value); // WARNING Outlook Security
oMsg.Subject = "Test Message";
oMsg.Text = "This is a test message...";
oMsg.Send(Missing.Value, Missing.Value, Missing.Value);
oSession.Logoff();

Thanks!
Questionthreading and progressbar in windows form Pin
karande2320-Apr-06 19:59
karande2320-Apr-06 19:59 
AnswerRe: threading and progressbar in windows form Pin
g00fyman20-Apr-06 21:05
g00fyman20-Apr-06 21:05 
GeneralRe: threading and progressbar in windows form Pin
karande2320-Apr-06 21:46
karande2320-Apr-06 21:46 

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.