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
Sai Ram ASai Ram A 

Discard the email excess string

In my inbound Email handler class i have a email feild, Sometime i am getting the email field like this 

test@gmail.com<mailto:Email=test@gmail.com> in salesforce end and record is not getting created.

 I could not figure out why is this happening. 

 

out of this string --> test@gmail.com<mailto:Email=test@gmail.com>  how to extract test@gmail.com and insert in my field.

 

 

String[] Name = stringTest[1].split(':');
 Email = Name[1];

 

Please help me in figuring out !!

 

 

learninglearning

String[] Name = stringTest[1].split(':');

if{

name.contains('<');

name.split('<');

else

 Email = Name[1];