private void sendMail1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendMail1ActionPerformed
        // TODO add your handling code here:
        Mahasiswa m = new Mahasiswa();

        try {
            m = cd.getDataDepe(nim);
            loadPesan("siswa", 1);


        } catch (SQLException ex) {
            Logger.getLogger(FormInduk.class
                    .getName()).log(Level.SEVERE, null, ex);
        }

        if (mailContent1.getText().length() != 0) {
            Pesan pesan = new Pesan();
            pesan.setIsi(mailContent1.getText());
            String temp = daftarBinaanDosen.getSelectedItem().toString();
            String temp2 = "";
            for (int i = 0; i < temp.length(); i++) {
                if (temp.charAt(i) != '.') {
                    temp2 += temp.charAt(i);
                }
                if (temp.charAt(i) == '.') {
                    break;
                }
            }
            System.out.println("YOOOO : " + temp2);
//            System.out.println("" + daftarBinaanDosen.getSelectedItem().toString());
            String nimPenerima = temp2;
            try {
                pesan.setTgl(this.showDateNow(0));
                pesan.setProto(this.showDateNow(1));
                pesan.setJam(this.showTimeNow());
                prosespesan.dosenKirimSiswa(onUsed, nimPenerima, pesan);
                mailContent1.setText("");
                newMail1.hide();
                newMail1.dispose();
                this.loadPesan("dosen", 0);


            } catch (SQLException ex) {
                Logger.getLogger(FormInduk.class
                        .getName()).log(Level.SEVERE, null, ex);
            }
        } else {
            JOptionPane.showMessageDialog(mailContent, "isi pesan tidak boleh kosong");
        }
    }