README.md

December 5, 2022 ยท View on GitHub

Mail notification

Description

This code send a message to a specified address as a notification of the main mail message. Usually tells you if the message has been read or deleted.

More Info

It return a mail message of notification.

Submitted On
ByAlberto Sartori
LevelBeginner
User Rating4.5 (18 globes from 4 users)
CompatibilityASP (Active Server Pages)
CategoryAlgorithims
WorldASP / VbScript
Archive File

Source Code

<%
' MAIL NOTIFICATION, by RaS! (ras78@libero.it) 2001
' This simple example send a mail to the main address and a
' notify message to another one. You will receive a message that
' tell you if the main message has been read or deleted.
Set MyMail = Server.CreateObject("CDONTS.NewMail")
 MyMail.From = "sender@domain.com"
 MyMail.To = "second_address@domain.com"
 MyMail.Subject = "Hello World!"
 MyMail.Body = "Email test with notify"
 MyMail.Value("Disposition-Notification-To")="other_address@domain.com"
 MyMail.Send
Set MyMail = Nothing
%>