Okay,
Well, there is a bit of an issue here with MAPI, which I find "oxymoronically" ironic, that Exchange utilizes MAPI to communicate and at the advancements in .Net development we have yet to have an equivalent that allows us to communicate with Exchange Server.
I need to send emails. Lots of emails. Sure I could probably set up Database Mailing, but that would require us to stop using Sql Server Express, and if that is the
only reason to buy it, not very cost effective when I can handle the emailing internal to our software. However, our security IT team has pointed out that they normally
do not allow SMTP relay due to the obvious security hole it presents. (One person gets a virus/malware/bot etc, and it can blast out across the net via the smtp relay in Exchange. (unless the relay is disabled)
When it is disabled, this issue is resolved via the specific profile and account based communication between Outlook and Exchange server through MAPI. Perhaps there is another form of communication available, but so far that is the only one i've found. Now, there is mapi32.dll. There is CDO.dll (v1.21) via Outlook, however, they are not "supported" by Managed (a cute way of saying .Net) Code. WHich means I either have to write the whole thing from C++ (rather not do) or Delphi in order to access this level of Win32 API.
My problem is: Outlook Does it, Eudora Does, even Mozilla email engine can connect to Exchange server, so why can't I? I need to be able to automate the sending process of multiple emails daily without any additional user interaction. Thus my restrictions are:
I CANNOT :
- Have Outlook / Exchange pop up and complain every time I send an email programmatically.
- Use SMTP Relay (System.Net.SmtpClient) as the Security at our company does not allow SMTP Relay
absolutely no using the SMTPClient class. (i'm using it currently and I already know that when the SMTP relay is disabled this won't work, all the emails get flagged as undelivered)
I WANT: To use a specific network created Email Account in Exchange whose sole purpose is to send these automated emails from our system. I have the account, the password, and the address of the Exchange Server, (and rather little patience with how frustrating this has been). I am basically creating a System level Email Client, no different than any other Email Client that I have listed above (except I'm only sending not receiving), so how do I do it? All these other email clients can connect to Exchange server no problem and send and receive email. How do I write my own in .Net, without using SMTP?
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
"Never Trust a computer. Your brain is smarter than any micro-chip."