Fabyo 66 Denunciar post Postado Março 9, 2005 Enviar Email com Anexo Como tem bastante usuarios com duvidas em "como enviar email com Anexo" eu fiz esse formulario que envia email com anexo,e validação de email email.html [color= #009900;][url="http://december.com/html/4/element/html.html"][color= #0000BB;]<html>[/url][url="http://december.com/html/4/element/head.html"]<head>[/url][url="http://december.com/html/4/element/script.html"]<script[/url] language="javascript">function checa_formulario(email){ if (email.nome.value == ""){ alert("Por Favor nao deixe o seu nome em branco!!!"); email.nome.focus(); return (false); } if (email.email_from.value == ""){ alert("Por Favor nao deixe o seu email em branco!!!"); email.email_from.focus(); return (false); } if (email.email.value == ""){ alert("Nao deixe o email destinatario em branco!!!"); email.email.focus(); return (false); } if (email.assunto.value == ""){ alert("Nao deixe o assunto em branco!!!"); email.assunto.focus(); return (false); }}</script>[url="http://december.com/html/4/element/title.html"]<title>[/url]Enviando texto</title>[url="http://december.com/html/4/element/meta.html"]<meta[/url] http-equiv="Content-Type" content="text/html; charset=iso-8859-1">[url="http://december.com/html/4/element/style.html"]<style[/url] type="text/css"><!--.email {text-transform: lowercase;}.texto {color: #0000FF}.style1 {color: #FF0000}--></style></head>[url="http://december.com/html/4/element/body.html"]<body[/url] onload="document.email.nome.focus();">[url="http://december.com/html/4/element/form.html"]<form[/url] onsubmit="return checa_formulario(this)" action="envia.php" method="post" enctype="multipart/form-data" name="email"> [url="http://december.com/html/4/element/h1.html"]<h1[/url] align="center" class="style1">Formulario de email com anexo </h1> [url="http://december.com/html/4/element/table.html"]<table[/url] width="32%" border="0" align="center"> [url="http://december.com/html/4/element/tr.html"]<tr>[/url] [url="http://december.com/html/4/element/td.html"]<td>[/url]Nome</td> [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/input.html"]<input[/url] name="nome" type="text" id="nome"></td> </tr> [url="http://december.com/html/4/element/tr.html"]<tr>[/url] [url="http://december.com/html/4/element/td.html"]<td[/url] width="33%">[url="http://december.com/html/4/element/div.html"]<div[/url] align="right" class="texto">De:</div></td> [url="http://december.com/html/4/element/td.html"]<td[/url] width="67%">[url="http://december.com/html/4/element/input.html"]<input[/url] name="email_from" type="text" class="email"></td> </tr> [url="http://december.com/html/4/element/tr.html"]<tr>[/url] [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/div.html"]<div[/url] align="right" class="texto">Para</div></td> [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/input.html"]<input[/url] name="email" type="text" class="email"> </tr> [url="http://december.com/html/4/element/tr.html"]<tr>[/url] [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/div.html"]<div[/url] align="right" class="texto">Assunto</div></td> [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/input.html"]<input[/url] name="assunto" type="text" id="assunto"></td> </tr> [url="http://december.com/html/4/element/tr.html"]<tr>[/url] [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/div.html"]<div[/url] align="right" class="texto">Mensagem</div></td> [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/textarea.html"]<textarea[/url] name="mensagem" cols="50" rows="10" id="mensagem"></textarea></td> </tr> [url="http://december.com/html/4/element/tr.html"]<tr>[/url] [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/div.html"]<div[/url] align="right" class="texto">Anexo</div></td> [url="http://december.com/html/4/element/td.html"]<td>[/url][url="http://december.com/html/4/element/input.html"]<input[/url] name="arquivo" type="file">