16,004,778 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by arielbeck (Top 20 by date)
arielbeck
28-Aug-12 4:53am
View
but i'm not handling attachments, i handle the body.
arielbeck
22-Aug-12 5:23am
View
mostly parsing it, eventually, the body will be displayed in a viewer (which only supports plaintext right now).
arielbeck
22-Aug-12 3:36am
View
thanks for your answer :)
1. emails do support more than plain and html, (for example - in outlook u can create a rich one).
2. i will add what you said about richtext, tho right now the "viewer" supports only plain
3.i cannot add it to the attachment, because i receive the SMTP request, so i have no way to manipulate it when sending it, it can be anything.
it seems that there is no way to know, at least with .NET MailMessage, what is the body type in case of non-html.
arielbeck
15-Aug-12 15:37pm
View
oh :(...
then, back to the drawing board :(
arielbeck
15-Aug-12 15:06pm
View
no we can't, if the isBodyHtml=false, it can be either plaintext/richtext/xml - which is really bad to rely on
arielbeck
15-Aug-12 14:59pm
View
Deleted
no we can't, if the isBodyHtml=false, it can be either plaintext/richtext/xml - which is really bad to rely on
arielbeck
15-Aug-12 14:58pm
View
the thing is, we don't want to rely on the 3rd party , if its not tested well - it shouldn't affect our application. (we are the service itself, and we take plugins)
arielbeck
15-Aug-12 14:56pm
View
not yet, we decided not to work on the "attachments outside", and we will probably do it sometime in the future
arielbeck
15-Aug-12 14:54pm
View
Thanks!
i'll try that tomorrow, and see if it detects the body, when isBodyHtml=false, and there is no plaintext alternative in the AlternativeViews
i'll let u know
arielbeck
15-Aug-12 14:48pm
View
i dont think its correct, OpenPOP for example, parses the message parts, searches for HTML mime-type, which is set to the "Body" property.
the isBodyHtml will be true..
but, someone else can create the MailMessage and put richtext in the body, and i'll have no way to know if its rich or plain (isBodyHtml will be false)...
any other solution?
arielbeck
6-Aug-12 2:19am
View
I already know all those,
i just don't want to parse it myself. (if there's no way, i'll do that, and remove the base-64 attachment part).
arielbeck
5-Jul-12 10:17am
View
Deleted
by the way, this can done by spawning a new process and IPC through it, but it seems like an overkill
arielbeck
5-Jul-12 10:16am
View
man, this is just an abstract definition, this is not the code i'm writing.
the main issue, that i have a service, that sometimes calls a plugin function, if this function crashes, no problem, i can "try...catch" around it and handle it myself.
but if the plugin (which is 3rd party, someone else can write it) spawns a new thread that may crash?
if the plugin leaks? then it will affect my entire application (and customers that wrote a bad plugin may raise cases to us, that the service leaks, even though its their plug-in).
if all plugin code would run in an isolated enviornment (which we can kill and start), we won't have those problems, because if it leaks, we can prove it by shutting down the plugin itself, and if it crashes, we can write to log and load the plugin again.
by the way, this can done by spawning a new process and IPC through it, but it seems like an overkill
and last thing, suppose this was my code, the system wouldnt be filled up with threads, because an unhandled thread exception crashes the application.
arielbeck
4-Jul-12 1:01am
View
yes, though i wanted to use microsoft's one, but its not surprising that they don't fit.
i already made a POC with the hMailServer, and it seems to fit me.
thanks!
arielbeck
3-Jul-12 3:03am
View
I know its a false approach
i just want the SMTP server to put the files to a directory of my liking, then i want to parse it manually.
i couldn't find any hook or anything to the SMTP server, so i'm looking for a cleaner approach
arielbeck
3-Jul-12 2:41am
View
Sorry for the late response,
i want to generate the resx differently, i found ResXFileCodeGeneratorEx, something like that, though i'd rather use the microsoft's one
arielbeck
8-Feb-12 1:30am
View
not what i've asked.
i know how to do this, so u guess it needs to be recompiled as a lib.
arielbeck
1-Feb-12 6:22am
View
but i dont need an extra element, only an attribute...
arielbeck
31-Jan-12 11:33am
View
Deleted
of course the xml contains FirstName instead of UserPreferencesSafe...
arielbeck
25-Dec-11 7:00am
View
ye i know its not a common practice, but i just wondered.
so you say that the console project must be touched to change the output to lib, right?
Show More