Amigos,
fiz um script para enviar imagem para meu
servidor e em seguida attachar a magem para um email tb ..
está assim:
<CFFILE
ACTION="" FILEFIELD="foto" DESTINATION="E:\silver\mitcha\mitcha.com.br\www\blog\comentarios\" NAMECONFLICT="makeunique"> até aqui ocorre tudo ok, o
upload é feito e enxergo a imagem no meu ftp..
<cfquery datasource="#application.dsn#"> INSERT INTO FOTOS (foto, descri, datinha) VALUES ( <cfif IsDefined("FORM.foto") AND #FORM.foto# NEQ ""> '#FORM.foto#' <cfelse> NULL </cfif> , <cfif IsDefined("FORM.descri") AND #FORM.descri# NEQ ""> '#FORM.descri#' <cfelse> NULL </cfif> , <cfif IsDefined("FORM.datinha") AND #FORM.datinha# NEQ ""> '#FORM.datinha#' <cfelse> NULL </cfif> ) </cfquery> até aqui tudo bem tb..
<cfquery name="omembro" datasource="#application.dsn#"> SELECT * FROM FOTOS where foto = '#FORM.foto#' and descri = '#form.descri#' </cfquery> <CFMAIL Query="omembro" From="Michelle <[EMAIL PROTECTED]>" Subject="Seus Dados no FotoZonas" Server="mail.mitcha.com.br" TO="[EMAIL PROTECTED]" Type="HTML" > <cfmailparam file="E:\silver\mitcha\mitcha.com.br\www\blog\comentarios\#form.foto#"> </cfmail> acho que o problema é aqui, porque aí aparece o
seguinte erro:
Error Diagnostic InformationUnable to attach file. Cannot attach 'E:\silver\mitcha\mitcha.com.br\www\blog\comentarios\C:\WINNT\TEMP\ACFBA2.tmp' to the mail message. The file does not exist. The error occurred while processing an element with a general identifier of (CFMAIL), occupying document position (30:2) to (37:3). Porque este arquivo temporário ? De onde tiram isso ?
Obrigada, michelle --^^--------------------------------------------------------------- This email was sent to: [EMAIL PROTECTED] EASY UNSUBSCRIBE click here: http://topica.com/u/?b1dnXn.b7M5gI.YXJxdWl2 Or send an email to: [EMAIL PROTECTED] For Topica's complete suite of email marketing solutions visit: http://www.topica.com/?p=TEXFOOTER --^^--------------------------------------------------------------- |
- Re: [cf-brasil] problemas para attachar arquivo em email Michelle Rocha
- Re: [cf-brasil] problemas para attachar arquivo em ... Leonardo Carneiro
- Re: [cf-brasil] problemas para attachar arquivo... Michelle Rocha