当前位置: 首页>>代码示例>>PHP>>正文


PHP POP3::authorise方法代码示例

本文整理汇总了PHP中POP3::authorise方法的典型用法代码示例。如果您正苦于以下问题:PHP POP3::authorise方法的具体用法?PHP POP3::authorise怎么用?PHP POP3::authorise使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在POP3的用法示例。


在下文中一共展示了POP3::authorise方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: configuracaoSMTP

 public function configuracaoSMTP()
 {
     $pop = new POP3();
     $pop->authorise("mbox.redeunaviva.rio", 110, 30, "formulario.adesao=redeunaviva.rio", "redeunaviva", 1);
     $mail = new PHPMailer();
     $mail->SetLanguage("br");
     $mail->IsSMTP();
     $mail->IsHTML(true);
     $mail->SMTPSecure = "tls";
     $mail->SMTPAuth = "true";
     $mail->Host = "smtp.redeunaviva.rio";
     //Seu servidor SMTP
     $mail->Mailer = "smtp";
     //Usando protocolo SMTP
     //        $mail->SMTPDebug = 1;
     $mail->Username = "formulario.adesao=redeunaviva.rio";
     $mail->Password = "redeunaviva";
     $mail->Port = 587;
     $to = 'formulario.adesao@redeunaviva.rio';
     //seu e-mail
     $mail->From = $to;
     //email do remetente
     $mail->Sender = $to;
     //email do remetente
     $mail->FromName = "RedeUnaViva";
     //Nome de formatado do remetente
     $mail->AddAddress($to);
     //O destino do email
     $mail->AddBCC($this->email);
     //Envio com cópia oculta
     $mail->Subject = "RedeUnaViva - Formulário de Adesão - Web ";
     // . $this->titulo; //Assunto do email
     $mail->CharSet = "UTF-8";
 }
开发者ID:pereiraMichel,项目名称:redeunavida,代码行数:34,代码来源:classFormAdesao.php

示例2: popBeforeSmtp

 /**
  * Simple static wrapper for all-in-one POP before SMTP
  * @param $host
  * @param bool $port
  * @param bool $tval
  * @param string $username
  * @param string $password
  * @param int $debug_level
  * @return bool
  */
 public static function popBeforeSmtp($host, $port = false, $tval = false, $username = '', $password = '', $debug_level = 0)
 {
     $pop = new POP3();
     return $pop->authorise($host, $port, $tval, $username, $password, $debug_level);
 }
开发者ID:nullog,项目名称:zhanglubao,代码行数:15,代码来源:class.pop3.php

示例3: enviarMensagem

 public function enviarMensagem()
 {
     $this->geraProtocolo();
     $pop = new POP3();
     $pop->authorise("mbox.redeunaviva.rio", 110, 30, "contato=redeunaviva.rio", "redeunaviva", 1);
     //        $pop->authorise("mbox.redeunaviva.rio", 110, 30, "redesocial=redeunaviva.rio", "r3d3un4v1v4", 1);
     $mail = new PHPMailer();
     $mail->SetLanguage("br");
     //        $mail->IsMail();
     $mail->IsSMTP();
     $mail->IsHTML(true);
     $mail->SMTPSecure = "tls";
     $mail->SMTPAuth = "true";
     $mail->Host = "smtp.redeunaviva.rio";
     //Seu servidor SMTP
     $mail->Mailer = "smtp";
     //Usando protocolo SMTP
     //        $mail->SMTPDebug = 1;
     $mail->Username = "contato=redeunaviva.rio";
     $mail->Password = "redeunaviva";
     //        $mail->Username = "redesocial=redeunaviva.rio";
     //        $mail->Password = "r3d3un4v1v4";
     $mail->Port = 587;
     $to = 'contato@redeunaviva.rio';
     //seu e-mail
     $mail->From = $to;
     //email do remetente
     $mail->Sender = $to;
     //email do remetente
     $mail->FromName = "RedeUnaViva";
     //Nome de formatado do remetente
     $mail->AddAddress($to);
     //O destino do email
     $mail->AddBCC($this->email);
     //Envio com cópia oculta
     $mail->Subject = "RedeUnaViva - Contato ";
     // . $this->titulo; //Assunto do email
     $font = "arial";
     $tamanho = 2;
     $tamanhoSub = 1;
     $mail->CharSet = "UTF-8";
     $mail->Body = "<br>";
     //Body of the message
     $mail->Body .= "<font face={$font} size='{$tamanho}'>";
     $mail->Body .= "<font face={$font} size='3'><b>RedeUnaViva - Atendimento";
     // . $this->titulo . "</b></font>";
     $mail->Body .= "<br/><hr>";
     $mail->Body .= "<div align='right'><font face='{$font}' size='" . $tamanhoSub . "'>Protocolo: " . $this->protocolo . "</font></div>";
     $mail->Body .= "<br/><br/>";
     $mail->Body .= "Prezado Sr(a) " . $this->nome . ", ";
     $mail->Body .= "<br/><br/>";
     $mail->Body .= "Agradecemos pelo seu contato. Retornaremos o mais rápido possível. Segue abaixo os dados informados: ";
     $mail->Body .= "<br/><br/>";
     $mail->Body .= "<br/><font face={$font} size='{$tamanho}'><b>Nome</b>: " . $this->nome . "</font><br>";
     $mail->Body .= "<br/><font face={$font} size='{$tamanho}'><b>E-mail</b>: " . $this->email . "</font><br>";
     $mail->Body .= "<br/><font face={$font} size='{$tamanho}'><b>Mensagem</b>: <br/><br/>" . $this->mensagem . "</font><br>";
     $mail->Body .= "<br><br>";
     $mail->Body .= "<font face={$font} size='{$tamanho}'>Atenciosamente,</font><br><br>";
     $mail->Body .= "<br><hr size='2'>";
     $mail->Body .= "<tr>";
     $mail->Body .= "    <td valign='top'>";
     $mail->Body .= "        <a href='http://www.redeunaviva.rio' target='_blank' title='Acesse o site'><img src='http://www.redeunaviva.rio/images/logoRUV350x250.png' width='80' height='50'></a>";
     $mail->Body .= "    </td>";
     $mail->Body .= "    <td valign='top'>";
     $mail->Body .= "<font face={$font} size='{$tamanho}'>RedeUnaViva / Jornada Real</font><br>";
     $mail->Body .= "    </td>";
     $mail->Body .= "</tr>";
     $mail->Body .= "<tr>";
     $mail->Body .= "    <td>";
     $mail->Body .= "        <br><br>";
     $mail->Body .= "    </td>";
     $mail->Body .= "    <td valign='top'>";
     $mail->Body .= "        <img src='http://www.redeunaviva.rio/images/ico_telefone.png'><font size='{$tamanhoSub}'> (21) 2266-5690<br/>";
     $mail->Body .= "        <img src='http://www.redeunaviva.rio/images/blackWorld.png'><a href='http://www.redeunaviva.rio' target='_blank'><font size='1'> http://www.redeunaviva.rio</font></a><br>";
     $mail->Body .= "    </td>";
     $mail->Body .= "</tr>";
     $mail->Body .= "<br><br>";
     $mail->Body .= '</font>';
     if (!$mail->Send()) {
         echo "<script>document.getElementById('sucesso').style.display='none'</script>";
         echo "<script>document.getElementById('erro').style.display='block'</script>";
         $this->geraLogErro($mail->ErrorInfo, "error");
     } else {
         echo "<script>document.getElementById('erro').style.display='none'</script>";
         echo "<script>document.getElementById('sucesso').style.display='block'</script>";
         echo "<meta http-equiv='refresh' content='5;url=contato.php'>";
         //            echo "<meta http-equiv='refresh' content='5;url=http://www.redeunaviva.rio/'>";
     }
     $mail->ClearAllRecipients();
     die;
 }
开发者ID:pereiraMichel,项目名称:redeunavida,代码行数:91,代码来源:enviaMensagem.php


注:本文中的POP3::authorise方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。