Oi tathyana,essa procedure que eu enviei não anexa nenhum tipo de arquivo é apenas para envio de mensagens simples...fiz diversas tentativas de anexar arquivos com oracle,mas não obtive muito sucesso...mas existem alguns links que tratam do assunto, vou te enviar alguns abaixo pode ser que tu ache alguma coisa.. http://www.het-orakel.nl/05/01/03.htm http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:414468681 5509 (esse forum relata um arquivo xml como anexo)
Sirleno Vidaletti. -----Mensagem original----- De: oracle_br@yahoogrupos.com.br [mailto:[EMAIL PROTECTED] nome de Tathyanna Pelegrinni Enviada em: quarta-feira, 19 de julho de 2006 12:43 Para: oracle_br@yahoogrupos.com.br Assunto: Re: [oracle_br] Enviando e-mail pelo oracle Sirleno, Esta procedure envia arquivos do tipo "XML" tb??? On 7/19/06, Sirleno Vidaletti <[EMAIL PROTECTED]> wrote: > > Eduardo,essa procedure abaixo faz um envio de email via oracle é bem > fácil,caso o seu servidor de email precise de autenticação,digita no > google > utl.smtp + authentication que você acha algumas procedures com isso,espero > ter ajudado.. > > PROCEDURE SEND_EMAIL > (DESTINATARIO IN VARCHAR2 > ,ASSUNTO IN VARCHAR2 > ,MENSAGEM IN VARCHAR2 > ) > IS > remetente varchar2(30);--REMETENTE DA SUA MENSAGEM > CONEXAO UTL_SMTP.CONNECTION;--VARIÁVEL DE CONEXÃO COM O SERVIDOR > DE > EMAIL > crlf varchar2(2):= CHR(13) || CHR(10);--VARIÁVEL PARA FAZER A > QUEBRA DE LINHA > host varchar2(20);--ENDEREÇO IP DO SERVIDOR DE EMAIL > BEGIN > CONEXAO := utl_smtp.open_connection (host,25);--ABRINDO A CONEXÃO,O > VALOR > 25 É A PORTA DO SERVIDOR,O PADRÃO É 25 > UTL_SMTP.HELO (CONEXAO, host); > UTL_SMTP.MAIL (CONEXAO, ('<' || remetente || '>')); > UTL_SMTP.RCPT (CONEXAO, ('<' || destinatario || '>')); > UTL_SMTP.OPEN_DATA(CONEXAO); > UTL_SMTP.write_DATA(CONEXAO,'From: '||remetente || crlf|| > 'To: '||destinatario ||crlf || > 'Subject: '||assunto ||crlf || > MENSAGEM); > UTL_SMTP.CLOSE_DATA(CONEXAO); > UTL_SMTP.QUIT (CONEXAO); > Exception > WHEN OTHERS THEN > utl_smtp.quit (conexao); > raise_application_error(-20300, 'erro: '||sqlerrm); > End; > > Sirleno Vidaletti. > > -----Mensagem original----- > De: oracle_br@yahoogrupos.com.br [mailto:[EMAIL PROTECTED] > nome de Oracle Mail > Enviada em: quarta-feira, 19 de julho de 2006 05:15 > Para: oracle_br@yahoogrupos.com.br > Assunto: [oracle_br] Enviando e-mail pelo oracle > > > Olá Pessoal, > > > > > > Alguem tem alguma documentação que ensine a enviar e-mail > pelo > oracle com o pacote SYS.UTL_SMTP ou outro pacote ? > > > > > > Obrigado > > > > Eduardo. > > > > > > > > [As partes desta mensagem que não continham texto foram removidas] > > > > > This message has been 'sanitized'. This means that potentially dangerous > content has been rewritten or removed. The following log describes which > actions were taken. > > Sanitizer (start="1153303204"): > Part (pos="3546"): > SanitizeFile (filename="unnamed.txt", mimetype="text/plain"): > Match (names="unnamed.txt", rule="1"): > Enforced policy: accept > > Part (pos="3956"): > SanitizeFile (filename="unnamed.html, filetype.html", > mimetype="text/html"): > Match (names="unnamed.html, filetype.html", rule="1"): > Enforced policy: accept > > Note: Styles and layers give attackers many tools to fool the > user and common browsers interpret Javascript code found > within style definitions. > > Rewrote HTML tag: >>_span width="1" style="color: white;"/_<< > as: >>_DEFANGED_span width="1" style="color: white;"/_<< > Rewrote HTML tag: >>_/span_<< > as: >>_/DEFANGED_span_<< > Rewrote HTML tag: >>_span style="color: white;"/_<< > as: >>_DEFANGED_span style="color: white;"/_<< > Rewrote HTML tag: >>_/span_<< > as: >>_/DEFANGED_span_<< > Total modifications so far: 4 > > > > Anomy 0.0.0 : Sanitizer.pm <http://sanitizer.pm/> $Id: Sanitizer.pm<http://sanitizer.pm/>,v > 1.94 2006/01/02 16:43:10 bre > Exp $ > > > [As partes desta mensagem que não continham texto foram removidas] This message has been 'sanitized'. This means that potentially dangerous content has been rewritten or removed. The following log describes which actions were taken. Sanitizer (start="1153324840"): Part (pos="3575"): SanitizeFile (filename="unnamed.txt", mimetype="text/plain"): Match (names="unnamed.txt", rule="1"): Enforced policy: accept Part (pos="7349"): SanitizeFile (filename="unnamed.html, filetype.html", mimetype="text/html"): Match (names="unnamed.html, filetype.html", rule="1"): Enforced policy: accept Note: Styles and layers give attackers many tools to fool the user and common browsers interpret Javascript code found within style definitions. Rewrote HTML tag: >>_span width="1" style="color: white;"/_<< as: >>_DEFANGED_span width="1" style="color: white;"/_<< Rewrote HTML tag: >>_/span_<< as: >>_/DEFANGED_span_<< Rewrote HTML tag: >>_span style="color: white;"/_<< as: >>_DEFANGED_span style="color: white;"/_<< Rewrote HTML tag: >>_/span_<< as: >>_/DEFANGED_span_<< Total modifications so far: 4 Anomy 0.0.0 : Sanitizer.pm $Id: Sanitizer.pm,v 1.94 2006/01/02 16:43:10 bre Exp $ -------------------------------------------------------------------------------------------------------------------------- Atenção! As mensagens deste grupo são de acesso público e de inteira responsabilidade de seus remetentes. Acesse: http://www.mail-archive.com/oracle_br@yahoogrupos.com.br/ --------------------------------------------------------------------------------------------------------------------------__________________________________________________________________ Este Grupo recebe o apoio da SQL Magazine - www.devmedia.com.br/sqlmagazine __________________________________________________________________ O grupo Oracle_br não aceita anexos. Quando oferecer algum arquivo, tenha o link do mesmo para evitar trafego(pedidos) desnecessário. Links do Yahoo! Grupos <*> Para visitar o site do seu grupo na web, acesse: http://br.groups.yahoo.com/group/oracle_br/ <*> Para sair deste grupo, envie um e-mail para: [EMAIL PROTECTED] <*> O uso que você faz do Yahoo! Grupos está sujeito aos: http://br.yahoo.com/info/utos.html