Results 1 to 8 of 8

Thread: Email module: Email send but still showing an Error

  1. #1
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Default Email module: Email send but still showing an Error

    Hi people,

    Having some trouble when sending the mail.
    When i compose a mail and click on send the email is send but it shows

    An error has occured!
    while(1);/*{"composeLayoutId":"composeLayout1"}*/

    Have looked at everything but not able to understand what is causing the error to come even when the mail is sent to the destination.
    If It Is To Be, It Is Up To Me

  2. #2
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Default Re: Email module: Email send but still showing an Error

    Hi ppl,

    Any help on this issue would be appreciated!
    Plz help!
    If It Is To Be, It Is Up To Me

  3. #3
    shailendra001's Avatar
    shailendra001 is offline A Prolific Poster
    Join Date
    Oct 2008
    Location
    Bangalore India
    Posts
    255

    Smile Re: Email module: Email send but still showing an Error

    Hey Abhay ,

    Could you please share the version of Sugar instance on which you are getting this error message .
    1) have you done any cod customization on that instance .

  4. #4
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Default Re: Email module: Email send but still showing an Error

    Yes we did,

    we added a select box in the compose email template.
    If It Is To Be, It Is Up To Me

  5. #5
    shailendra001's Avatar
    shailendra001 is offline A Prolific Poster
    Join Date
    Oct 2008
    Location
    Bangalore India
    Posts
    255

    Default Re: Email module: Email send but still showing an Error

    Hey ,

    I have tested it on Sugar6 and Sugar5 , its working fine for me .
    I could not reproduce the same error , it must be due to unsafe code customization , remove your customization and see whether email is working fine or not , ( i am sure it will work without any trouble )

    Problem would be due to your customization

  6. #6
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Default Re: Email module: Email send but still showing an Error

    HI,

    what i did was i renamed the Email folder in custom and module.
    added the Email folder from other sugar 5 installation in module.
    repair and built.
    but still gets the same error :P
    If It Is To Be, It Is Up To Me

  7. #7
    shailendra001's Avatar
    shailendra001 is offline A Prolific Poster
    Join Date
    Oct 2008
    Location
    Bangalore India
    Posts
    255

    Default Re: Email module: Email send but still showing an Error

    Hey man ,

    It is not like that , files would be there in cache ,and many more code would be auto generated ,
    try to clear your customization first .

  8. #8
    abhax's Avatar
    abhax is offline Senior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    65

    Smile Re: Email module: Email send but still showing an Error

    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!!!!!
    If It Is To Be, It Is Up To Me

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 2010-04-09, 10:50 AM
  2. Replies: 3
    Last Post: 2009-05-22, 09:22 AM
  3. Email Send Error
    By TreasureCom in forum Help
    Replies: 3
    Last Post: 2008-11-12, 07:29 AM
  4. Replies: 2
    Last Post: 2008-04-01, 07:23 PM
  5. Send Error on Email
    By charitie in forum Help
    Replies: 1
    Last Post: 2006-07-26, 08:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •