更新时间:2023-11-30 12:55:22
MikeR写道:
MikeR wrote:
任何人都知道要提交CDONTS问题的小组?
谢谢,Mike
Anyone know a group to submit a CDONTS question to?
Thanks, Mike
我想这取决于具体情况。如果您在ASP处理的代码中使用它,那么这是正确的位置。
我知道没有专门为CDONTS问题设置的组。
顺便提一下,CDONTS已经过时了。参见
http://classicasp.aspfaq.com/email/h...-with-cdo.html
-
Microsoft MVP - ASP / ASP.NET
请回复新闻组。我的From
标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。
I suppose it depends on the context. If you are using it in code being
processed by ASP, then this is the right location.
I know of no group set up specifically for CDONTS questions.
Incidentally, CDONTS is obsolete. See
http://classicasp.aspfaq.com/email/h...-with-cdo.html
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP]写道:
Bob Barrows [MVP] wrote:
我想它取决于上下文。如果您在ASP处理的代码中使用它,那么这是正确的位置。
我知道没有专门为CDONTS问题设置的组。
顺便提一下,CDONTS已经过时了。参见
http://classicasp.aspfaq.com/email/h...-with-cdo.html
谢谢,鲍勃。
我有一个asp页面,可以通过电子邮件将更新的Access数据库发送给几个人。一个
他们使用Outlook,它拒绝.mdb文件,所以我将文件重命名为
..txt扩展名。如你所见,我已经切换到CDO,问题是一样的。
这是一个小测试页面(对不起包装):
设置fso = CreateObject(" Scripting.FileSystemObject")
fso.MoveFile Server.Mappath(" \db\My_DB.mdb"),Server.Mappath(" \ db \ My_DB.txt")
设置objMail = Server.CreateObject(" CDO.Message")
ObjMail.Configuration.Fields.Item
(" http://schemas.microsoft.com/cdo/configuration/sendusing")= 2
ObjMail.Configuration.Fields.Item
(" ; http://schemas.microsoft.com/cdo/configuration/smtpserver")=" mail.yoursite.com"
ObjMail.Configuration.Fields.Item
(" http://schemas.microsoft.com/cdo/configuration/smtpserverport")= 25
ObjMail.Configuration.Fields.Item
(" http: //schemas.microsoft.com/cdo/configuration/smtpusessl")=错误
ObjMail .Configuration.Fields.Item
(" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")= 60
objMail.From =" DB******@mydomain.com"
objMail.To =" pe ***** @ comcast.net"
objMail.BCC =" ; pe ***** @ comcast.net"
objMail.Subject ="昨天'的更新表为.txt"
objMail.TextBody ="这里的扩展名为.txt"
objMail.AddAttachment(Server.MapPath(" /db/My_DB.txt"))
objMail.Send >
设置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. One
of 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") = 2
ObjMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.yoursite.com"
ObjMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
ObjMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objMail.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.Send
Set objMail = nothing
fso.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 like
an 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
í ? C t1t/ê¥???=
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#?????? ????????Z
y′gí??
~
)
è o ?
m
Z
G
D ? 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
÷
?
m
Z
G
D ? 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 ?ze
Y
ê
·
@
-
£?}jóàíoC0
÷
?
m
Z
G
Y
MikeR写道:
MikeR wrote:
Bob Barrows [MVP]写道:
Bob Barrows [MVP] wrote:
>我想这取决于上下文。如果你在ASP处理的代码中使用它,那么这是正确的位置。
我知道没有专门为CDONTS问题设置的组。
顺便说一下,CDONTS已经过时了。参见
http://classicasp.aspfaq.com/email/h...-with-cdo.html
谢谢,鲍勃。
我有一个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 of
people. One
of them uses Outlook, and it refuses an .mdb file, so I''m renaming
the file to a .txt extension.
您是否考虑过压缩文件?
-
Microsoft MVP - ASP / ASP.NET
请回复新闻组。我的From
标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。
Have you considered zipping the file instead?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.