Results 1 to 5 of 5

Thread: How to Stop Automatic Email

  1. #1
    art G is offline Sugar Community Member
    Join Date
    Dec 2010
    Posts
    46

    Default How to Stop Automatic Email

    I had an issue that just started yesterday, whenever someone inputs a new Lead it would automatically email that new lead a welcome email. I do not want that to happen, we have a web based leads that come in and they get emails but not the leads that are manually created.
    Is there a setting or something that was changed to enable this?

    Thx

    Art

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: How to Stop Automatic Email

    This is not something that Sugar does out of the box. One would have had to apply some sort of workflow automation or logic hook to make that happen.

    Take a look at the folder custom/modules/Leads to see if it contains a file named logic_hooks.php. If it does, renaming it to something else would disable the functionality. Of course, if this same logic hook is being used to send the email to the web leads, you would instead need to examine and modify the related code to apply the desired change.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    art G is offline Sugar Community Member
    Join Date
    Dec 2010
    Posts
    46

    Default Re: How to Stop Automatic Email

    You are correct I am trying to fix the HookManagement.php file. I basically want automated emails to go out only for the leads that come in through the web and their status being is 'Web' in DB. Everything else no emails.

    I can either get right now no emails to anyone from web or manual or both of them sending emails.

    I am using Sugar Professional Version 5.5.4 (Build 1246)

    this is my current syntax i am figuring out.
    this is my original code

    "
    function sendEmail(&$bean, $event, $arguments) {
    /* Check to see if this is a brand new record, we don't want to send
    ** multiple emails to the lead */
    if (empty($bean->fetched_row['status'])) {
    .......
    "
    This is what I have tried :

    "
    function sendEmail(&$bean, $event, $arguments) {
    /* Check to see if this is a brand new record, we don't want to send
    ** multiple emails to the lead */

    if($bean->status == "Web" && empty($bean->id)) {

    "

    Thx

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: How to Stop Automatic Email

    Try this:

    Code:
    if($bean->status == "Web" && empty($bean->fetched_row['id'])) {
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    art G is offline Sugar Community Member
    Join Date
    Dec 2010
    Posts
    46

    Default Re: How to Stop Automatic Email

    Great. That works.

    Thanks a lot.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2010-09-17, 03:56 PM
  2. Replies: 7
    Last Post: 2009-03-24, 02:50 PM
  3. how to stop the campaign sent email
    By eddiechen in forum Developer Help
    Replies: 2
    Last Post: 2008-12-31, 02:04 AM
  4. Replies: 16
    Last Post: 2008-08-15, 02:02 AM
  5. Automatic Bug Email
    By arthurp in forum General Discussion
    Replies: 0
    Last Post: 2005-12-14, 09:40 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
  •