...

View Full Version : CDONTS with attachments



details
08-14-2002, 11:18 PM
I am using the following CDONTS code:
<%

Dim strFrom
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")

objMail.From = request.form("strFrom")
objMail.Subject = "Here is the info you requested"
objMail.AttachFile("e:\web\attachments\dway.doc")
objMail.To = request.form("strFrom")
objMail.Cc = "me@you.com"
objMail.Body ="Please see the attached document. " & vbcrlf & request.form("strName") & vbcrlf & request.form("strFrom")

objMail.Send

Response.write("<font color=white size=2 face=verdana>Please check your e-mail . . . . thank you!!</font>")

'You should always do this with CDONTS.
set objMail = nothing
%>



Some users that receive the attachment, get this mumble jumble.
Does anybody know of this happening or where the problem could be either, their email client or something like that. And if you notice at the bottom of the error below, it is call direcway3.doc, that is not even in the directory nor has it ever been created. Weird



begin 666 direcway.doc



MT,\1X*&Q&N$`````````````````````/@`#`/[_"0`&```````````````!
M````40``````````$ ``4P````$```#^____`````%
```#_____________
M____________________________________________________________
M____________________________________________________________
M____________________________________________________________
M____________________________________________________________
M____________________________________________________________
M____________________________________________________________
M____________________________________________________________
M____________________________________________________________
M____________________________________________________________
M_______________________LI<$`-R )!
``^!*_````````$
``````! ``

M6#@```X`8FIB:E46518````````````````````````)!!8`(E0``#=\```W
M?



``SBT```````````````````````````````````````#__P\`````````
M``#__P\```````````#__P\``````````````````````&P``````.(!````

M````X@$``.(!````````X@$```````#B`0```````.(!````````X@$``!0`

M`````````````/8!````````Y@\```````#F#P```````.8/````````Y@\`
M`!P````"$ ``/ ```/8!````````318``+8```!*$ ``*
```'(0````````
M<A ```````!R$ ```````'(0````````<A ```````!R$
```````'(0````


M````5!4```(```!6%0```````%85````````5A4```````!6%0```````%85
M````````5A4``"0````#%P``(
(``",9``!8````A4``(T`````````````
M````````````X@$```````!R$
````````````````````````````!R$ ``
M`````'(0````````<A ```````!R$
```````'H5````````VA
```````#B
M`0```````.(!````````<A
``````````````````'(0````````!Q8``!8`
M``#:$ ```````-H0````````VA ```````!R$
``1@```.(!````````<A `



M``````#B`0```````'(0````````5!4``````````````````-H0````````



M````````````````````````````````````````````````````````````
M````<A ```````!4%0```````-H0``!Z! ``VA
``````````````````%05



M````````X@$```````#B`0``````````````````````````````````````



M````````````````````````````````````````````5!4```````!R$
``
M`````#X0```,`````*NI?8- P@'V`0``\
T``.8/````````N!
``"(```!4
M%0``````````````````5!4````````=%@``,
```$T6````````5!4`````



M``![&0```````-H0````````QD```````!4%0```````-H0````````]@$`



M``````#V`0```````.(!````````X@$```````#B`0```````.(!````````



M`@#9````#49R;VTZ($YA=&EO;G=I9&4@4V%T96QL:71E#0U3=6)J96-T.B
@



M1&5T86EL<R!O;B!$25)%0U=!62!(:6=H(%-P965D(%-A=&5L;&ET92!);G1E



M<FYE="!397)V:6-E#0T-5&AA;FL@6]U(&9O<B!R97%U97-T:6YG(&UO<F4@



M:6YF;W)M871I;VX@;VX@1$E214-705D@:&EG:"US<&5E9"!S871E;&QI=&4@



M26YT97)N970@9G)O;2!.871I;VYW:61E(%-A=&5L;&ET92X@($1)4D5#5T%9



M(&ES('1H92!P97)F96-T('-O;'5T:6]N(&9O<B!P96]P;&4@=VAO('=A;G0@



M:&EG:"US<&5E9"!);G1E<FYE="!A8V-E<W,@8G5T(&1O(&YO="!H879E(&%C



M8V5S<R!T;R!$4TP@;W(@8V%B;&4@;6]D96US(&EN('1H96ER(&%R96$N($%V



M86EL86)L92!F;W(@:&]M92!O<B!S;6%L;"!O9F9I8V4@=7-E('1O(&5V97)Y



M;VYE(&EN('1H92!C;VYT:6YE;G1A;"!5;FET960@4W1A=&5S('=I=&@@82!C



M;&5A<B!V:65W(&]F('1H92!S;W5T:&5R;B!S:WDL($1)4D5#5T%9('5S97,@



M<V%T96QL:71E<R!T;R!G:79E('EO=2!A('-U<&5R(&9A<W0L(&%L=V%Y<RUO



M;B!);G1E<FYE="!C;VYN96-T:6]N()8@<V\@6]U(&-A;B!E;FIO2!T:&4@



M26YT97)N970@;&EK92!I="!W87,@;65A;G0@=&\@8F4N("!$25)%0U=!62!G



M971S('EO=2!O;FQI;F4@:6YS=&%N=&QY+"!L971S('EO=2!S=7)F(&%N9"!O



M<&5N('!A9V5S(&9A<W1E<B!A;F0@9&]W;FQO860@9FEL97,@:6X@82!F<F%C
M=&EO;B!O9B!T:&4@=&EM92!I="!T86ME<R!A(&1I86PM=7
@;6]D96TN#0T-



M3F]W(&=E="!T:&4@8V]M<&QE=&4@1$E214-705D@<WES=&5M(&9O<B!O;FQY
M("0Y.2XY.2!I;G-T86QL960A(
T-4W5R9B!W:71H('1H92!F87-T(&-R;W=D
M(2 @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @("
@("!4=V\@9W)E



M870@<V5R=FEC97.%;VYE(&1I<V@-#0``````````````````````````````



M````````````````````````````````````````````````````````````



M`````````````````````````````````````````````````````,\E(
`@
M`" `1 !O`'<`;@!L`&\`80!D`" `; !A`'(`9P!E`"
`9@!I`&P`90!S`" `
M90!F`&8`;P!R`'0`;
!E`',`<P!L`'D`"0`@`%D`;P!U`'(`(
!0`$,`( !A
M`&X`9 `@`'D`;P!U`'(`( !4`%8`( !C`&$`;@`@`',`:
!A`'(`90`@`'0`
M: !E`"



`<P!A`&T`90`@`$0`20!2`$4`0P!7`$$`60`@`&0`:0!S`&@`#0#/
M)2 `( `@`$D`;0!M`&4`9 !I`&$`= !E`"
`20!N`'0`90!R`&X`90!T`" `
M80!C`&,`90!S`',`+0!I`'0`&2!S`"
`80!L`'<`80!Y`',`(
!O`&X`(0`)
M`" `50!S`&D`;@!G`" `80!N`"
`;P!P`'0`:0!O`&X`80!L`"
`1 !)`%(`
M10!#`%0`5@`@`'4`< !G`'(`80!D`&4`( !K`&D`= `N`"
`(
!3`&\`( !Y

=== message truncated ===

ATTACHMENT part 2 application/octet-stream
name=direcway3.doc















:confused: :confused:

whammy
08-15-2002, 06:00 PM
This should get you going! :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_denali_attachment_object_cdonts_library_.asp

http://www.wondersky.com/etech/programming/asp/code_mail_attach.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum