Mail for domain

Through a form on your website

If you have connected your domain to Yandex.Mail, you can place a form for accessing the mailboxes on your website.

Form code (do not forget to replace with the name of your domain):

<form method="post" action=""> 

<div class="label">Username:</div>
<input type="text" name="login" value="" tabindex="1"/>
<div class="label">Password:</div>
<input type="hidden" name="retpath" value="">
<input type="password" name="passwd" value="" maxlength="100" tabindex="2"/> <br>

<label for="a"><input type="checkbox" name="twoweeks" id="a" value="yes" tabindex="4"/>Don't remember me</label>

<input type="submit" name="In" value="Log in" tabindex="5"/> </form>

If you want users to be automatically logged on to email when they log on to your website, then place this form in a hidden frame. After entering the username and password on your website, transfer the email username and password to the former using JavaScript and then submit it. The user will be authorized to access email (if the login and password are correct), and a corresponding cookie will be provided. If you place a link to on your website it will lead to the user's mailbox if authorization is successful.