Bob,
The IMail logs will tell you if any particular email was sent successfully
(Xdeliver = 1, where X is 'l' for local and 'r' for remote).
If not sent, IMail will return the message to the sender (if it can, meaning
the sender used a valid and correct return address).
Look into the CLU, imail1.exe, to send a message, using a file for the body
and the command line specifying the to and from addresses and the subject.
If you always use the same sender and that address has an account, any
undeliverable email will be returned to that account. Then if you check that
account with a standard email client (or a program?), you can see any
returned email (and any email sent to that address, too). The checking
program could look for standard return messages in the body of the email
('unknown user', 'unknown host', 'failed delivery, X tries') and determine
which are 'bounces' and which are other email.
HTH
Daniel Donnelly
________________________________________________________
----- Original Message -----
From: "Bob Silverberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 9:46 AM
Subject: RE: [IMail Forum] Sending email programmatically
> 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/
>
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/