{"size": 880, "ext": "js", "max_stars_repo_path": "estate_app/estate_app/doctype/sendemail_example/sendemail_example.js", "max_stars_repo_name": "khaledasem/estate_app-ver4", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "estate_app/estate_app/doctype/sendemail_example/sendemail_example.js", "max_issues_repo_name": "khaledasem/estate_app-ver4", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "estate_app/estate_app/doctype/sendemail_example/sendemail_example.js", "max_forks_repo_name": "khaledasem/estate_app-ver4", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.9591836735, "max_line_length": 88, "alphanum_fraction": 0.5818181818}
// Copyright (c) 2021, khaled and contributors
// For license information, please see license.txt

frappe.ui.form.on('sendEmail_example', {

	setup:  function(frm) {
		frm.send_email_check = function(frm){

			frm.call({
	  			method: "estate_app.estate_app.doctype.sendemail_example.my_email_api.send_email",
	  			args: { 
	  				'doc': frm.doc,
	  				'recipients': 'testsurveyyemenmobile@agmail.com',
	  				'msg': 'Test message send email',
	  				'title': 'test'
	  				// 'attachments': ''
	  				},
	  			callback: function(r) {
	  				console.log('Checked')
	  			}
	  		})



		},

	frm.getinf = function(frm){
	}		
		


	},
	// refresh: function(frm) {

	// }

	send_email: function(frm){
		// frm.send_email_check(frm)
		

	frappe.db.set_value('test_setvalue', '2', 'test', 'SET')
    .then(r => {
        let doc = r.message;
        console.log(doc);
    })
	}

});
