Loading...
Logo
Processing Forum
Hi All,
I've been using Daniel Schiffman's JavaMail tutorial with some success.

I can send emails and check my Inbox which is great, but here's the problem, I can't do both in the same program. To make it work I have to comment out either checkMail(), or sendMail(). It doesn't matter if I checkMail() then sendMail() or vice-versa, or move the calls to the draw() routine and add a delay in between. This means that for me at least, Daniel's example won't run. Does anyone have any suggestions on how to get both send and receive working in the same program.

A couple of things worth noting, I've updated the Auth information and all the pertinent addresses with my own, and fixed a sendMail() issue by updating the SMTP properties as suggested by Sebastien in the comments of Daniel's tutorial. Other than these changes, I haven't changed anything, so I haven't attached my code since it is the same as is available on the link.

Thanks,
Nick

Replies(1)

I made an  Email sketch also based on Shiffman's code, with some refinements like using a logger and getting sensible information from properties (not in the repository, then!).
It can send and check in the same run, without problem. Note that issues can be specific to the e-mail servers...