Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear Friends,

We are having IIS7, now we are generating the mail from Classic ASP pages using 32 Bit.
If there any option generate the Mail using 64-Bit

HTML
Const cdoSendUsingMethod1 = "httpschemasmicrosoftcom/cdo/configuration/sendusing" 

Const cdoSendUsingPort1 = 2
Const cdoSMTPServer1 = _
"httpschemasmicrosoftcom/cdo/configuration/smtpserver"
Const cdoSMTPServerPort1 = _
"httpschemasmicrosoftcom/cdo/configuration/smtpserverport"
Const cdoSMTPConnectionTimeout1 = _
"httpschemasmicrosoftcom/cdo/configuration/smtpconnectiontimeout"
Const cdoSMTPAuthenticate1 = _
"httpschemasmicrosoftcom/cdo/configuration/smtpauthenticate"
Const cdoBasic1 = 1
Const cdoSendUserName1 = _
"httpschemasmicrosoftcom/cdo/configuration/sendusername"
Const cdoSendPassword1 = _
"httpschemasmicrosoftcom/cdo/configuration/sendpassword"

Dim objConfig ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields

' Get a handle on the config object and it's fields
Set objConfig = Server.CreateObject("CDO.Configuration")
Set Fields = objConfig.Fields

' Set config fields we care about
With Fields
.Item(cdoSendUsingMethod1) = cdoSendUsingPort1
.Item(cdoSMTPServer1) = "email.sever.com" 
.Item(cdoSMTPServerPort1) = 25
.Item(cdoSMTPConnectionTimeout1) = 10
.Item(cdoSMTPAuthenticate1) = cdoBasic1
.Item(cdoSendUserName1) = "mail@example.com"
.Item(cdoSendPassword1) = "123" 

.Update
End With

Set objMessage = Server.CreateObject("CDO.Message")

Set objMessage.Configuration = objConfig

With objMessage
.To = mailto
.From = mailto
.Subject = AP
.TextBody = AP & Now()
.Send
End With

Set Fields = Nothing
Set objMessage = Nothing
Set objConfig = Nothing
Posted
Updated 23-Sep-15 5:04am
v4
Comments
Richard Deeming 23-Sep-15 10:54am    
If you're not going to tell us how you are currently sending the mail, then how do you expect us to help you?

Use the "Improve question" button to update your question with the code you're currently using.
Arunprasath Natarajan 23-Sep-15 11:06am    
I have added the current code which is used. I hope the question is clear. I am just asking the methods to generate the mail in 64-Bit
Richard Deeming 23-Sep-15 11:16am    
As far as I know, CDO is a 32-bit COM component. You'll probably need to use a 32-bit AppPool to run your application.

Right click on the Application Pool and select "Advanced Settings...". Change the "Enable 32-bit Applications" setting to True.
Arunprasath Natarajan 23-Sep-15 11:24am    
Yeah, Currently I am using the same. But 32 Bits limits memory upto 4GB.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900