Send Email with SimpleMail
Page 1 of 1 • Share •
Send Email with SimpleMail
Here is the code
<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ASP Sample Mailer</title>
</head>
<body>
<p>We are sending mail according to your hardcoded parameters.<p>
<%
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
<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ASP Sample Mailer</title>
</head>
<body>
<p>We are sending mail according to your hardcoded parameters.<p>
<%
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
Permissions of this forum:
You cannot reply to topics in this forum





