Hi,
Is there any way to connect to smtp server
with ASP ?
if answer is no , what is the way ?
Thanx
Printable View
Hi,
Is there any way to connect to smtp server
with ASP ?
if answer is no , what is the way ?
Thanx
If you're running your're own server make sure that CDONTS and SMTP server is installed(if not re-run the NT Option pack and Add the SMTP mail). If you're not running you have an NT web host they probably have it installed already.
plug in the following code:
or if you want to screw around with your own custom components and use early binding set a reference to Microsoft CDO for NTS 1.2 Library but to use it you'll have to make sure you've installed SMTP Mail Server on your machine.Code:<%
set objNewMail = Server.CreateObject("CDONTS.NewMail")
with objNewMail
.From = "[email protected]"
.To = "[email protected]"
.Body = "Body of the email"
.Subject = "Subject line"
.Send
end with
set objNewMail = Nothing
%>
Thank you .