I'm working on a codename one application and want to send an automated email. I downloaded the cni1lib, SendGrid, and implemented it. The syntax for sending an email is below but the subject is getting mixed up with the fromEmail and the messages are going straight to spam.
I've looked online but cannot find anything useful.
How it should look:
SendGrid s = SendGrid.create(YOUR_SEND_GRID_API_TOKEN); s.sendSync(toEmail, fromEmail, subject, body);
Does anyone know how to get the messages out of spam and fix the subject issue?