2017-10-27 11 views
0

すでにAWS .net sdkを試してcomコンポーネントを作成しましたが、aws.core.dllに依存しているため動作しません。AWS Simple Email Sdk asp classic

Amazonやサードパーティは、asp classic VB Script用のSimple Email SDKを持っていますか?

答えて

0

は、ここで例taken from hereです:あなたは、これはAWSまたは他の誰からのサードパーティのコンポーネントではないことを言及することがあります

' http://msdn.microsoft.com/en-us/library/ms526318(v=exchg.10).aspx 
' Its good practice to use the module constants defined in the 
' type library for the names. The full names are used here to 
' indicate that this is what is going on 

Const cdoSendUsingMethod  = "http://schemas.microsoft.com/cdo/configuration/sendusing" 
Const cdoSendUsingPort   = 2 
Const cdoSMTPServer    = "http://schemas.microsoft.com/cdo/configuration/smtpserver" 
Const cdoSMTPServerPort   = "http://schemas.microsoft.com/cdo/configuration/smtpserverport" 
Const cdoSMTPConnectionTimeout = "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout" 
Const cdoSMTPAuthenticate  = "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" 
Const cdoBasic     = 1 
Const cdoSendUserName   = "http://schemas.microsoft.com/cdo/configuration/sendusername" 
Const cdoSendPassword   = "http://schemas.microsoft.com/cdo/configuration/sendpassword" 
'Use SSL for the connection (False or True) 
Const cdoSendTLS  = "http://schemas.microsoft.com/cdo/configuration/smtpusessl" 

' create CDOSYS objects 
Set myMail.Configuration = CreateObject("CDO.Configuration") 
Set Fields = myMail.Configuration.Fields 

' CDOSYS SMTP configuration 
With Fields 
.Item(cdoSendUsingMethod) = cdoSendUsingPort 
.Item(cdoSMTPServer)  = "smtp.example.com" 
.Item(cdoSMTPServerPort) = 25 ' SMTP port, 587 is possible too 
.Item(cdoSMTPAuthenticate) = cdoBasic ' send using SMTP authentication 
.Item(cdoSendUserName)  = "[email protected]" ' email address username 
.Item(cdoSendPassword)  = "password" 
.Item(cdoSendTLS)   = true 'send using TLS 
.Update 'update the configuration 
End With 
+0

、それは、Windowsのサーバーエディションに含まれているCDOを使用しています。これはおそらく私が今までに見つけた最高のCDOチュートリアルです。 http://www.powerasp.net/content/new/sending_email_cdosys.asp – John