Hi Dave,
I thought some ready code will certainly help u try e-mailing using CDONTS
..
[CDONTS: Collaboration Data Objects for NTS Component]
You also need to have SMTP service installed n configured on the WinNT
server.
*********** I am pasting it here 4 u ..try it !**************
<%@ Language=3DVBScript %>
<HTML>
<HEAD>
</HEAD>
<BODY>
<%
'CREATE A FORM AND PUT IS "ACTION" TO THIS ASP PAGE..
'Fetching Form data
tfrom =3D"pnpwr@l..."
tto =3D request.form("txtto")
tcc =3D request.form("txtcc")
tbcc =3D request.form("txtbcc")
tsubject =3D request.form("txtsubject")
tbody =3D request.form("txtbody")
'Creating the object
set objmail=3Dserver.createobject("CDONTS.newmail")
'Assigning the values..
objmail.from=3Dtfrom
objmail.to =3D tto
objmail.subject =3D tsubject
'objmail.bodyformat =3D 0
'objmail.mailformat =3D 0
objmail.body =3D tbody
objmail.cc=3D tcc
objmail.bcc=3Dtbcc
'Send the mail..
x=3Dobjmail.send
'Check if sucessfull...
if x=3D0 then
%>
<font face=3D"Arial" size=3D"2" color=3D"GREEN"><b>
Your Email has been sent successfully...
<%
else
%>
<br>
</b></font><font face=3D"Arial" color=3D"RED" size=3D"4" ><b>
There was an error sending your mail. Probably the mailid was incorrect...
</b></font>
<%
end if
%>
</BODY>
</HTML>
*************************************************************
regards,
Kalpesh.
----------------------------------------------------------------------
Subject: Mail function?
From: "Dave Burdick" <burdickdave@h...>
Date: Fri, 9 Aug 2002 00:22:49
X-Message-Number: 1
I'm coming over to ASP from PHP experience, where I frequently used a
mail
function to directly submit form data to a specified e-mail address.
So
far, the only way I can figure out how to submit data to an e-mail
address
with ASP is by using the post method and
action=3D"mailto:emailaddress@e...", which requires that the
client
machine has an e-mail account on it (outlook, outlook express, eudora,
etc.). Is there a mail function or script available that allows for
direct submittal of form data to an e-mail address without using the
client's e-mail program? Thanks a bunch.
If nothing in ASP, does JavaScript supply anything to perform these
actions?
----------------------------------------------------------------------