You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
502 B
Plaintext

<%
Function SendMail(mTo , mFrom , mSubject , mBody)
Set objCdonts = Server.CreateObject("CDONTS.NewMail")
objCdonts.To = mTo
objCdonts.From = mFrom
objCdonts.Subject = mSubject
objCdonts.Body = mBody
objCdonts.Send
Set objCdonts = Nothing
If Err Then
SendMail = False
Else
SendMail = True
End If
End Function
%>
and to call the function we can use something like this
<%
SendMail "youremail@email.com" , "myemail@email.com" , "testing" , "testing again"
%>