Send Email with SimpleMail

Post new topic   Reply to topic

View previous topic View next topic Go down

Send Email with SimpleMail

Post by sakthi on Wed Jan 09, 2008 6:12 pm

Here is the code

<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">&lthtml>
&lthead>
&ltmeta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
&lttitle&gtASP Sample Mailer</title>
</head>
&ltbody>
&ltp&gtWe are sending mail according to your hardcoded parameters.&ltp>
<%
set o = Server.CreateObject("ADISCON.SimpleMail.1") ' create mailer!

o.MailServer = "127.0.0.1"
o.Sender = "Test@Test.com"
o.Recipient = "SomeOne@SomeCompany.Com"
o.Subject = "My first SimpleMail mail"
o.MessageText = o.MessageText = "Line 1" + Chr(13) + Chr(10) + "Line 2"
' of course, this could also be somethig like this:
' o.MessageText = Request("strMessage")

call o.Send

set o = Nothing
%>
</body>
</html>


Regards
Sakthi

sakthi
Leader

Posts: 187
Join date: 2007-12-02
Age: 25
Location: Coimbatore

View user profile

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum