Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How to send emails with SugarCRM Community Edition ?

  1. #1
    Fedo is offline Senior Member
    Join Date
    Jun 2011
    Posts
    23

    Lightbulb How to send emails with SugarCRM Community Edition ?

    Hello,

    I just installed Suger Community Edition and I want to configure it to be able to send email with it.
    My problem is : I don't get it

    I have a postfix mail server on the same server as Sugar. The mail server is working good.

    My settings are :
    SMTP
    username@mydomain.fr
    smtp server : mydomain.fr (this is exactly the same as in my DNS MailExchanger configuration, is that ok ?)
    smtp user : my_user
    smtp pass : my_pass
    smtp port : 25

    If I want to send a test email ... Nothing is coming in my mailbox.

    Thanks you in advance for helping me.

    Fedo

  2. #2
    Fedo is offline Senior Member
    Join Date
    Jun 2011
    Posts
    23

    Default Re: How to send emails with SugarCRM Community Edition ?

    No body are sending emails with sugar

  3. #3
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Noida
    Posts
    198

    Default Re: How to send emails with SugarCRM Community Edition ?

    Quote Originally Posted by Fedo View Post
    Hello,

    I just installed Suger Community Edition and I want to configure it to be able to send email with it.
    My problem is : I don't get it

    I have a postfix mail server on the same server as Sugar. The mail server is working good.

    My settings are :
    SMTP
    username@mydomain.fr
    smtp server : mydomain.fr (this is exactly the same as in my DNS MailExchanger configuration, is that ok ?)
    smtp user : my_user
    smtp pass : my_pass
    smtp port : 25

    If I want to send a test email ... Nothing is coming in my mailbox.

    Thanks you in advance for helping me.

    Fedo
    Hello,
    you can check sugarcrm.log file for errors after setting error level to debug in system settings.
    alternatively you can try with full name of smtp user ie my_user@domain.com
    or any other smtp port rather than 25 , if server supports
    or checking ssl or tsl certificates at server.
    thanks
    Almost available at skype or gtalk at ashdwi1.

    SugarForge Project:
    http://www.sugarforge.org/projects/gmapdirection
    Email: ashdwi1@gmail.com
    Mob: +919005468298

    Hire us at Odesk at
    https://www.odesk.com/users/~~b9eff8ff219fd705

    Hire Us at Elance at:
    http://ashdwi1.elance.com

  4. #4
    Fedo is offline Senior Member
    Join Date
    Jun 2011
    Posts
    23

    Default Re: How to send emails with SugarCRM Community Edition ?

    Thanks for reply !

    I found this on the forum : http://www.sugarcrm.com/forums/showthread.php?t=57274
    Now I can send an email to my local users but I can't send to the "outside".

    I have this in my log file :
    Fri Jun 3 14:20:12 2011 [11515][1][FATAL] SMTP -> ERROR: RCPT not accepted from server. Code: 554 Reply: 554 5.7.1 <my personal email adress>: Relay access denied

    Fri Jun 3 14:20:12 2011 [11515][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: The following recipients failed: my personal email adress

    It seems like my SMTP server want to send FROM my personal email adress ... For sure that's impossible, my postfix configuration refuse it !
    But I want to send TO my personal email adress so why my server think otherwise ?
    That's strange ...
    Last edited by Fedo; 2011-06-03 at 01:46 PM.

  5. #5
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Re: How to send emails with SugarCRM Community Edition ?

    Hi,
    maybe, if you use login et password ... this must be a other port than 25 !

    smtp user : my_user
    smtp pass : my_pass
    smtp port : 25

    Try to find your provider SMTP (25) and SMTPS port number.
    Do not forget, provider in Belgium and France too, block port 25 other than his domain and you must use SSL port for bypass this ISP restriction

    I use my ISP SMTP server "relay.skynet.be" without password and login on port 25...and i have no issue.

    Regards
    CE 6.2.4
    Osx Server 10.5.8
    Apache - MySql - Php built-in
    sorry for my good english

  6. #6
    Fedo is offline Senior Member
    Join Date
    Jun 2011
    Posts
    23

    Default Re: How to send emails with SugarCRM Community Edition ?

    I tried all configuration possible ... Nothing work
    Allways the same error in log file.
    Someone has an idea ?

  7. #7
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Noida
    Posts
    198

    Default Re: How to send emails with SugarCRM Community Edition ?

    Hello,
    can you specify your server , php version ?
    also re paste your error message here.
    also you need to check SSL module is enabled or not , in case mail server using ssl or tls.?
    also can you tried configuring mails at outlook or other tool.?
    also you crm instance has sufficient permissions ie 755 recurisively.?
    please provide us all above details for further analysis.

    thanks
    Almost available at skype or gtalk at ashdwi1.

    SugarForge Project:
    http://www.sugarforge.org/projects/gmapdirection
    Email: ashdwi1@gmail.com
    Mob: +919005468298

    Hire us at Odesk at
    https://www.odesk.com/users/~~b9eff8ff219fd705

    Hire Us at Elance at:
    http://ashdwi1.elance.com

  8. #8
    Fedo is offline Senior Member
    Join Date
    Jun 2011
    Posts
    23

    Default Re: How to send emails with SugarCRM Community Edition ?

    My Server is on Debian 6.0 with php 5, postfix and roundcubmail

    log file : Tue Jun 7 10:52:05 2011 [20276][1][FATAL] SMTP -> ERROR: RCPT not accepted from server. Code: 554 Reply: 554 5.7.1 <my personal email address>: Relay access denied^M

    Tue Jun 7 10:52:05 2011 [20276][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: The following recipients failed: my personal email address

    After this :
    chown -R root sugarcrm
    chmod -R 755 sugarcrm
    I don't have any error message in my log file but I don't have any email in my personal email address.

  9. #9
    Fedo is offline Senior Member
    Join Date
    Jun 2011
    Posts
    23

    Default Re: How to send emails with SugarCRM Community Edition ?

    Up.
    If someone can past his configuration on SugarCRM to send email please ?
    So I will compare with my configuration and maybe I will see my mistakes.

  10. #10
    uttam.biswas is offline Sugar Community Member
    Join Date
    Mar 2011
    Location
    Kolkata, India
    Posts
    12

    Default Re: How to send emails with SugarCRM Community Edition ?

    require_once('modules/Emails/Email.php');


    $mail = new SugarPHPMailer();

    $mail->setMailer($mail);
    $mail->AddAddress($to,$this->first_name." ".$this->last_name);
    $mail->From = $from;
    $mail->FromName = $this->first_name." ".$this->last_name;
    $mail->Sender = $mail->From;

    $mail->ContentType = "text/html";
    $mail->Subject = $subject;
    $mail->Body = $message;

    $GLOBALS['log']->debug('Email sending ... ');

    $mail->prepForOutbound();

    if($mail->Send())
    {
    echo ' ... sent successful';
    $GLOBALS['log']->debug(' ... sent successful');
    }
    else{
    echo 'Error emailing:';
    $GLOBALS['log']->debug("Error emailing:".$mail->ErrorInfo);
    }

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Migrating to the SugarCRM Community Edition 6
    By saulo in forum General Discussion
    Replies: 6
    Last Post: 2012-04-20, 04:00 PM
  2. Support for SugarCRM Community Edition
    By sachinvarma in forum General Discussion
    Replies: 4
    Last Post: 2009-03-06, 01:18 PM
  3. Replies: 1
    Last Post: 2008-06-18, 02:37 PM
  4. Replies: 6
    Last Post: 2008-05-11, 09:41 AM

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
  •