<div>Avcabei de testar no Windows e funcionou</div><div> </div><div>PS: troquei o From, o To e o smtp server</div><div> </div><div>Sys.info()<br> sysname release version <br>
"Windows" "7 x64" "build 7601, Service Pack 1" <br> nodename machine login <br> "LDEASSIS-PC" "x86-64" "ldeassis" <br>
user <br> "ldeassis" <br></div><div>No linux tb rodou perfeito, nem testei no mac osx</div><div> </div><div><br clear="all">lmassis <at> yahoo <dot> com <dot> br<br>
assis.leonard <at> gmail <dot> com<br>
<br><br></div><div class="gmail_quote">2011/8/7 Bruno Santos <span dir="ltr"><<a href="mailto:brunodosantos@gmail.com">brunodosantos@gmail.com</a>></span><br><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">
<div class="gmail_quote">Boa tarde, pessoal!<br><br>Eu consegui utilizar normalmente a função sendmail do pacote sendmailR na minha máquina. <br>> Sys.info()<br><br><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"><pre style="margin: 0px; line-height: 1.3; font-family: Monospace; font-size: 10pt !important; white-space: pre-wrap !important; outline-style: none;">
sysname release version nodename <span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span>
"Linux" "2.6.32-33-generic" "#71-Ubuntu SMP Wed Jul 20 17:30:40 UTC 2011" "bruno-laptop" <span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span>
<br><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"><pre style="margin: 0px; line-height: 1.3; font-family: Monospace; font-size: 10pt !important; white-space: pre-wrap !important; outline-style: none;">
machine login user<span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span>
</pre></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"><pre style="margin: 0px; line-height: 1.3; font-family: Monospace; font-size: 10pt !important; white-space: pre-wrap !important; outline-style: none;">
"i686" "unknown" "bruno"<span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><br>
<br><span style="font-family: arial,helvetica,sans-serif;">Mas ao tentar usar o mesmo programa numa máquina Windows, ocorreu um erro que está depois do exemplo reproduzível.<br>Seguem as informações da máquina Windows que eu fiz o teste.<br>
<br>> Sys.info()<br><br></span>sysname release version nodename machine login user<span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span> <span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span>
"Windows" "7 x64" "build 7600" "RIGEL" "x86" "bramos" "bramos<span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"></span></span>"<br>
<br><span style="font-family: arial,helvetica,sans-serif;">Exemplo reproduzível, com argumento do email incorreto por segurança.</span><br><br>#################################################################################<br>
library(sendmailR)<br>from <- sprintf("<sendmailR@%s>", Sys.info()[4])<br>to <- "<email@valido>" #Substituir por email válido<br>subject <- "Hello from R"<br>body <- list("It works!", mime_part(iris))
sendmail(from, to, subject, body, control=list(smtpServer="<a href="http://ASPMX.L.GOOGLE.COM" target="_blank">ASPMX.L.GOOGLE.COM</a>"))<br><span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"><pre style="margin: 0px; line-height: 1.3; font-family: Monospace; font-size: 10pt !important; white-space: pre-wrap !important; outline-style: none;">
<span style="color: rgb(0, 0, 0); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;"><span style="line-height: 17px; font-family: Monospace; font-size: 13px; white-space: pre-wrap;"><pre style="margin: 0px; line-height: 1.3; font-family: Monospace; font-size: 10pt !important; white-space: pre-wrap !important; outline-style: none;">
#################################################################################</pre></span></span></pre></span></span><div><br>Erro em writeLines(msg, sock, sep = "\r\n") : argumento 'text' inválido<br>
</div><span style="font-family: arial,helvetica,sans-serif;">Alguém tem alguma sugestão do que pode estar acontecendo?</span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">Obrigado,</span><br style="font-family: arial,helvetica,sans-serif;"><font color="#888888"><font color="#888888"><span style="font-family: arial,helvetica,sans-serif;">Bruno</span><br>
<br></font></font></pre>
</span></span></pre>
</span></span>
</div><br>
<br>_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br></blockquote></div><br>