Results 1 to 3 of 3

Thread: Troubleshooting outbound email

  1. #1
    lonecrow is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    36

    Default Troubleshooting outbound email

    I managed to get inbound email working via Gmail by using sugarcrm.log and walking through the code line by line until I found the problem. Now I am working on outbound email. When I click send I get a blank screen as a response. SugarCRM has stopped processing without displaying any error message (same issue I had with inbound email).

    When I look in sugarCRM.log these are the last lines written to the log.

    06/16/07 18:46:07,602 [3556] DEBUG SugarCRM - Email sending ---------------------
    06/16/07 18:46:07,603 [3556] DEBUG SugarCRM - Localization: translating [ Test Outbound via Gmail ] into ISO-8859-1
    06/16/07 18:46:07,603 [3556] DEBUG SugarCRM - Localization: translating [ ] into ISO-8859-1
    06/16/07 18:46:07,604 [3556] DEBUG SugarCRM - Localization: translating [ Test Outbound via Gmail ] into ISO-8859-1

    Which PHP files are these debug lines in? I have searched for portions of these strings within files in the sugarCRM directory and come up empty.

    Any ideas what file contain the debug line:
    SugarCRM - Email sending ---------------------

    Thanks for any help.

    btw: I am using tls://smtp.gmail.com as my outbound server.

  2. #2
    lonecrow is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    36

    Default Re: Troubleshooting outbound email

    When I searched for those strings using windows explorer on the server it came back empty but when I used my editor on my dev machine I found them no problem \modules\emails\email.php

    If I managed to get SugarCRM running on IIS to send via Gmail I'll make sure to post what I did because I know I amnot the only one with this problem

  3. #3
    lonecrow is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    36

    Default Re: Troubleshooting outbound email

    OK So the last line written in the SugarCRM.log is my 'finished translating' line.
    ------------------------------------------------------------------------------
    ///////////////////////////////////////////////////////////////////////
    //// I18N TRANSLATION
    $mail->prepForOutbound();
    //// END I18N TRANSLATION
    ///////////////////////////////////////////////////////////////////////

    $GLOBALS['log']->debug('Finished translating');
    if($mail->Send()) {

    ------------------------------------------------------------------------------

    So I set up these debug lines in the send function

    ------------------------------------------------------------------------------
    function send() {
    global $mod_strings;
    global $current_user;
    global $sugar_config;
    global $locale;

    $GLOBALS['log']->debug('About to set up sugarPHPMailer object');

    $mail = new SugarPHPMailer();

    $GLOBALS['log']->debug('$mail object set up');
    ------------------------------------------------------------------------------


    So the funny thing is that neither of those debug lines gets written to the sugarCRM.log file. If I am understanding correctly the Send() function returns a boolean and the "if($mail->Send()) {" line calls that function.

    If it had troubles instansiating the sugarPHPMailer I would at least expect to see my "About to set up object" ddebug line.


    Any ideas? Could it be crashing on setting up the globals? Can I insert a debug line BEFOR the global declarations?
    Last edited by lonecrow; 2007-06-16 at 06:20 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HOW-TO guide for Email Campaigns.
    By agupta in forum Marketing/Campaign Management
    Replies: 146
    Last Post: 2012-01-31, 03:08 PM
  2. Poll: Dump Sugar Mail and integrate something better?
    By bjs3 in forum General Discussion
    Replies: 246
    Last Post: 2011-11-23, 04:05 PM
  3. email marketing feature requests
    By maxsutter in forum Feature Requests
    Replies: 1
    Last Post: 2008-10-11, 10:19 AM
  4. Replies: 1
    Last Post: 2007-02-21, 11:42 AM
  5. Replies: 3
    Last Post: 2006-01-23, 09:36 PM

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
  •