CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 CDONTS

Print topic Send  topic

Author Message
Henryk

Posts: 63
Posted: 06/24/2005, 1:21 PM

I set up an event which sends an e-mail when a form is submitted. The function works fine, except some of the recipients will kick back the e-mail (I am assuming because of some kind of filters to prevent spam or something). I want to use our exchange server to send it instead to test if this is the case. I can not figure out how to change it to point to a remote smtp server. Any suggestions would be appreciated. Thank you!
View profile  Send private message
peterr


Posts: 5971
Posted: 06/24/2005, 6:24 PM

You may need to replace CDONTS code with CDO, which is usually pretty easy and self-explanatory. Various examples are at:
http://www.google.com/search?complete=1&biw=&hl=en&q=convert+cdonts+cdo

Sample CDO code for using a remote SMTP:
  
  set iConf = CreateObject("CDO.Configuration")  
  set iMsg = CreateObject("CDO.Message")  
  
  With iConf.Fields  
      .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2  
      .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtp_host  
      .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtp_port  
      .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60  
      .Update  
  End With  
  With iMsg  
      Set .Configuration = iConf  
      .To = email_to  
      .From = email_fromname & "<" & email_from & ">"  
      .ReplyTo = reply_to  
      .Subject = email_subject  
      .TextBody = text_body  
      .HTMLBody = html_body  
      .Send  
  End With  
  Set iMsg = Nothing  
  Set iConf = Nothing  

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.