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: PUC-SP - Inglês - Semântica
WhatsApp do Vestiprovas
Compartilhar

Responder Questão:

São Paulo PUC-SP 2013.1 Questão: 44 Inglês Semântica 

Jorge Amado: Brazil celebrates its master story-teller
10 August 2012
By Julia Dias Carneiro, BBC Brasil



As Brazil celebrates the centenary of his birth, Jorge Amado is remembered as one of the country's most important and best-loved writers, famous not only at home but also internationally. His vivid portrayal of his fellow countrymen and women struck a chord, and he created characters that captured the popular imagination. Amado was born in the north-eastern state of Bahia, where culture, music and religion were deeply influenced by the arrival of African slaves. His books stress Brazil's African heritage and the mixing of races that define the country's population, as positive values. Amado wrote his first novel in 1931 and by the end of the decade his stories were being published in France. Amado's foreign success was partly boosted by his politics. He was a militant communist, which helped his work reach the Soviet Union and other countries behind the Iron Curtain. However, his politics also led him into exile in 1947. He was elected to Congress but with the Cold War, the Brazilian Communist Party was banned – and his mandate revoked. He spent five years in Paris and Czechoslovakia with his wife, Zelia Gattai, travelling extensively and mixing in circles that included Pablo Picasso, Jean-Paul Sartre and Simone de Beauvoir. Amado's earlier books portray social injustice and are heavily influenced by his political views. He wrote the first Brazilian book with a black main character in the 1930s. Other unlikely heroes for the time followed, from a prostitute to a black caretaker who contests a white professor's racist theories in university. "He brought the ordinary man from the street to the centre of the book. He establishes him as the hero of his stories, so winning over many ordinary workers as readers." says Eduardo de Assis Duarte, author of Jorge Amado: Romance in Times of Utopia. In the 1950s, after the world became aware of the crimes of Soviet leader Joseph Stalin, he abandoned communism and began a new phase in writing, with more humour and less ideology.
www.bbc.co.uk/news. Adaptado e editado.

No trecho do primeiro parágrafo – famous not only at home but also internationally – a expressão not only…but also indica uma ideia de

 



TEMPO NA QUESTÃO

Relógio00:00:00

Gráfico de barras Meu Desempenho

Inglês Semântica

Total de Questões: ?

Respondidas: ? (0,00%)

Certas: ? (0,00%)

Erradas: ? (0,00%)

Somente usuários cadastrados!

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