- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Wow... he knows CDONTS... he knows Interop... Did he think Microsoft just forgot to add a built in email feature?
Admin
I think the best part is the "Go back to the drawing board" part.
Admin
back in the day - i made a C++ program to send emails from a database table.
made some good dough selling to people who couldnt find the internal packages. (not that they were all that good back then anyhow).
Admin
Why would microsoft go through all of the trouble building a System.Web.Mail namespace anyways. I mean, who really uses email?
5th post i hope (my favorite number)
Admin
I'd say he was coming from a Unix background (each program does one task, does it well, and provides a simple interface for other programs to work with), except that 1) Outlook hardly "does it well", and 2) he never installed Sendmail on the server.
Admin
Unlikely. This is the first hit for "programmatically send an email .NET":
How to send e-mail programmatically by using System.Web.Mail in Visual C# 2005 or in Visual C# .NET
so why should it take a few minutes?
Admin
How can some one be so...
How can someone go through such big efforts to get anything done and not stop to think that there might be other ways?
It starts to sound so normal that I get scared thinking that I might do something like this some day...
nhaaaaaaaa :p
Admin
Sorry pal, the first post somehow went astray, so your post is actually the 4th.
Admin
So wait, they tried all that before trying to write a SMTP class from scratch?
Admin
.NET whiz = Cheez Whiz
Admin
Or System.Net.Mail if you are using 2.0
Admin
This was the part that made me literally drop my jaw.
Admin
I'm just going to assume this person had or has zero clue that SMTP exists.
Admin
Sometimes, it does not help. There might not be a predefined way to do it. It happens often enough that some estimate that there is less effort in doing it oneself instead of hunting for something that does not exist.
HOWEVER, these days, with the Web and particularly, for something as common as E-mail, yes, this is a programmer WTF.
Another related thing is the fuss made over an invention. Someone discovers a great way of doing something, crows about it, maybe gets kudos for making it go right, and does not understand why the old-timer is not impressed. The reason for the last is that the discovery is old hat.
Sincerely,
Gene Wirchenko
Admin
The web is just what some upstart at CERN did for a summer project. The 'net, and its other applications, predate it by quite some decades...
Admin
So when some spyware app or whatever causes a prompt to install, the wonderful programmer(cough cough) just helps it along. Brillant! I guess security never entered his mind........
Ken
Admin
I want to know how anyone makes money on a product that clicks yes. Do they offer a ClickNo? ClickMaybe? ClickBrillant?
Admin
Strange... I thought that SmtpMail used CDONTS
Admin
In reply to many posts at once:
This guy was a self-though old-timer
Nobody after was impressed of what he did
Everybody have some "funny" story about this guy anyway
But... the ClickYes also made my jaw go wild.
I sent something else from that programmer to Alex, left to see if it's coming or not ;)
Admin
Admin
I meant, by writing void SendMail() that calls an outside application that implements the needed SMTP calls.
Admin
It cost $39.90, see http://www.contextmagic.com/express-clickyes
I think an ClickNo application is an unfilled market niche which probably could sell for much for than $39.90, since it's often harder to say no to things than yes.
Admin
It really would have been far simpler to open a socket and start talking SMTP. It's really quite easy!
Admin
Who needs an outside application? Just fetch a few tens of thousands of bucks, port the application to Oracle and let UTL_SMTP do the job.
Admin
Of course, the underlying WTF here is that the library is System.Web to send email. What if I want to send email from a Windows Forms application? System.Web has no business in that app.
Admin
<FONT face=Georgia>Obviously the "former .NET whiz" did all he could. The problem was with the drawing board.</FONT>
<FONT face=Georgia>>BiggBru</FONT>
Admin
Straight from Yahoo search for ClickYes:
Admin
how about ClickIsVeryNull?
Admin
The best part is that ClickYes has a ClickYes Pro v2.2 Serever Use License
No, I'm not kidding. It really is a Serever Use License.
Admin
I don't know which I find harder to believe, despite obvious evidence to the contrary:
Also, doesn't this guy test his code before checking it in?
Admin
actually he is fifth, he used to be sixth, considering the first post is the WTF itself
Admin
True, but why do people keep posting "first post" when they are actually 2nd, since Alex is 1st all the time?
Admin
He sounds like an old-school VB programmer being reluctantly dragged in the .net world. (And before he knew VB, he was most comfortable putting .bat files together.)
Admin
2004-12-02 14:07 -- Deploy to the server and learn that it doesn't work so well. You may want to find out why.
Admin
I have never tried to send an email from my own code, and had no idea that some languages actually had build-in libraries for this stuff. That said... mmm.... trying to open an external GUI app and trying to enter stuff that way... that just seems like the wrong way to go...
Admin
ClickIObject
the true wtf is that the captcha is a word I will sometimes use as a password.....seriously
Admin
What I just love is that ClickYes is blantantly sold as something working around a security feature "because it's annoying": http://www.contextmagic.com/express-clickyes/
Version 2.2.1. I'm tempted to download it just in the hope that the change log is included, to see how they could make so many revision of that thing.
It even got an API: http://www.contextmagic.com/express-clickyes/free-version.htm
This is depressing.
Admin
no doubt this is the type of guy who will later post msgs on .NET newsgroups that
1. complain about how .NET is so lacking in functionality that he was forced to buy a third-party "Yes" clicker to interface with Outlook
or
2. upon learning about System.Web.Mail, will complain about how .NET is too complicated, gee whiz how is anyone supposed to learn the thousands of classes? "I just want to solve real world business problems, waaah"
Congratulations to the developers of ClickYes. I didnt realize there could be a profitable niche for supporting WTF developers!
Admin
Could this be the program he used: http://www.contextmagic.com/express-clickyes/? What a horrible way of implementing email....
Admin
It uses CDONTS if it is on an OS less than XP, if it is XP or Server 2003 it uses CDOSYS.
Admin
That is exactly the program he used.
Admin
Wait, what if the program attempts to add an attachment, and outlook pops up a "File Not Found" [OK] dialog - maybe Paula will be called in to redefine YES for the ClickYes program ...
Admin
Maxim, i would like to see the other samples from this fellow. I would imagine his data access code starting off like:
1. programmatically execute MSACCESS.EXE....
Admin
I'm guilty of rolling my own email library in .NET instead of using the built in. (Well, I heavily modified another's email library anyways). The only reason I did this was because the built-in functionality, at least in v1.1, does not allow you to send a stream as an attachment. Instead it only allows you to attach paths to the filesystem. From my digging it seems that this is actually a limitation of CDO, which System.Web.Mail uses.
Admin
An excellent question. The answer is that computer science has long taught us to learn to do each and every low-level thing ourselves. While that is valuable for the learning process, it is the opposite of effective professional development and it's directly contrary to OO development, where you're supposed to treat other objects (and people) as opaque and trust them to do their respective jobs.
In general, if one starts thinking, "I can't believe Sun/Microsoft didn't bother doing X," then either they did it and you don't know about it, or they avoided doing it for a damn good reason. It's not that they're especially smart; it's that they have a lot of help in the form of a lot of outside contributors.
Admin
Installing Sendmail would be a big fat WTF.
It would have been the perfect closer though.
2004-12-08 01:12 -- ClickYes 2.2.12 is buggy. Instal cygwin, built m4, built sendmail, installed sendmail, piping email to sendmail. Will probably work.
Admin
I saw an enterprize access application that used ClickYes on the server to get around some macro security messages. i don't which is the bigger WTF, since there is an option to disable to the messages in the tools menu..
Admin
Sometimes they really didn't do it, for no obvious reason...
Admin
Seems like an oxymoron to me.
Admin
While executing Outlook.exe is stupid, I've used SMAPI to send e-mail from C and VB programs. Using SMAPI you can send attachments and send intra-company e-mails through Exchange and IMAPI servers. Turns out that SMAPI and MAPI uses Outlook, so you get that stupid message box (stupid because viruses and bulk e-mails do not use SMAPI or MAPI anymore). To top it all, Outlook Express (the one that comes with Windows) has a configuration to disable the message box but the full Outlook that comes with Office has not.
Oh yes, and the customer moved on from Exhange to Lotus Notes who has its own API for sending e-mails!