Gossamer Forum
Home : General : Perl Programming :

sendmail and CDONTS

Quote Reply
sendmail and CDONTS
My hosting company is confusing me, I can run DBman on their NT server but not the sendmail function.

Below is what they told me, I don't think I can do this in a Perl script. Am I wrong?

Quote:

Thank you for contacting WinSave Technical Support.
We do support the use of cgi and perl, however, such scripts typically use sendmail as the mail program. As this is a Windows server, sendmail is not supported, you will need to use CDONTs to send the mail.

Here is a sample you can use:

<%
dim objMail

' -- set our email object variable as the required object type --

Set objMail = CreateObject("CDONTS.NewMail")

' -- email variables --
' -- change the to field to the email address you want to send the email to.
' -- change the subject and bodyformat if necessary

objMail.To = user@domain.com
objMail.From = user@domain2.com
objMail.Subject = "Test mail using CDONTS"
objMail.BodyFormat = "0" ' -- HTML format
objMail.Body = "Hi have nice day "


' -- send the email --
objMail.Send

' -- clean up object
Set objMail = Nothing
%>

Thanks in advance,
Joe Matthews
Subject Author Views Date
Thread sendmail and CDONTS joematt 5101 Oct 4, 2005, 10:29 AM
Thread Re: [joematt] sendmail and CDONTS
Andy 5029 Oct 4, 2005, 11:46 PM
Thread Re: [Andy] sendmail and CDONTS
joematt 5021 Oct 5, 2005, 5:36 AM
Post Re: [joematt] sendmail and CDONTS
NamedRisk 4955 Oct 10, 2005, 9:54 AM