<html> <body> <label ><b>Year*</b></label> <input type="checkbox" id='year' class="yearcheckall" value="0"><b>All</b> <input type="checkbox" name="year[]" class="year" value="1" required> 1st Year <input type="checkbox" name="year[]" class="year" value="2" required> 2nd Year <input type="checkbox" name="year[]" class="year" value="3" required> 3rd Year <input type="checkbox" name="year[]" class="year" value="4" required> 4th Year </body> </html> <script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script> $('.yearcheckall').on('click', function() { $('.year').prop('checked', this.checked) }); </script>
1.Install ssmtp as $ sudo apt-get update && sudo apt-get install ssmtp 2.Configure smtp file by editing the following file as, $ sudo gedit /etc/ssmtp/ssmtp.conf Update file with the following: AuthUser=Sendermail@gmail.com AuthPass=SenderPasswordforGMAIL FromLineOverride=YES mailhub=smtp.gmail.com:587 UseSTARTTLS=YES Now ssmtp.conf file should look like as the following one, AuthUser=Sendermail@gmail.com AuthPass=SenderPasswordforGMAIL # # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=postmaster # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub=smtp.gmail.com:587 # Where will the mail seem to come from? #rewriteDomain= # The full hostname hostname=tele-desktop118 # A...
Comments
Post a Comment