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: UEMG - Inglês - Interpretação de Texto
WhatsApp do Vestiprovas
Compartilhar

Responder Questão:

Minas Gerais UEMG 2009.1 Questão: 51 Inglês Interpretação de Texto 

Obama launches historic campaign

       Barack Obama addresses the Democratic convention. He has accepted the Democratic Party’s historic nomination to run for president of the US in front of a crowd of some 75,000 people.
       In an address at the party’s national convention in Denver, he promised he would do his best to keep alive the American dream of opportunity for all.
       “America, we are better than these last eight years,” he told cheering crowds. “We are a better country than this.”
        Mr. Obama is the first African-American to be nominated by a major US party.
        In his speech at Denver’s Invesco stadium, Mr. Obama promised to reverse the economic downturn afflicting the US and restore the nation’s standing in the world.
        “We are here because we love this country too much to let the next four years look just like the last eight years,” he said.
        He also attacked the record of the Bush administration and his Republican rival for the presidency, John McCain.
        “This moment - this election - is our chance to keep, in the 21st Century, the American promise alive.”
        Mr. Obama criticized Mr. McCain as out of touch with the concerns of ordinary Americans and said he had failed to help them on issues such as the economy, health care and education.
        He also stressed that he would call for the withdrawal of troops from Iraq, whereas Mr. McCain stood “alone in his stubborn refusal to end a misguided war”, he said.
        “I will restore our moral standing, so that America is once again that last best hope for all who are called to the cause of freedom, who long for lives of peace, who yearn for a better future,” he said
        He rejected criticism by the McCain campaign that he is a “celebrity”, pointing to his family’s past financial hardships, and said his rival should stop questioning his patriotism.
        In a final rallying call, Mr. Obama recalled the message of Martin Luther King, who - 45 years ago to the day - gave his “I have a dream” speech in his historic march on Washington.
        “America, we cannot turn back,” he said. “We cannot walk alone. At this moment, in this election, we must pledge once more to walk into the future.”
        Joined on stage by his family and running-mate, Joe Biden, Mr. Obama was given a standing ovation by the crowds.

(Adapted from BBC News)

It’s not CORRECT to say that Mr. Obama promised



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 ...