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?
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
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