Hi people,
Found out the solution to the problem.
Posting the solution to the problem so that if sum1 else faces the same problem need not waste more time.
Scenario:
Email sent to destination but still showing an error!
modules/Emails/javascript/ajax.php
After some searching on the forums i got some idea that sendEmailCleanUp : function(o) { in ajax.php is the main reason for that error coming.
I checked the JSON.parse(o.responseText); and found out it was returing false for some strange reason, coz of that it was going into the false section of the if loop and that error popup was being displayed.
So, here are the changes that i did to the function
HTML Code:
sendEmailCleanUp : function(o) {
hideOverlay();
var ret = 1;//JSON.parse(o.responseText);
//alert(ret);
if (ret) {
SUGAR.email2.composeLayout.forceCloseCompose("composeLayout1");//(ret.composeLayoutId);
//SUGAR.email2.addressBook.showContactMatches(ret.possibleMatches);
} else if (o.responseText) {
overlay(app_strings.LBL_EMAIL_ERROR_GENERAL_TITLE, o.responseText, 'alert');
}
SUGAR.email2.grid.getDataSource().reload();
//Disabled while address book is disabled
}, and the mail is now send without any error and reloaded to inbox view.
I provided the default composeLayout as composeLayout1.
Hope it is helpful!!!!!
Bookmarks