[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference gyro::internet_toolss

Title:Internet Tools
Notice:Report ALL NETSCAPE Problems directly to [email protected].rnet? Read note 448.L for beginner information.
Moderator:teco.mro.dec.com::tecotoo.mro.dec.com::mayer
Created:Fri Jun 25 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:4714
Total number of notes:40609

4681.0. "ASP anyone?" by SWETSC::WESTERBACK (Panta rei) Wed May 21 1997 11:01

	I'm not sure where this question should go, so I'm entering it
	in both INTERNET_TOOLS and WEB_AUTHORING. If anyone has a good
	news group to recommend, feel free!

	As I'm just discovering ASP, I figured maybe I could convert some
	old CGI scripts written in DCL. Have just started, but a 
	question arises at once: How do I send mail? I have some
	application forms that put together user input into a file,
	then mails it to someone. How can I do this if I write an ASP
	page in VBscript? I have Blat installed on the server, but 
	I can't see that it helps me here?

	Rgds,
	Hans
T.RTitleUserPersonal
Name
DateLines
4681.1HOUBA::MEHERSDamian, http://bigbird.geo.dec.com/Wed May 21 1997 11:1626
    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
    
4681.2ASPMailXSTACY::imladris.ilo.dec.com::grainneGrainne Ni ChoilighWed May 21 1997 12:3853
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= "[email protected]"
Mailer.RemoteHost = "mailhost.localisp.net"
Mailer.Recipient  = "John Smith|[email protected]"
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:[email protected]