|
hii Dave
Thanks for the reply.Actually I am using the same smtp server that my outlook has been configured to.My outlook outgoing server is same as that I used in my code.
You have suggested to use outlook mail item object for sending mails but I need to change the sender from address which is not possible if I use outlook mail object.
Is there a way figure it out?
|
|
|
|
|
OK, so you're sending the mail as someone else using an outside service provider. Outside SMTP servers doesn't provide any "sent mail" tracking folders. SMTP only sends a mail message and then forgets about it. If you want a Sent Mail copy your application has to track that. The SMTP server doesn't have any facility for that.
How does Outlook.com do it?? It saves a copy of the mail message in an application folder after the mail is successfully sent using SMTP. The application does it, not the SMTP server.
So, YOUR CODE has to save a copy of the mail message in Outlook. You cannot depend on an outside provider to provide that service for you.
|
|
|
|
|
Exactly Dave, I want a copy of that sent mail in my sent items folder of outlook. can you please help me out how to figure it out.This issue is bringing my nerves down since two months.
|
|
|
|
|
If you are using an Exchange server, you can try sending the mail via Exchange web services, using a Microsoft.Exchange.WebServices.Data.EmailMessage object.
|
|
|
|
|
we are not using exchange server. Is there a alternate way for achieving this?
|
|
|
|
|
I can't write the code for you. I just don't have the time.
Google for "Outlook API create mailitem" and "Outlook API save mailitem to folder".
|
|
|
|
|
|
Is there any proper reference available which can give the clear script in C# to convert JSON String to Datagrid..not limiting to any specific number of columns..
Please suggest with the Project Link.
|
|
|
|
|
Seems a little research will get you a number of examples, have some Google foo[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
What's a JSON string? It is a representation of a serialized object.
What's a Datagrid? It is a UI element for showing data.
What have you to do now? Deserialize the JSON string to get the object. Define how to bind the object to the Datagrid. Then do it.
|
|
|
|
|
what port for crystalReport in Firewall?
|
|
|
|
|
There isn't one. Crystal Reports doesn't talk over TCP/IP. It just renders a report with the datasource thrown at it. Your question doesn't make any sense.
|
|
|
|
|
crystalReport don't go on internet so no port, no firewall.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
I'm not familiar with your architecture, but in general try to open port 6400 and 6401(requestport), it may help you.
Find More .Net development tips at : .NET Tips
The only reason people get lost in thought is because it's unfamiliar territory.
|
|
|
|
|
Or check your firewall team what port it is dropping on their ticket notes
|
|
|
|
|
Hi community!
I got a situation that's driving me insane: In order to work together with a third-party suite of applications, we have created a kind of addon.
This addon is being loaded without any problems into several third-party applications as well as into a MS Word addon the other party wrote.
Our addon creates its own AppDomain, so that there should be no interference with the host application.
All of this works nicely when using .NET 4.0 up to .NET 4.5.2.
Recently, a customer tried running the same setup with .NET 4.6.1 and all of a sudden, the addon crashes when it's being loaded into the Winword-Addon.
The crash happens as soon as our addon tries to access ConfigurationManager.AppSettings.
The call stack shows that there's a NullReferenceException at System.Xml.XmlCharType.get_Instance() that's happening while the configuration system is being initialized.
It only happens there and only with .NET 4.6.1.
I'm out of ideas, can anyone help?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Looking at the source[^], the most likely culprit would seem to be the embedded resource. Is the Word addon doing anything odd with cultures, or messing with the CAS policy?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thanks for the reply, Richard!
I also had taken a look at the code in System.Xml.dll from 4.5.2 and from 4.6.1 using ILSpy, but couldn't find any significant difference.
Both versions had the "XmlCharType.bin" resource embedded inside the assembly.
When our addon is being loaded, it's creating a separate AppDomain to avoid any side effects the host application might have, so I have no idea what they could actually do to make our addon fail so miserably.
I even looked at the assemblies loaded into our AppDomain when initializing the configuration system fails and System.Xml.dll is already loaded at the very beginning, so I really cannot see what could keep the assembly from finding its own embedded resource... To my understanding, even fiddling with CAS cannot influence access to an assembly when it's already loaded, can it?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
How to divide the individual character from the cursive font on the image
DNL Murthy
modified 4-Apr-16 10:22am.
|
|
|
|
|
You have already been advised to use the forum at the end of the article for such questions.
|
|
|
|
|
You ought to remove your email address from your signature. It attracts spam.
And it attracts spammers to visit CP for harvesting email addresses.
|
|
|
|
|
Hi Sir,
I am Murthy, I am try to developing cursive data recognization on image. I downloaded your project, It was a great project. But unable to get the individual character from the image. Please help sir
D N L Murthy
modified 4-Apr-16 10:22am.
|
|
|
|
|
The article is not "our" article. It belongs to the person who wrote it. Articles are contributed by the volunteer community, not necessarily by The Code Project. At the bottom of the article you're talking about you'll find a forum dedicated to that article. Articles are supported by the people who wrote them.
|
|
|
|
|
Hi I wrote a dvd burning utility using the code from imapi2Interop.cs by Eric Haddan in Code Project. It works fine. Thank Eric for posting the code.
I write my data in three sessions (on purpose)so that I can (hopefully) generate a unique id (Sha1 hash using the physical starting and ending offsets of each of the sessions + other stuff), according to what I read the offsets could change if the disc is copied.
I tried using MsftDiscFormat2Data.MultisessionInterfaces but it looks like it is not valid for closed dvd.
Any pointer or idea as to how I may be able to get the start and ending offsets of each of the sessions in the DVD?
Thanks.
|
|
|
|
|
Hello,
take the following scenario:
We have a Windows Forms application called "CallMultiple" which accepts e.g. one string parameter in the Main method.
Now - via a command input - this application is tiggered the first time. It gets the input string "first", and sets a static variable "invocation count" to zero as well as the parameter "first" into a static variable called "invocation type". Both static variables should be public.
With parameter "first" a GUI Window is presented.
The process only ends if somebody clicks the "Terminate" button in displayed GUI Window.
Now there happens a second invocation with parameter value "second".
(The case, that the value "first" is coming again shall not be handled for this question).
Question: is it possible to compare the parameter of this invocation ("second") to the parameter already stored in the first invocation "invocation type" = "first" ?
and if it is not "first" will do something different, e.g bump the static counter "invocation count" and then ends (that is: dispose the process).
Can the waiting process (first invocation) get the counter and display e.g. a message like "application called x times" before it will end (triggered by the "terminate" button in the GUI Windows)
That means: can two processes of the same assembly share data via public static variables ?
Can somebody answer this question.
Many thanks in advance
Wolfgang
|
|
|
|