Skip to content

Instantly share code, notes, and snippets.

@AlexMcowkin
Created April 26, 2017 10:41
Show Gist options
  • Save AlexMcowkin/77daf43d849578faf350ec30acc6755d to your computer and use it in GitHub Desktop.
Save AlexMcowkin/77daf43d849578faf350ec30acc6755d to your computer and use it in GitHub Desktop.
yii2: check if email exists
try {
// send email
}
catch (Swift_TransportException $e) {
// delete email
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment