Thanks for the info Shane.  Let me explain exactly what I'm trying to do.
Perhaps someone else has encountered this.  Please not that I am an absolute
newbie when it comes to iMail, so there may be a very simple solution to my
problem.

I want to create a trigger in a SQL Server table, which will send an email
and inform me if the email is not successfully sent.  Now, creating and
formatting this email entirely within SQL Server using Transact-SQL will be
a major pain in the behind, so I probably need to write a program (I could
use VB or ColdFusion) which will read some information from the database and
then send the email.  This is very simple to do with ColdFusion, and I can
get the trigger to run the ColdFusion template.  The problem is, I need to
be informed of whether the email was sent successfully or not.  With
ColdFusion, if the email is not successful nothing happens.  So, I'm
wondering if I can somehow create the body of the email, and pass it onto
iMail, which will then attempt to send the email, and if it fails, will send
a custom email to a different address, informing of the failure.

One last wrinkle, currently iMail and SQL/ColdFusion are on two different
machines.  In the future there will be 3 separate machines each hosting one
component.

Does that make sense?

Any suggestions?

Thanks for your help,
Bob

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Perry
Sent: March 29, 2001 8:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [IMail Forum] Sending email programmatically


> I am trying to figure out how to programmatically interact with
> iMail.  Their tech support said they couldn't help me and that I
> should check the forums.  I saw your note, so I hope you don't
> mind me asking you.

Are you talking about "programmatically" as in "I have an ASP page that
needs to send E-mail" or as in "I have a C++ program that I want to use an
API to interact with IMail"?

For ASP and the like, you just send mail through SMTP, it's simple (assuming
you have a way to communicate via SMTP).

IMail has no API, however.  So, you can't interact with it (except through
command line utilities).  The one main exception is the hook that they have
that allows you to intercept E-mail (like our Declude software does).  That
just gives you a chance to look at the E-mail, but you don't have an API to
use.


--
                      -Scott

Declude: Anti-virus and Anti-spam solutions for IMail.
http://www.declude.com
--

Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Reply via email to