Email ID validation

Hello All,
How to validate the email id without email validation activtiy.

1 Like

Hi
We can use get outlook mail activity by filtering the email id with its FILTER property in the property panel with condition like this
“ [ReceivedFrom] = ‘kabheer@gmail.com’ “
Or
“ [From] = ‘Kabeer’ “(Username)
Or

We can get the list of mailmessages from any other mail activity
And in for each loop pass the mailmessage list variable as input and change the type argument as system.net.mail.mailmessage and inside the loop use a if condition like this
item.Subject.ToString.Contains(“yourmailid@gmail.com”)
If true it will go to THEN part of if condition

We need to access mail activities to get the mail first and then only we can validate them unless we have the mail I’d list in separate with us

Hope this would help you
Cheers @Kabeer

Thanks a lot palaniyappan. But i need to validate the given email id is valid or invalid.
E.g abcj gmail.com( invalid)
Abc@gmail.com(valid)

It should contain .,@ after . 3 characters

1 Like

Fine
then we can use a simple if conditin like this

Hope this would help you
Cheers @Kabeer

@Kabeer You can alternatively use the .contains function to find if the character “@” exists in the value of email ID.
example:
if emailidvalue.contains("@")
then
writeline(“email ID is valid”)
else
writeline(“email ID is invalid”)

This may also help:

1 Like