function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kathir Ravankathir Ravan 

Why email service address not working in yahoo mail...

Hi,
I have working inbound email handler for using email service address through different doamin like gmail,yahoo etc.When I sent email service from gmail to salesforce some information inserted in my contact object like name,title email.Am trying to sent email service address from yahoo to salesforce it nothing happen in contact object.Why yahoo mail is not support in salesforce may i know what is the reason.please could you tel any suggestion...Here my inbound email handler class... 
global class ProcessJobApplicantEmail implements Messaging.InboundEmailHandler {
   
   global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {
   Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();
	
    contact contact = new contact();
    string emails=envelope.fromAddress;
    string domain = emails.substringafter('@').trim();
    string mToAddressBefore = emails.subString(0,emails.indexOf('@'));
    system.debug('domain------->'+domain); 

    List<String> domainscollection = new List<String>();
    list<streamingAPI__Email_Domain_Routing5__c> myCS1 =streamingAPI__Email_Domain_Routing5__c.getall().values();
    system.debug('domain list--------->'+myCS1);
    for(streamingAPI__Email_Domain_Routing5__c DomainName:myCS1){
    
    if(myCS1.size()>0)
     domainscollection.add(DomainName.streamingAPI__Domain_Name__c); 
    }
    
    system.debug('domain listsize--------->'+domainscollection.size());
    for(String Domainlist:domainscollection ){   
    if(domain==Domainlist){
     
        system.debug('loop domain listsize--------->'+Domainlist);
        system.debug('domain------->'+domain);
        contact.FirstName = email.fromname.substring(0,email.fromname.indexOf(''));
        contact.LastName = email.fromname.substring(email.fromname.indexOf(''));
        contact.Email =mToAddressBefore+'@'+domain;
        contact.Title=email.subject;
        insert contact;
        System.debug('--------->Created Contact'+contact.Id);
        
    }
  
 } 
     if (email.binaryAttachments != null && email.binaryAttachments.size() > 0) {
     for (integer i = 0 ; i < email.binaryAttachments.size() ; i++) {
     Attachment attachment = new Attachment();
       
       
      //attach to the newly created contact record
        attachment.ParentId = contact.Id;
        attachment.Name = email.binaryAttachments[i].filename;
        attachment.Body = email.binaryAttachments[i].body;
        insert attachment;
        
      }
    }

    return result;

  }
  }


 
SonamSonam (Salesforce Developers) 
To troubleshoot this further..Do you have email to Case activated in your ORG? If yes, it gives you a Salesforce generated Email Service address with which you can create cases - first test to see if that works with your YAHOO email address.

Setup E2C and then send an email from your Yahoo address to see if a case gets created an also do the same with gmail address.

This will give you an idea as to what side has the problem - if its Yahoo ID, Salesforce or your custom email service..