Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unable to cast object of type 'X' to type 'X' Pin
Pink Floyd25-Apr-06 7:04
Pink Floyd25-Apr-06 7:04 
GeneralRe: Unable to cast object of type 'X' to type 'X' Pin
Pink Floyd25-Apr-06 9:52
Pink Floyd25-Apr-06 9:52 
QuestionApplication Servers compared to Middlewares Pin
Den2Fly24-Apr-06 6:16
Den2Fly24-Apr-06 6:16 
AnswerRe: Application Servers compared to Middlewares Pin
J4amieC24-Apr-06 7:41
J4amieC24-Apr-06 7:41 
GeneralRe: Application Servers compared to Middlewares Pin
Den2Fly24-Apr-06 11:04
Den2Fly24-Apr-06 11:04 
Questione-mail through with Outlook Redemption library... Pin
Vasya - dragon24-Apr-06 5:19
Vasya - dragon24-Apr-06 5:19 
AnswerRe: e-mail through with Outlook Redemption library... Pin
Aaron Dilliard25-Apr-06 4:06
Aaron Dilliard25-Apr-06 4:06 
GeneralRe: e-mail through with Outlook Redemption library... Pin
Vasya - dragon25-Apr-06 11:07
Vasya - dragon25-Apr-06 11:07 
Hello Aaron.
I send the letter by means of CDO. It's impossible to use Outlook COM Library for me.. (restriction in a technical project)
What i do:
<br />
//CDO<br />
MAPI.Session oSession = new MAPI.Session();<br />
oSession.Logon(Missing.Value, Missing.Value, true, true, Missing.Value, Missing.Value, Missing.Value);<br />
			<br />
MAPI.Folder oFolder = (MAPI.Folder)oSession.Outbox;<br />
MAPI.Messages oMessages = (MAPI.Messages)oFolder.Messages;<br />
MAPI.Message oMsg = (MAPI.Message)oMessages.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value);<br />
<br />
// Redemptoin<br />
SafeMailItem SafeItem = new SafeMailItemClass();<br />
<br />
oMsg.Subject = "Hello!";<br />
oMsg.Text = "Hello!";<br />
				<br />
SafeItem.Item = oMsg;<br />
SafeItem.Recipients.Add("xxx@xxx.xxx");<br />
SafeItem.Recipients.ResolveAll();<br />
<br />
//!!!<br />
oSession.DeliverNow();<br />
<br />
//!!!<br />
MAPIUtils ut = new MAPIUtilsClass();<br />
ut.DeliverNow((int)rdoFlagIcon.olRedFlagIcon,  (int)this.Handle);<br />
		<br />
SafeItem.Send();<br />
					<br />
oSession.Logoff();<br />


Letters remain in a folder Proceeding...
And how to make that they have automatically gone and have got in folder Sent?
I can not understand in what a problem.
!!! - this code don't help...
QuestionVar Scope Pin
Ashraf zia24-Apr-06 4:55
Ashraf zia24-Apr-06 4:55 
AnswerRe: Var Scope Pin
Rob Philpott24-Apr-06 5:26
Rob Philpott24-Apr-06 5:26 
AnswerRe: Var Scope Pin
Guffa24-Apr-06 6:04
Guffa24-Apr-06 6:04 
QuestionReacting on MDI parent menu click Pin
Denis Shamanin24-Apr-06 4:54
Denis Shamanin24-Apr-06 4:54 
AnswerRe: Reacting on MDI parent menu click Pin
Josh Smith24-Apr-06 5:23
Josh Smith24-Apr-06 5:23 
GeneralRe: Reacting on MDI parent menu click Pin
Denis Shamanin24-Apr-06 21:14
Denis Shamanin24-Apr-06 21:14 
GeneralRe: Reacting on MDI parent menu click Pin
Denis Shamanin24-Apr-06 21:19
Denis Shamanin24-Apr-06 21:19 
GeneralRe: Reacting on MDI parent menu click Pin
Josh Smith25-Apr-06 3:37
Josh Smith25-Apr-06 3:37 
GeneralRe: Reacting on MDI parent menu click Pin
Josh Smith25-Apr-06 3:31
Josh Smith25-Apr-06 3:31 
QuestionPerformance problem with file transfer via remoting Pin
mav.northwind24-Apr-06 2:55
mav.northwind24-Apr-06 2:55 
AnswerRe: Performance problem with file transfer via remoting Pin
Judah Gabriel Himango24-Apr-06 7:22
sponsorJudah Gabriel Himango24-Apr-06 7:22 
GeneralRe: Performance problem with file transfer via remoting Pin
mav.northwind24-Apr-06 8:10
mav.northwind24-Apr-06 8:10 
GeneralRe: Performance problem with file transfer via remoting Pin
Judah Gabriel Himango24-Apr-06 9:02
sponsorJudah Gabriel Himango24-Apr-06 9:02 
GeneralRe: Performance problem with file transfer via remoting Pin
mav.northwind25-Apr-06 0:07
mav.northwind25-Apr-06 0:07 
Questioncompilation options Pin
V.24-Apr-06 1:52
professionalV.24-Apr-06 1:52 
AnswerRe: compilation options Pin
Colin Angus Mackay24-Apr-06 2:33
Colin Angus Mackay24-Apr-06 2:33 
GeneralRe: compilation options Pin
V.24-Apr-06 2:55
professionalV.24-Apr-06 2:55 

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.