open fancybox popup on demand (ajax, success...)
$.fancybox($('#content-div'), { padding: 15, closeBtn: true });
<div style="display:none"> <div id="content-div"> <h1>Tack för ditt mail!</h1> </div> </div>