Hi! I'm newbie with ASP and I have a simple task to do. I should send email using IIS.
So I created html-file, which calls asp.page:
The asp-page is another simple example, test.asp:
When I open the html-file and press the submit button, all I see is the code inside the asp-file. So obviously this doesn't work. Any ideas what might be wrong?
I've added smtp-service to IIS and configured it to use smart host.
Any help is highly appreciated!
So I created html-file, which calls asp.page:
Code:
<html> <form action="test.asp" method="POST"> <input type="submit" VALUE="Send"> </Form> </html>
Code:
<html> <body> <% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="mikko.bothas@digia.com" myMail.TextBody="This is a message." myMail.Send set myMail=nothing %> <h3> Message has been sent! </h3> </body> </html>
I've added smtp-service to IIS and configured it to use smart host.
Any help is highly appreciated!
Comment