sendgrid-apex
sendgrid-apex copied to clipboard
Installation
Is there anything more that needs to be done to install and run this? I have followed your instructions, but the sample code is not working. No errors or anything just not emailing me, and my send grid credz are correct we use them in other apps.
`SendGrid sendgrid = new SendGrid('usename', 'pass');
SendGrid.email email = new SendGrid.Email();
email.addTo('[email protected]');
email.setFrom('[email protected]');
email.setSubject(emailSubject + ' ' + candidate);
email.setText(plainBody);
//String response = sendgrid.send(email);
sendgrid.send(email);`
Getting this error SendGridException:[]: Script-thrown exception