Control end of replication

Hi all,in my code i lunch a replica between two server.

I want to sent an email only when the replica is finish!!

How i control if the replication is finish?

Thank’s in advance

Subject: RE: Control end of replication

If you are using the Replicate method, it will not return control to your code until the replication is complete. So just send the email after you call Replicate.