You can send simple emails using the code snippet below, although typically when sending emails in ServiceNow, a registry record is created, a notification is defined, then the event queue is triggered, etc.
var mail = new GlideEmailOutbound();
// mail.addAddress('cc', 'veysel@dijitalturk.com');
mail.addRecipient("ninja@dijitalturk.com");
mail.setSubject("DijitalTurk Test Mail");
mail.setBody("deneme \n mesaj içeriği");
mail.save();

