人人商城

notify.html 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {template 'common/header'}
  2. {template 'profile/common'}
  3. <div id="js-profile-notify" ng-controller="emailCtrl">
  4. <div class="we7-form">
  5. <form action="" method="post">
  6. <div class="form-group">
  7. <label for="" class="control-label col-sm-2">SMTP服务器</label>
  8. <div class="form-controls col-sm-8 form-control-static">
  9. <input id='radio-1' type="radio" name="smtp[type]" ng-checked="type == '163'" value="163" ng-click="type = '163'"/>
  10. <label for="radio-1">网易邮箱服务器(建议使用)</label>
  11. <input id='radio-2' type="radio" name="smtp[type]" ng-checked="type == 'qq'" value="qq" ng-click="type = 'qq'"/>
  12. <label for="radio-2">qq邮箱服务器</label>
  13. <input id='radio-3' type="radio" name="smtp[type]" ng-checked="type == 'custom'" value="custom" ng-click="type = 'custom'"/>
  14. <label for="radio-3">自定义</label>
  15. <span class="help-block">SMTP服务器为发送邮件的服务器,系统内置了网易和qq的邮件服务器的信息,可直接使用。如果有特殊需要请自定义SMTP服务器</span>
  16. </div>
  17. </div>
  18. <div class="form-group" ng-show="type == 'custom'">
  19. <label for="" class="control-label col-sm-2">SMTP服务器地址</label>
  20. <div class="form-controls col-sm-8">
  21. <input type="text" name="smtp[server]" value="{$mail_setting['smtp']['server']}" style="width: 600px" class="form-control" placeholder="">
  22. <span class="help-block">指定SMTP服务器的地址 </span>
  23. </div>
  24. </div>
  25. <div class="form-group" ng-show="type == 'custom'">
  26. <label for="" class="control-label col-sm-2">SMTP服务器端口</label>
  27. <div class="form-controls col-sm-8">
  28. <input type="text" name="smtp[port]" value="{$mail_setting['smtp']['port']}" style="width: 600px" class="form-control" placeholder="">
  29. <span class="help-block">指定SMTP服务器的端口 </span>
  30. </div>
  31. </div>
  32. <div class="form-group" ng-show="type == 'custom'">
  33. <label for="" class="control-label col-sm-2">使用SSL加密</label>
  34. <div class="form-controls col-sm-8 form-control-static">
  35. <input id='radio-11' type="radio" name="smtp[authmode]" value="1" ng-checked="setting['smtp']['authmode'] == 1" />
  36. <label for="radio-11">是</label>
  37. <input id='radio-12' type="radio" name="smtp[authmode]" value="0" ng-checked="setting['smtp']['authmode'] == 0 || setting['smtp']['authmode'] == undefined"/>
  38. <label for="radio-12">否</label>
  39. <span class="help-block">开启此项后,连接将用SSL的形式,此项需要SMTP服务器支持</span>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label for="" class="control-label col-sm-2">发送帐号用户名</label>
  44. <div class="form-controls col-sm-8">
  45. <input type="text" name="username" value="{$mail_setting['username']}" style="width: 600px" class="form-control" placeholder="">
  46. <span class="help-block">指定发送邮件的用户名,例如:test@163.com </span>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label for="" class="control-label col-sm-2">smtp客户端授权密码</label>
  51. <div class="form-controls col-sm-8">
  52. <input type="text" name="password" value="{$mail_setting['password']}" style="width: 600px" class="form-control" autocomplete="off" ng-focus="changeType($event)">
  53. <span class="help-block">指定发送邮件的密码,QQ邮箱此处为授权码,
  54. <a href="http://service.mail.qq.com/cgi-bin/help?subtype=1&amp;&amp;id=28&amp;&amp;no=1001256" target="_Blank" id="code">查看授权码获取方法</a>
  55. </span>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label for="" class="control-label col-sm-2">发件人名称</label>
  60. <div class="form-controls col-sm-8">
  61. <input type="text" name="sender" value="{$mail_setting['sender']}" style="width: 600px" class="form-control" placeholder="">
  62. <span class="help-block">指定发送邮件发信人名称 </span>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label for="" class="control-label col-sm-2">邮件签名</label>
  67. <div class="form-controls col-sm-8">
  68. <textarea rows="5" name="signature" style="width: 600px" class="form-control" placeholder="">{$mail_setting['signature']}</textarea>
  69. <span class="help-block">指定邮件末尾添加的签名信息 </span>
  70. </div>
  71. </div>
  72. <input type="submit" name="submit" value="提交" class="btn btn-primary" />
  73. <input type="hidden" name="token" value="{$_W['token']}"/>
  74. </form>
  75. </div>
  76. </div>
  77. <script>
  78. angular.module('profileApp').value('config', {
  79. 'setting' : {php echo json_encode($mail_setting)}
  80. });
  81. angular.bootstrap($('#js-profile-notify '), ['profileApp']);
  82. </script>
  83. {template 'common/footer'}