设置objMail =无 fso.MoveFile Server.Mappath(" \db\My_DB.txt"),Server.Mappath(" \db\My_DB。 mdb") 如果我重命名.mdb,它会出现在电子邮件正文中,如下所示: HTML水平线。我只是将它作为.mdb发送,它没有如下所述的goo 。 Mike Y?Y ??? =? ?? t ?? ??? ????¥=(?????? 00 ????? 如果我点击回复按钮,会显示其他字符: ?Y ??? =? ?? t ?? ??? ????¥=(?????? 00 ????? ?? Name =" qsl_updates" HelpContextID =" 0" VersionCompatible32 =" 393222000" CMG =" 4042A82EAC2EAC2EAC2EAC" DPB =" 8082686B696B696B" GC =" C0C228AB29AB2954" [主机扩展器信息] & H00000001 = {3832D640-CF90-11CF-8E43-00A0C911005A}; VBE;& H00000000 [工作区] ?Y?是?????????????????????????????????? $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ b ??????????????????????????????????????????????????? b ? $ b $bí ?C?1?t?/?ê?¥?????????????????? b $ b ?? t ?? ??? ??? ?¥=(?????? 00 ????????? Name =" qsl_updates" HelpContextID =" 0" VersionCompatible32 =" 393222000" CMG =" 4042A82EAC2EAC2EAC2EAC" DPB =" 8082686B696B696B" GC =" C0C228AB29AB2954" [主机扩展器信息] & H00000001 = {3832D640-CF90-11CF-8E43-00A0C911005A}; VBE;& H00000000 [工作区] ??? £?q2ó7?V 10 9E ??? [?AEJ} Q'EDX [升?3IZ 2 O 3 CIO ??? ???ķμ???? ZI ???'±,θY?9QZ 2 O |?????????????èJU C'YI ?? A IΔ V¥AA JP£q2ó7V 10 9E ??? [AEJ} Q EDX [升3IZó ?CIO ??? ???ķμ???? ZI ???'±,θY 9QZö|??????èJU C'??????YI A IΔ v¥AA JP £?q2ó7?V 10 9E ??? [?AEJ} Q'EDX [升?3IZ 2 O 3 CIO ??? ???ķμ???? ZI ???'±,θY?9QZ 2 O |?????????????èJU C'YI ?? A IΔ V¥AA JP£q2ó7V 10 9E ??? [AEJ} Q EDX [升3IZó ?CIO ??? ???ķμ???? ZI ???'±,θY 9QZö|??????èJU C'??????YI A IΔ v¥AA JP £?q2ó7?V 10 9E ??? [?AEJ} Q'EDX [升?3IZ 2 O 3 CIO ??? ???ķμ???? ZI ???'±,θY?9QZ 2 O |?????????????èJU C'YI ?? A IΔ V¥AA JP£q2ó7V 10 9E ??? [AEJ} Q EDX [升3IZó ?CIO ??? ???ķμ??? L#?????????????????????????? ????????? ?? Z y'g? í???? ~ ) $ b $bèo? ? m Z G D? a ?????????? =? ?? t ?? ??? ????¥=(?????? 00 ???????????????????????????????????????????????????????????????????????????????????????????????????????? /> VersionCompatible32 =" 393222000" CMG =" 4042A82EAC2EAC2EAC2EAC" DPB =" 8082686B696B696B" GC = C0C228AB29AB2954 [主机扩展器信息] & H00000001 = {3832D640-CF90-11CF-8E43-00A0C911005A}; VBE;& H00000000 [工作区] ?? Y?Y?Y?Y ?? \ $ b $béok Y?Y?Y?Y?Y $ b $bê · @ - ? £?}jó?à?í?o?C?0 ?? ÷ ? m Z G D?a? ?? ?????????????????????????????????????????????????????????????????????????????? ??Lòì???pó|£???? = 1~t ?????óepLòì???pó|£???? = 1~t ?????óepLòì???pó|£? ??? = 1~t ?????óepLòò???pó|£?? ?? = 1~t ?????óepUa-4°?}è???? Lòì???pó|£???? = 1~t ?????óepLòì???pó|£???? = 1~t ?????óepua -4°?}è???? $ b $bLòì???pó|£???? = 1~t ?????óepLòì???pó|£???? = 1~t ?????óepua-4°?}è???? $ b $bLòì???pó|£???? = 1~t ?????óepLòì? ??pó|£???? = 1~t ?????óepLòì???pó|£???? = 1~t ?????óepLòì???pó|£???? = 1〜吨???? ?óepLòì???Pó|£???? = 1〜吨?????óepLòì???Pó|£???? = 1〜吨?? ????????????????????????????????????????????????????????????????????????????????? ???? = 1~t ?????óepLòò????pó|£???? = 1~t ?????óepUa-4°?}è???? $ b $bLòì???pó|£???? = 1~t ?????óepR???? z ??? e $> Y $ b $bê · @ - ? £? }jó?à?í?o?C?0 ?? ÷ ? m Z G ??? Y? Thanks, Bob.I have an asp page which e-mails an updated Access db to a couple of people. Oneof them uses Outlook, and it refuses an .mdb file, so I''m renaming the file to a..txt extension. As you see, I''ve switched to CDO and the problem is the same.Here''s a little test page (sorry for the wrapping): Set fso = CreateObject("Scripting.FileSystemObject")fso.MoveFile Server.Mappath("\db\My_DB.mdb"), Server.Mappath("\db\My_DB.txt")Set objMail = Server.CreateObject("CDO.Message")ObjMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2ObjMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.yoursite.com"ObjMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25ObjMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = FalseObjMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60objMail.From = "DB******@mydomain.com"objMail.To = "pe*****@comcast.net"objMail.BCC = "pe*****@comcast.net"objMail.Subject = "Yesterday''s Updates Table as .txt"objMail.TextBody = "Here it is with a .txt extension"objMail.AddAttachment(Server.MapPath("/db/My_DB.txt"))objMail.SendSet objMail = nothingfso.MoveFile Server.Mappath("\db\My_DB.txt"), Server.Mappath("\db\My_DB.mdb") If I rename the .mdb, this appears in the e-mail body following what looks likean HTML horizontal line. I I just send it as a .mdb, it doesn''t have the "goo"as outlined below.Mike YY=t??¥=(00???? If I hit the reply button additional characters are exposed:Y=t??¥=(00????Name="qsl_updates"HelpContextID="0"VersionCompatible32="393222000"CMG="4042A82EAC2EAC2EAC2EAC"DPB="8082686B696B696B"GC="C0C228AB29AB2954" [Host Extender Info]&H00000001={3832D640-CF90-11CF-8E43-00A0C911005A};VBE;&H00000000 [Workspace]YY?YYYYY???????????N ?:?°k&á?Wí?Ct1t/ê¥???=t??¥=(00????Name="qsl_updates"HelpContextID="0"VersionCompatible32="393222000"CMG="4042A82EAC2EAC2EAC2EAC"DPB="8082686B696B696B"GC="C0C228AB29AB2954" [Host Extender Info]&H00000001={3832D640-CF90-11CF-8E43-00A0C911005A};VBE;&H00000000 [Workspace]?£?q2ó7?V9é¨??[?aeJ}Q?êDx[l?3IZó?cìó?K?μ????zI??′±??Y?9QZ?O|è?Júc?′YIA?í??v¥?aá?jp£?q2ó7?V9é¨??[?aeJ}Q?êDx[l?3IZó?cìó?K?μ????zI??′±??Y?9QZ?O|è?Júc?′YIA?í??v¥?aá?jp£?q2ó7?V9é¨??[?aeJ}Q?êDx[l?3IZó?cìó?K?μ????zI??′±??Y?9QZ?O|è?Júc?′YIA?í??v¥?aá?jp£?q2ó7?V9é¨??[?aeJ}Q?êDx[l?3IZó?cìó?K?μ????zI??′±??Y?9QZ?O|è?Júc?′YIA?í??v¥?aá?jp£?q2ó7?V9é¨??[?aeJ}Q?êDx[l?3IZó?cìó?K?μ????zI??′±??Y?9QZ?O|è?Júc?′YIA?í??v¥?aá?jp£?q2ó7?V9é¨??[?aeJ}Q?êDx[l?3IZó?cìó?K?μ???L#?????? ????????Zy′gí??~)èo?mZGD?a???=t??¥=(00??????????Name="qsl_updates"HelpContextID="0"VersionCompatible32="393222000"CMG="4042A82EAC2EAC2EAC2EAC"DPB="8082686B696B696B"GC="C0C228AB29AB2954" [Host Extender Info]&H00000001={3832D640-CF90-11CF-8E43-00A0C911005A};VBE;&H00000000 [Workspace]YYYY?\éokYYYYYê·@-£?}jóàíoC0÷?mZGD?a???????n÷??ZG4?a? YY??Lòì??pó|£??=1~t???óepLòì??pó|£?? =1~t???óepLòì??pó|£??=1~t???óepLòì??pó|£?? =1~t???óepUa-4°?}è?Lòì??pó|£??=1~t???óepLòì??pó|£??=1~t???ó epUa-4°?}è?Lòì??pó|£??=1~t???óepLòì??pó|£??=1~t???ó epUa-4°?}è?Lòì??pó|£??=1~t???óepLòì??pó|£??=1~t???ó epLòì??pó|£??=1~t???óepLòì??pó|£??=1~t?? ?óepLòì??pó|£??=1~t???óepLòì??pó|£??=1~t? ??óepLòì??pó|£??=1~t???óepLòì??pó|£??=1~t ???óepLòì??pó|£??=1~t???óepLòì??pó|£??=1 ~t???óepUa-4°?}è?Lòì??pó|£??=1~t???óepR?zeYê·@-£?}jóàíoC0÷?mZGY 谢谢,鲍勃。 我有一个asp页面,它将一个更新的Access数据库通过电子邮件发送给几个人b 。一个 他们使用Outlook,它拒绝.mdb文件,所以我将文件重命名为.b $ b扩展名为.txt。 Thanks, Bob.I have an asp page which e-mails an updated Access db to a couple ofpeople. Oneof them uses Outlook, and it refuses an .mdb file, so I''m renamingthe file to a .txt extension. 您是否考虑过压缩文件? - Microsoft MVP - ASP / ASP.NET 请回复新闻组。我的From 标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。 Have you considered zipping the file instead? --Microsoft MVP -- ASP/ASP.NETPlease reply to the newsgroup. The email account listed in my Fromheader is my spam trap, so I don''t check it very often. You will get aquicker response by posting to the newsgroup. 这篇关于哪个组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-24 15:36