Thursday, July 12, 2007

Minor Update - BP Blog 7.04.01

Details here. Download link on the sidebar.

Comments Notification by Email

1. Put this line towards the top of your comments.asp page (on the line after <!--#include file="Connections/blog.asp" -->):
<!--#include file="inc_mailit.asp" -->

You can download the file here.

2. Put this on the line before the redirect line in comments.asp (around line 164):
MailIt "jmail.message", "smtp.host.com", "youremail@to.com", "fromemail@from.com", "New Comment Submitted", "Blog Url", "", a

More info:

Arguments:
============
Arguments that are optional or have defaults can be bypassed by using the
inherent VBScript constant vbNullString or the empty string placeholders "" in
place of a valid value.

ClsStr
String. Required. Should be one of the following class strings (use one
that's available on your server):
"jmail.smtpmail", "cdonts.newmail", "jmail.speedmailer", "jmail.message",
"macaspfreemail.aspfreemail", "activemessenger.message", "dynu.email",
"persits.mailsender".
Defaults to "Jmail.speedmailer" if the ClsStr argument is vbNullString or
empty string "".

Srv
String. Required (except when the "cdonts.newmail" argument is used for the
ClsStr argument). Mail Server IP Address or Host Name. Default value
is "mail.host name".

Too
String or Array. Required. Valid EMail address as string or multiple variant
email addresses in an array where each element of the array represents an
email address.

From
String. Required. Valid Email address.

Sbj
String. Optional. Subject text. Default is "No subject".

Body
String. Required. Body text.

File
String. Optional. Fully-qualified, absolute file path to a file to attach to
the email. The following class strings don't support the file
argument: "macaspfreemail.aspfreemail", "JMail.Speedmailer"

ErrDesc
String. Required. This argument passed is by reference and should be an empty
variable. The passed variable will be filled with an error message if MailIt
fails during the sending of email. You can test the variable to determine if
an error was encountered during processing.

syntax:
boolean = MailIt(ClsStr, Srv, Too, From, Sbj, Body, File, ErrDesc)

Via ASP Emporium