Seeliger, Curt
2014-Aug-06 22:30 UTC
[R] sendmailR error: if (code == lcode) { : argument is of length zero
Good morning folks,
Recently calls to sendmail() in the sendmailR package have occasionally failed
with the error "if (code == lcode) { : argument is of length zero".
The only thing we are setting in the control argument is the smtp server
(control=list(smtpServer='smtp.epa.gov')), so the port and other
settings rely on default values.
In going through the sendmailR source it looks like the call to
readLines(con=sock, n=1), from which the value of 'code' is determined,
is returning NULL. Has anyone come across this situation, and better yet have
you found a fix for it?
Because this occurs in a pseudorandom/haphazard fashion, there is no repeatable
example to post.
Thank you for your time,
cur
--
Curt Seeliger, Data Ranger
Raytheon Information Services, Contractor to ORD
seeliger.curt@epa.gov
541-754-4638
[[alternative HTML version deleted]]