IsSMTP(); // Falg de uso SMTP $mail->SetLanguage("br", "phpmailer/language/"); $mail->Host = "mail.".$EMP_URL; // seu servidor SMTP $mail->Mailer = "smtp"; //Usando protocolo SMTP $mail->SMTPAuth = true; // uso de SMTP authentication $mail->Timeout = 20; // USUARIO E SENHA $mail->Username = $FromAddress; // SMTP username $mail->Password = $FromPassword; // SMTP password // DE: $mail->From = $FromAddress; $mail->FromName = $FromName; // PARA: $mail->AddAddress($ToAddress, $ToName); // name is optional if ($CC) $mail->AddCC($CC); // $mail->AddReplyTo("comercial@asasolucoes.com"); $mail->WordWrap = 50; // set word wrap to 50 characters //$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments //$mail->AddAttachment($ANEXO1); // optional name //$mail->AddAttachment($ANEXO2); // optional name $mail->IsHTML(true); // set email format to HTML $mail->Subject = $Assunto; $mail->Body = $Conteudo; // $mail->AltBody = $strMensagem; if(!$mail->Send()) { //$ERRO_NOTAS = "Mailer Error: " . $mail->ErrorInfo . "(".$mail->Host.")(".$mail->Username.")(".$mail->Password.")"; // (mccDEBUG) throw new Exception("Mailer Error: " . $mail->ErrorInfo . "(".$mail->Host.")", 21); return false; } else { self::$_erro = 0; self::$_mensagem = "Mensagem enviar com sucesso para o email: $ToAddress\n"; return true; } //*/ }catch ( Exception $ex ){ self::$_mensagem = $ex->getMessage(); self::$_erro = $ex->getCode(); return false; } } public static function enviarGmail($ToName, $ToAddress, $FromName, $FromAddress, $FromPassword, $Assunto, $Conteudo, $Anexo = null){ global $EMP_URL; try { //echo "SMTP=smtp.".$EMP_URL."
"; $mail = new PHPMailer(); // CONFIGURAÇÃO DO SERVIDOR $mail->IsSMTP(); // Falg de uso SMTP $mail->SetLanguage("br", "plugins/phpmailer/language/"); //$mail->Host = "smtp.".$EMP_URL; // seu servidor SMTP //$mail->Host = "gmail-smtp-in.l.google.com"; // servidor para google/apps /* $mail->Host = "tls://smtp.gmail.com"; $mail->SMTPSecure = "tls"; // sets the prefix to the servier $mail->Port = 587; // set the SMTP port for the GMAIL server // */ $mail->Host = "smtp.gmail.com"; $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Port = 465; // set the SMTP port for the GMAIL server // */ // $mail->SMTPDebug = 1; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // uso de SMTP authentication //$mail->Timeout = 20; /* // Configuração para Email do GMAIL. $mail->Host = "smtp.gmail.com"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->SMTPSecure= "ssl"; // Used instead of TLS when only POP mail is selected $mail->Port = 465; // Used instead of 587 when only POP mail is selected */ // USUARIO E SENHA $mail->Username = $FromAddress; // SMTP username $mail->Password = $FromPassword; // SMTP password // DE: $mail->From = $FromAddress; $mail->FromName = $FromName; // PARA: $mail->AddAddress($ToAddress, $ToName); // $mail->AddAddress("comercial@asasolucoes.com"); // name is optional // $mail->AddReplyTo("comercial@mustmodels.com"); $mail->WordWrap = 50; // set word wrap to 50 characters //$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments //$mail->AddAttachment($ANEXO1); // optional name //$mail->AddAttachment($ANEXO2); // optional name $mail->IsHTML(true); // set email format to HTML $mail->Subject = $Assunto; $mail->Body = $Conteudo; // $mail->AltBody = $strMensagem; if(!$mail->Send()) { throw new Exception("Mailer Error: " . $mail->ErrorInfo . "(".$mail->Host.")", 21); return false; } else { self::$_erro = 0; self::$_mensagem = "Mensagem enviar com sucesso para o email: $ToAddress\n"; return true; } //*/ }catch ( Exception $ex ){ self::$_mensagem = $ex->getMessage(); self::$_erro = $ex->getCode(); return false; } } } ?> VESTIPROVAS - Questão: UNESP - Inglês - Interpretação de Texto
WhatsApp do Vestiprovas
Compartilhar

Responder Questão:

São Paulo UNESP 2004.2 1ª Fase Questão: 81 Inglês Interpretação de Texto 

Doughnuts in the Dark New treatments offer hope for night eating disorders By Anne Underwood Shelly's Snack Shop was the name that Brian Egemo of Badger, Iowa, applied to his wife's side of the bed. In 1994, Shelly, who had been a sleepwalker as a child, began sleepwalking again. But this time, her nightly rambles took her to the kitchen for cookies, candy and potato chips, which she would bring back to bed and devour while still asleep. "In the morning, there would be frosting in my hair and M&M's stuck to my husband's back," she says. Worse yet, she woke up feeling exhausted and sick from all the junk food. After years of this "sleep eating," her nerves were so jangled that she became unglued at the slightest upset. "Someone would knock over the salt shaker and I’d go into orbit," she says. It wasn't until 2001 that Egemo, now 37, found a doctor who could tell her what her problem was and how to treat it. Egemo's condition is called sleep-related eating disorder (SRED), and it's one of two night eating problems that doctors are just beginning to take seriously. The other is night eating syndrome (NES), in which patients wake multiple times during the night and are unable to fall asleep unless they eat something. Although the two differ in some important ways - most notably, whether the person is conscious or not - they share some similarities. (…) O sinalizador lingüístico worse yet, presente no primeiro parágrafo do texto, introduz uma idéia de



TEMPO NA QUESTÃO

Relógio00:00:00

Gráfico de barras Meu Desempenho

Inglês Interpretação de Texto

Total de Questões: ?

Respondidas: ? (0,00%)

Certas: ? (0,00%)

Erradas: ? (0,00%)

Somente usuários cadastrados!

Postar dúvida ou solução ...