package baseClasses;
//import com.sendgrid.*;

import com.sendgrid.SendGrid;
import com.sendgrid.SendGridException;

public class SendMail {


	  /*public static void main(String[] args) {
		// TODO Auto-generated method stub
		try { 
			send(	"onkelhoy@gmail.com", 
					"hp222fq@student.lnu.se", 
					"Hello World", 
					"This is the first mail sent with java. <h3>Header</h3><p>and a nice paragraph</p>"
				);
			System.out.println("sent");
		} catch (Exception e){
			e.printStackTrace();
		}
	}*/
	
	
	public static void send(String to, String from, String subject, String content) throws SendGridException {
		//Henry's API key
		SendGrid sendgrid = new SendGrid("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"); //ask me for api.. DO NOT UPLOAD TO GITHUB!!
		 
	    SendGrid.Email email = new SendGrid.Email();
	 
	    email.addTo(to);
	    email.setFrom(from);
	    email.setSubject(subject);
	    email.setHtml(content);
	 
	    SendGrid.Response response = sendgrid.send(email);
	}
}

@@ -670,77 +670,8 @@
 id(%22
-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
 %22); 

Update SendMail.java