Programmatically Sending Email

The following programming examples will not work within Web Press.


Set msg = CreateObject("CDO.Message")
msg.Configuration.Fields.Item( "") = 2
msg.Configuration.Fields.Item( "") = "localhost"
msg.Configuration.Fields.Item( "") = 10

msg.To = ""
msg.From = ""
msg.Subject = "Sample Email Subject"
msg.TextBody = "Sample Email Message Body"

set msg=nothing

ASP.Net (C#)

Add the following to the web.config file:
            <add assembly="WebServices.Email, Version=, Culture=neutral, PublicKeyToken=05E1FECE8F9B620C"/>
Add the following to the aspx file:
<script runat="Server" language="C#">
protected void page_load(object sender, EventArgs e)
    WebServices.Email.Send.Text("", "", "Sample Email Subject", "Sample Email Message Body");