• Azarudeen
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 3
    Replies
The attached message was sent to the Email Service address <steadfastsales@66jpcia0j3noba4kdwt67gnwm.9xmtfea0.9.apex.salesforce.com> but could not be processed because the following error occurred:

554 Transaction failed: No authentication check passed.

 

send a mail to salesforce.com, create a lead. but company address is not working. yahoo,gmail are working below code
Global class unsubscribe implements Messaging.inboundEmailHandler{
Global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email,Messaging.InboundEnvelope env )
 {
// Create an inboundEmailResult object for returning
//the result of the Apex Email Service
Messaging.InboundEmailResult result = new Messaging.InboundEmailResult();
 
String strEmailId = email.fromAddress.toLowerCase();
String strSubject = email.subject.toLowerCase();
String emailBody1 = email.plainTextBody.toLowerCase();
String[] strTemp=strEmailId.split('@',0);   // first split with @, you'll get [jaya, global.com] in array
String temp = strTemp[1];
String[] comp=temp.split('\\.',0);     // again split 2nd element of array with dot(.)
String compa = comp[0].toLowerCase();            // It shows the compny name 'global' in debug log
 
 integer iCount;
 iCount = [select count() from Lead where Email=:email.fromAddress];
 
   if (iCount==0)
   {   
   Lead l = new lead(
           FirstName='Mailing Lead1',    //firstname
           LastName='Mailing Lead1',     //Lastname           
           Email=strEmailId,             //email      
           Company=compa,                //company
           Title=strSubject,              // title
           Description=emailBody1,        //description
           Status='Open-Not Contacted',
           HasOptedOutOfEmail=true,
           OwnerId='00590000000Oy12AAC');
          
   insert l;
   }
 
result.success = true;
return result;
    }  
    }

Global class unsubscribe implements Messaging.inboundEmailHandler{Global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email,Messaging.InboundEnvelope env ) {// Create an inboundEmailResult object for returning//the result of the Apex Email ServiceMessaging.InboundEmailResult result = new Messaging.InboundEmailResult(); String strEmailId = email.fromAddress.toLowerCase();String strSubject = email.subject.toLowerCase();String emailBody1 = email.plainTextBody.toLowerCase();


String[] strTemp=strEmailId.split('@',0);   // first split with @, you'll get [jaya, global.com] in arrayString temp = strTemp[1];String[] comp=temp.split('\\.',0);     // again split 2nd element of array with dot(.)String compa = comp[0].toLowerCase();            // It shows the compny name 'global' in debug log 
 integer iCount; iCount = [select count() from Lead where Email=:email.fromAddress];    if (iCount==0)   {      Lead l = new lead(           FirstName='Mailing Lead1',    //firstname           LastName='Mailing Lead1',     //Lastname                      Email=strEmailId,             //email                 Company=compa,                //company           Title=strSubject,              // title           Description=emailBody1,        //description           Status='Open-Not Contacted',           HasOptedOutOfEmail=true,           OwnerId='00590000000Oy12AAC');             insert l;   } result.success = true;return result;    }      }

 

 

trigger CreateAccountContact on Opportunity (after insert, after update,before Delete)
{
List<Account__c> accList=new List<Account__c>();
List<Contact__c> conList=new List<Contact__c>();
List<Lead__c> l=new List<Lead__c>();
//List<Opportunity__c> OppList=new List<Opportunity__c>();
for(Opportunity__c Opp:trigger.new)
{
if(Opp.Stage__c=='Closed Won') 
 {
Opportunity__c objopp =[select Lead__c from Opportunity__c where id =:Opp.id];
Lead__c objlead = [select First_Name__c,Company__c,Last_Name__c,Email__c from Lead__c where id=:objopp.Lead__c];
Account__c ac=new Account__c(Company__c=objlead.Company__c);
accList.add(ac);
Contact__c con=new Contact__c(Last_Name__c=objlead.Last_Name__c,First_Name__c =objlead.First_Name__c,Email__c=objlead.Email__c);   // map the other fields of lead to contact as you required
conList.add(con);    
//l=[select id,name,Company,LastName,Email from Lead where id=:objopp.Lead__c];
//Opportunity objopp1=new Opportunity(Description=objlead.Name);
//OppList.add(objopp1);
  }  
 } 
 insert accList;
 insert conList;
 //update OppList;
 
  Delete l;
 
 
}

trigger CreateAccountContact on Opportunity (after insert, after update,before Delete){List<Account__c> accList=new List<Account__c>();List<Contact__c> conList=new List<Contact__c>();List<Lead__c> l=new List<Lead__c>();//List<Opportunity__c> OppList=new List<Opportunity__c>();for(Opportunity__c Opp:trigger.new){if(Opp.Stage__c=='Closed Won')  {Opportunity__c objopp =[select Lead__c from Opportunity__c where id =:Opp.id];Lead__c objlead = [select First_Name__c,Company__c,Last_Name__c,Email__c from Lead__c where id=:objopp.Lead__c];Account__c ac=new Account__c(Company__c=objlead.Company__c);accList.add(ac);Contact__c con=new Contact__c(Last_Name__c=objlead.Last_Name__c,First_Name__c =objlead.First_Name__c,Email__c=objlead.Email__c);   // map the other fields of lead to contact as you requiredconList.add(con);    //l=[select id,name,Company,LastName,Email from Lead where id=:objopp.Lead__c];//Opportunity objopp1=new Opportunity(Description=objlead.Name);//OppList.add(objopp1);  }   }  insert accList; insert conList; //update OppList;   Delete l; 
 }

 

 

custom Object- supplier

web form   - PHP or HTML(supplier Details)

 

When i register a supplier details in web form, all the datas are stored in the supplier custom object.Plz sent procedures and code step by step.

drupal modules in salesforce

Lead 

Opportunity

Account

 

Opportunity references Lead(Opportunity status is closed won , Lead is converted in to account and Opportunity references to the account).Lead Name is deleted in the Opportunity Field. how to manage these kind of situation

 

 

When i send an email(company address) to activated salesforce EmailID. Msg is not Delivered. but yahoo,gmail are working . plz help me

 

This is my code.

 

Global class unsubscribe implements Messaging.inboundEmailHandler{
Global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email,Messaging.InboundEnvelope env )
 {

Messaging.InboundEmailResult result = new Messaging.InboundEmailResult();
 
String strEmailId = email.fromAddress.toLowerCase();
String strSubject = email.subject.toLowerCase();
String emailBody1 = email.plainTextBody.toLowerCase();



String[] strTemp=strEmailId.split('@',0);  
String temp = strTemp[1];
String[] comp=temp.split('\\.',0);     
String compa = comp[0].toLowerCase();            
 
 integer iCount;
 iCount = [select count() from Lead where Email=:email.fromAddress];
 
   if (iCount==0)
   {   
   Lead l = new lead(
           lastName='Mailing Lead1',                
           Email=strEmailId,                    
           Company=compa,
           Title=strSubject,
           Description=emailBody1,
           HasOptedOutOfEmail=true,
           OwnerId='00590000000lKc5AAE');
       
   insert l;
   }
 
result.success = true;
return result;
    }  

}

when i add custom field in Lead Object like amount in Admin User. But in other user lead custom field amount textbox is not displayed in the Lead Object UI. 

In email service Yahoo,hotmail gmail etc only supported. when i send email to the company address eg like ibm.com, infosys.com,tcs.com etc email is not supported

How to hide a back to list link button?

Hi ...I am a student persuing Master's in ComputerScience .I have a real time experience in  .Net and Java.I would like to join salesforce group.So are there any opportuniites for freshers in Salesforce development...can u suggest me if there r any ?

  • February 21, 2011
  • Like
  • 0

In email service Yahoo,hotmail gmail etc only supported. when i send email to the company address eg like ibm.com, infosys.com,tcs.com etc email is not supported

jEmail ID= Jaya@global.com

 

company name=global

 

How to split the global in the ID?

 

plz send code.