简体   繁体   English

在IIS6中的专用服务器(内存集)上使用cdo和classic asp发送电子邮件?

[英]sending email using cdo & classic asp on dedicated server (memset) in IIS6?

Firstly I am new to setting up a server so appologies for being dumb. 首先,我刚开始安装服务器,因此应用程序变得笨拙。

I have a website which is hosted on a provider called memset its a 2008r2 box using ms sql 2012. My domain was bought from my 1and1.co.uk account and the dns is pointing to my site - all working fine - site works! 我有一个网站托管在一个名为memset的提供程序上,该网站使用ms sql 2012发行。它是一个2008r2框。我的网域是从1and1.co.uk帐户购买的,并且dns指向我的站点-一切正常-站点正常! However in using cdo to send mail in a classic asp page I am struggling to understand how - what i should do. 但是,在使用cdo在经典的ASP页面中发送邮件时,我正在努力了解如何做-我应该怎么做。

I did create some email accounts on 1and1... but am unsure if this is correct or if i should do something different? 我确实在1and1上创建了一些电子邮件帐户...但是不确定这是正确的还是应该做一些其他的事情? I have set the site up to use iis7, and installed iis6 / smtp server on 2008r2. 我已将站点设置为使用iis7,并在2008r2上安装了iis6 / smtp服务器。

How should i configure iis6? 我应该如何配置iis6? should i send it via my new server i am creating - or forward the emails to 1and1 - and if so how do i do this? 我应该通过我正在创建的新服务器将其发送-还是将电子邮件转发到1and1-如果是,我该怎么做? is this to do with smart host at all ?? 这与智能主机有关吗?

So confused. 如此迷茫。

I am a web / dba developer by trade - not a server manager. 我按行业是Web / dba开发人员-不是服务器管理器。

Running Classic ASP on IIS 7.x Checklist: 在IIS 7.x清单上运行Classic ASP:

(1) Do not name site folders with .com, .net, etc at the end. (1)不要以.com,.net等结尾的站点文件夹命名。

(2) Create NEW user account: - [app pool user identity] is user: app_pool_blahblahblah, pw: xxxxxx (2)创建新的用户帐户:-[应用程序池用户身份]为用户:app_pool_blahblahblah,密码:xxxxxx

(3) In Server Manager, right click "Web Server (IIS)" and choose "Add Role Services". (3)在服务器管理器中,右键单击“ Web服务器(IIS)”,然后选择“添加角色服务”。 Add IIS 6 Management Compatibility. 添加IIS 6管理兼容性。

(4) In Server Manager under features add SMTP server. (4)在“服务器管理器”下的“功能”下,添加SMTP服务器。 Install IIS6 Resource Kit so you can Use Metabase Explorer. 安装IIS6资源工具包,以便可以使用元数据库资源管理器。 Grant the [app pool user identity] user read access to the /Local Machine/SmtpSvc/ and /Local Machine/SmtpSvc/1/ nodes in the IIS Metabas 授予[应用程序池用户身份]用户对IIS Metabas中的/ Local Machine / SmtpSvc /和/ Local Machine / SmtpSvc / 1 /节点的读取权限

(5) In Application Pool, advanced settings: - set .Net Framework version to "v2.0" <-- fixed issue with default asp doc not working! (5)在“应用程序池”中,进行高级设置:-将.Net Framework版本设置为“ v2.0” <-修复了默认ASP文档不起作用的问题! - set "Enable 32-bit applications" to TRUE. -将“启用32位应用程序”设置为TRUE。 - set managed pipeline mode to "Classic". -将托管管道模式设置为“经典”。 <-- this may not be necessary. <-可能没有必要。 - under Process Model, change Identity to "[app pool user identity]" account we created. -在“流程模型”下,将“身份”更改为我们创建的“ [应用程序池用户身份]”帐户。 - be sure "load user profile" is set to FALSE. -确保将“加载用户个人资料”设置为FALSE。 - be sure "maximum worker processes" is "1". -确保“最大工作进程”为“ 1”。

(6) Mail: In IIS 6 Management Console: http://intellitect.com/configuring-windows-smtp-server-on-windows-2008-for-relay/ - Under SMTP Virtual Server Properties: -- "Access" Tab --> Relay: add IPs of this box, including 127.0.0.1 -- "Delivery" Tab --> Advanced: for "fully qualified domain name" put name of box -- "Delivery" Tab --> Advanced: for "smart host" put "dedrelay.secureserver.net" -- "Delivery" Tab --> Outbound connections: Make sure limits are set to 100. -- "Security" Tab --> add "[app pool user identity]" and IIS_IUSRS (6)邮件:在IIS 6管理控制台中: http : //intellitect.com/configuring-windows-smtp-server-on-windows-2008-for-relay/-在SMTP虚拟服务器属性下:-“访问”选项卡->中继:添加此框的IP,包括127.0.0.1-“传递”选项卡->高级:对于“完全合格的域名”,输入框的名称-“传递”选项卡->高级:对于“智能主机”中放置“ dedrelay.secureserver.net”-“传递”选项卡->出站连接:确保限制设置为100。-“安全性”选项卡->添加“ [应用程序池用户身份]”并IIS_IUSRS

(7) In IIS 7.5 under web site: - Under ASP: -- ONLY IF PROBLEM: set enable buffering to "false" -- under limits change max req entity and buffering limit to 1024000000 -- set script language to "vbscript" -- set "send errors to browser" to true - Authentication --> edit "Anonymous Authentication" and set to app pool identity. (7)在IIS 7.5的网站下:-在ASP下:-仅在以下情况下:将enable buffering设置为“ false” –在限制下将max req实体和缓冲限制更改为1024000000 –将脚本语言设置为“ vbscript”- -将“发送错误到浏览器”设置为true-身份验证->编辑“匿名身份验证”,并设置为应用程序池标识。
- ONLY IF PROBLEM: under error pages: under 404 set to "/home.asp" and "execute URL" - ONLY IF PROBLEM: edit c:\\windows\\system32\\inetsrv\\config\\applicationHost.config: change to "Allow" - under Management (at bottom) go into "Configuration Editor". -仅当出现问题时:在错误页面下:在404下设置为“ /home.asp”和“执行URL”-仅当出现问题时:编辑c:\\ windows \\ system32 \\ inetsrv \\ config \\ applicationHost.config:更改为“允许” -在“管理”(位于底部)下,进入“配置编辑器”。 -- In the dropdown go to System.web --> http runtime and change maxRequestLength to 1024000000 -- In the dropdown go to System.webserver/security/requestFiltering --> chg allowDoubleEscaping=true -在下拉菜单中访问System.web-> http运行时并将maxRequestLength更改为1024000000-在下拉菜单中访问System.webserver / security / requestFiltering-> chg allowDoubleEscaping = true

(8) Set "Modify" Permissions for [app pool user identity] for the following folders: - your web site - windows\\temp - inetpub\\temp - inetpub\\mailroot - ONLY IF PROBLEM: windows\\serviceprofiles\\networkservice\\AppData\\Local\\Temp? (8)为以下文件夹的[应用程序池用户身份]设置“修改”权限:-您的网站-Windows \\ temp-inetpub \\ temp-inetpub \\ mailroot-仅当出现问题时:windows \\ serviceprofiles \\ networkservice \\ AppData \\ Local \\温度?

AND Set Permissions in registry: - ONLY IF PROBLEM: HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Jet\\4.0\\Engines? 并在注册表中设置权限:-仅在出现以下问题时:HKLM \\ SOFTWARE \\ Wow6432Node \\ Microsoft \\ Jet \\ 4.0 \\ Engines?

FOR THESE USER ACCOUNTS: - IIS_IUSRS - [app pool user identity] - NETWORK SERVICE 对于这些用户帐户:-IIS_IUSRS-[应用程序池用户身份]-网络服务

(9) Install and Use Process Monitor to find permissions issues - filter (9)安装并使用过程监视器查找权限问题-筛选器

(10) Make sure SSL v2 is not being used: Click Start, click Run, type regedit, and then click OK. (10)确保未使用SSL v2:单击“开始”,单击“运行”,键入regedit,然后单击“确定”。 In Registry Editor, locate the following registry key/folder: HKey_Local_Machine\\System\\CurrentControlSet\\Control\\SecurityProviders \\SCHANNEL\\Protocols\\SSL 2.0 Right-click on the SSL 2.0 folder and select New and then click Key. 在注册表编辑器中,找到以下注册表项/文件夹:HKey_Local_Machine \\ System \\ CurrentControlSet \\ Control \\ SecurityProviders \\ SCHANNEL \\ Protocols \\ SSL 2.0右键单击SSL 2.0文件夹,然后选择“新建”,然后单击“项”。 Name the new folder Server. 命名新文件夹服务器。 Inside the Server folder, click the Edit menu, select New, and click DWORD (32-bit) Value. 在“服务器”文件夹中,单击“编辑”菜单,选择“新建”,然后单击“ DWORD(32位)值”。 Enter Enabled as the name and hit Enter. 输入Enabled作为名称,然后按Enter。 Ensure that it shows 0x00000000 (0) under the Data column (it should by default). 确保在“数据”列下显示0x00000000(0)(默认情况下应显示)。 If it doesn't, right-click and select Modify and enter 0 as the Value data. 如果不是,请右键单击并选择“修改”,然后输入0作为“值数据”。 Restart the computer. 重新启动计算机。 Verify that no SSL 2.0 ciphers are available at ServerSniff.net or the Public SSL Server Database 验证ServerSniff.net或公共SSL服务器数据库上没有可用的SSL 2.0密码

(11) SSL issue where Safari tells client that it needs a certificate. (11)SSL问题,其中Safari告诉客户端它需要证书。 - Go into IIS settings for the SSL-protected site. -进入受SSL保护的网站的IIS设置。 - Click on "SSL Settings" - Choose "ignore". -点击“ SSL设置”-选择“忽略”。

If you need to send emails, I found that using the Mandrill Email API worked for me (mandrill.com). 如果您需要发送电子邮件,我发现使用Mandrill电子邮件API很适合我(mandrill.com)。 I am using Classic ASP and was having issues on my web host to do with exceeding the monthly limit for emails sent using their mail servers. 我正在使用Classic ASP,并且在我的虚拟主机上遇到问题,超出了使用其邮件服务器发送的电子邮件的每月限制。

I had to learn a bit about how to use JSON and Classic ASP but it was worth the time. 我不得不学习一些有关如何使用JSON和Classic ASP的知识,但这是值得的。

If you need any example code for how to do it, let me know, would be happy to help. 如果您需要执行任何示例代码,请告诉我,我们将很乐意为您提供帮助。

At least if you do that it'll save you a lot of server config and setup work. 至少,如果这样做,将节省大量服务器配置和设置工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM