Diagram Desk

Email verification sequence diagram

After sign-up a verification mail goes out asynchronously, so the sign-up reply does not wait for it; the user then clicks the link.

The diagram

Sign-up serverMail serverSign upQueue verification mailCheck your inboxVerification mailOpen linkVerifiedUser
Sequence diagram · 3 shapes

Reading it step by step

  • 1. 'User' sends a request to 'Sign-up server': 'Sign up'.
  • 2. 'Sign-up server' notifies 'Mail server': 'Queue verification mail'.
  • 3. 'Sign-up server' replies to 'User': 'Check your inbox'.
  • 4. 'Mail server' notifies 'User': 'Verification mail'.
  • 5. 'User' sends a request to 'Sign-up server': 'Open link'.
  • 6. 'Sign-up server' replies to 'User': 'Verified'.

Shape by shape

ShapeSymbolConnections
UserActor→ Sign-up server(Sign up), Sign-up server(Open link) · ← Sign-up server, Mail server, Sign-up server
Sign-up serverParticipant and lifeline→ Mail server(Queue verification mail), User(Check your inbox), User(Verified) · ← User, User
Mail serverParticipant and lifeline→ User(Verification mail) · ← Sign-up server

Symbols used here

SymbolMeaning
Participant and lifelineA box on top and a dashed line below.
ActorA human participant; a stick figure.
Synchronous messageA call that waits; solid line, filled head.
ReplyThe answer; dashed line, open head.
Asynchronous messageSent without waiting; solid line, open head.

All sequence diagram symbols and how to draw

Diagram text

Paste this text into the editor to get the same picture, then change the names to fit your own work.

# Email verification sequence diagram
sequenceDiagram
  actor U as User
  participant S as Sign-up server
  participant M as Mail server
  U->>S: Sign up
  S-)M: Queue verification mail
  S-->>U: Check your inbox
  M-)U: Verification mail
  U->>S: Open link
  S-->>U: Verified

More sequence diagram examples

All SeewolLabs tools