{"action":"created","issue":{"url":"https://api.github.com/repos/trinker/gmailR/issues/10","repository_url":"https://api.github.com/repos/trinker/gmailR","labels_url":"https://api.github.com/repos/trinker/gmailR/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/trinker/gmailR/issues/10/comments","events_url":"https://api.github.com/repos/trinker/gmailR/issues/10/events","html_url":"https://github.com/trinker/gmailR/issues/10","id":143578135,"number":10,"title":"problem with gmail function","user":{"login":"marco-vene","id":12248653,"avatar_url":"https://avatars.githubusercontent.com/u/12248653?v=3","gravatar_id":"","url":"https://api.github.com/users/marco-vene","html_url":"https://github.com/marco-vene","followers_url":"https://api.github.com/users/marco-vene/followers","following_url":"https://api.github.com/users/marco-vene/following{/other_user}","gists_url":"https://api.github.com/users/marco-vene/gists{/gist_id}","starred_url":"https://api.github.com/users/marco-vene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marco-vene/subscriptions","organizations_url":"https://api.github.com/users/marco-vene/orgs","repos_url":"https://api.github.com/users/marco-vene/repos","events_url":"https://api.github.com/users/marco-vene/events{/privacy}","received_events_url":"https://api.github.com/users/marco-vene/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-25T19:35:53Z","updated_at":"2016-03-26T14:18:01Z","closed_at":null,"body":"Hi,\r\n\r\nI try to run the code:\r\n\r\ngmailR::gmail(\r\n    to = \"mail\",\r\n    subject = \"Test\",\r\n    password = \"password\",\r\n    message = \"Attached file\",\r\n    attachment = \"attachment\",\r\n    username = \"mail\"\r\n    )\r\n\r\nbut I get an error message:\r\n\r\nError in match(x, table, nomatch = 0L) : object 'cell.ext' not found.\r\n\r\nI tried to look into the function and it looks like the problem is in this part:\r\n  cells <- sapply(strsplit(to, \"@\"), function(x) x[2]) %in% cell.ext[, 2]\r\n\r\nCan you help me?\r\nThank you,\r\n\r\nMarco"},"comment":{"url":"https://api.github.com/repos/trinker/gmailR/issues/comments/201832249","html_url":"https://github.com/trinker/gmailR/issues/10#issuecomment-201832249","issue_url":"https://api.github.com/repos/trinker/gmailR/issues/10","id":201832249,"user":{"login":"marco-vene","id":12248653,"avatar_url":"https://avatars.githubusercontent.com/u/12248653?v=3","gravatar_id":"","url":"https://api.github.com/users/marco-vene","html_url":"https://github.com/marco-vene","followers_url":"https://api.github.com/users/marco-vene/followers","following_url":"https://api.github.com/users/marco-vene/following{/other_user}","gists_url":"https://api.github.com/users/marco-vene/gists{/gist_id}","starred_url":"https://api.github.com/users/marco-vene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marco-vene/subscriptions","organizations_url":"https://api.github.com/users/marco-vene/orgs","repos_url":"https://api.github.com/users/marco-vene/repos","events_url":"https://api.github.com/users/marco-vene/events{/privacy}","received_events_url":"https://api.github.com/users/marco-vene/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T14:18:00Z","updated_at":"2016-03-26T14:18:00Z","body":"Cool, but I find it hard to send attachments with this package.\r\nI tried:\r\n\r\nhtml_msg <- mime() %>%\r\n  to(\"to@gmail.com\") %>%\r\n  from(\"from@gmail.com\") %>%\r\n  subject(\"Test\") %>%\r\n  html_body(\"<b>Gmailr</b> is a <i>very</i> handy package!\")  %>%\r\n  attach_file(\"file.pdf\") #html message\r\n\r\nret_val <- send_message(html_msg) #send message\r\nret_val$status_code \r\n\r\nbut I receive a bounce email.\r\n\r\nYou know how to attach files? Thanks for helping me there are no many resources on this topic in the web."}}