Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-14-2002, 11:18 PM   PM User | #1
details
New Coder

 
Join Date: Jul 2002
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
details is an unknown quantity at this point
CDONTS with attachments

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















__________________
If you don't do it this year, you will be one year older when you do. "Warren Miller"
details is offline   Reply With Quote
Old 08-15-2002, 06:00 PM   PM User | #2
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
This should get you going! :

http://msdn.microsoft.com/library/de...s_library_.asp

http://www.wondersky.com/etech/progr...ail_attach.htm
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)

Last edited by whammy; 08-15-2002 at 06:08 PM..
whammy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:26 AM.


Advertisement
Log in to turn off these ads.