| The way to access external software from ASP is by creating Automation
Objects (aka components), and invoking methods on them ...
anExchange = Server.CreateObject("WWWTSA.EXCHANGE");
anExchange.init();
aSession = anExchange.startSession(username, userid);
anAccount = aSession.getOwnAccount();
There are standard, built-in components which let you access databases,
and files.
The question is, is there an automation interface to email, (or at least
to sockets, so that you could talk smtp).
In order to xlate numeric tcp/ip addresses to their name counterpart
inside ASP, I ended up having to create a simple automation object ...
hopefully there are automation components to let you send email.
Otherwise it is trivially easy to create automation servers using
Visual C++/Visual Basic.
Cheers,
/Damian
http://bigbird.geo.dec.com/stockexchange/ has a bit more on using ASP
and Automation
|
| Re: .0, .1
Stephen Genusa (a technical author and shareware developer) has a sharware SMTP Active Server
Component called ASPMail available from:
http://www.genusa.com/asp/aspcomp.html#aspmail
The full version costs $49.95, but a functional evaluation version
is also available for download from the above location.
Using the ASPMail component, you can send a simple mail as
follows:
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "Joe�s Widgets Corp."
Mailer.FromAddress= "Joe@Widgets.com"
Mailer.RemoteHost = "mailhost.localisp.net"
Mailer.Recipient = "John Smith|jsmith@toolscorp.com"
Mailer.Subject = "Great SMTP Product!"
Mailer.BodyText = "Dear Stephen" & Chr(13) & Chr(10) & _
"Your widgets order has been processed!"
if Mailer.SendMail then
Response.Write "Mail sent..."
else
Response.Write "Mail send failure. "
end if
He also has a free ASPExec component which can be used to run DOS and Windows
applications from within an ASP script. You could use this to run BLAT from
a script file. The ASPExec component is free and is available from:
http://www.genusa.com/asp/aspcomp.html#aspexec
Re: applicable news groups - there are a number of newsgroups in the microsoft.public.*
hierarchy you might find useful. Within Digital, these are accessible through the
relay/proxy/whatsit msnews-gw.pa-x.dec.com microsoft.public.inetserver.iis.activeserverpages
is one starting point. There are also a number of Microsoft-sponsored mailing lists,
including one for Active Server Pages.
A complete list is available at:
http://www.microsoft.com/sitebuilder/resource/mail.asp
Disclaimer: I have no connection with Stephen Genusa (author of ASPMail.)
Regards,
Grainne Ni Choiligh
European Software Centre @ILO
mailto:nichoiligh@mail.dec.com
|