为编程爱好者分享易语言教程源码的资源网
好用的代理IP,游戏必备 ____广告位招租____ 服务器99/年 ____广告位招租____ ____广告位招租____ 挂机,建站服务器
好用的代理IP,游戏必备 ____广告位招租____ 服务器低至38/年 ____广告位招租____ ____广告位招租____ 挂机,建站服务器

网站首页 > 脚本专栏 > 按键精灵相关 > 按键精灵Q语言 正文

Smail邮件客户端脚本源码

三叶资源网 2018-09-15 00:14:49 按键精灵Q语言 1850 ℃ 0 评论

运行环境:分辨率:1024x768 色深:32位 操作系统:Microsoft Windows XP 按键精灵版本:9.50.11632

@dica54dica  2013/4/19

//2013-3-21 晚上设计学习 = 分享  
  
//初始化  
Dim 你的邮箱帐号  
Dim 你的邮箱密码  
Dim 发送邮件地址  
Dim 邮件主题  
Dim 邮件内容  
Dim 邮件附件  
  
//发送按钮  
Event Smail.Button_send.Click  
  
你的邮箱帐号 = Smail.InputBox_user.Text  
你的邮箱密码 = Smail.InputBox_password.Text  
发送邮件地址 = Smail.InputBox_to.Text  
邮件主题 = Smail.InputBox_q.Text  
邮件内容 = Smail.InputBox_body.Text  
邮件附件 = Smail.BrowseBox_f.Path  
  
If 你的邮箱帐号 = "" or 你的邮箱密码 = "" or 发送邮件地址 = "" Then   
    MsgBox "请将邮件填写完整",vbExclamation  
Else  
    返回值 = Lib.网络.发送邮件(你的邮箱帐号,你的邮箱密码,发送邮件地址,邮件主题,邮件内容,邮件附件)  
  
    If 返回值 = TRUE Then  
        MsgBox "邮件发送成功",vbInformation  
    Else   
        MsgBox "邮件发送失败",vbQuestion  
    End If  
End If  
  
End Event  
  
//重置 按钮  
Event Smail.Button_reset.Click  
    Smail.InputBox_user.Text = "邮箱账号"  
    Smail.InputBox_password.Text = "邮箱密码"  
    Smail.InputBox_to.Text = ""  
    Smail.InputBox_q.Text = ""  
    Smail.InputBox_body.Text = ""  
    Smail.BrowseBox_f.Path = ""  
    Smail.InputBox_password.PasswordChar = false  
End Event  
  
//定时器  
Event Smail.Timer1.Timer  
    Smail.Timer1.Enabled = false  
    Smail.InputBox_time.Text = Date + Time  
    Smail.Timer1.Enabled = True  
End Event  
  
//解密载入时  
Event Smail.Load  
    Smail.Timer1.Enabled = false  
    Smail.Timer1.Interval = 1000  
    Smail.Timer1.Enabled = True  
End Event  
  
//账号 焦点  
Event Smail.InputBox_user.GotFocus  
    If Smail.InputBox_user.Text = "邮箱账号" then  
        Smail.InputBox_user.Text = ""  
    End If  
End Event  
  
Event Smail.InputBox_user.LostFocus  
    If Smail.InputBox_user.Text = "" then  
        Smail.InputBox_user.Text = "邮箱账号"  
    End If  
End Event  
  
//密码 焦点  
Event Smail.InputBox_password.GotFocus  
    If Smail.InputBox_password.Text = "邮箱密码" then  
        Smail.InputBox_password.Text = ""  
        Smail.InputBox_password.PasswordChar = True  
    End If        
End Event  
  
Event Smail.InputBox_password.LostFocus  
    If Smail.InputBox_password.Text = "" then  
        Smail.InputBox_password.Text = "邮箱密码"  
        Smail.InputBox_password.PasswordChar = false  
    End If  
End Event
文件下载


来源:三叶资源网,欢迎分享,公众号:iisanye,(三叶资源网⑤群:21414575

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

百度站内搜索
关注微信公众号
三叶资源网⑤群:三叶资源网⑤群

网站分类
随机tag
小米电视遥控器QQ收发消息文件拖拽圆形进度条FTP局域网AI文字转语音HP-Socket2HTTP服务端引流PrintableJS分析复制窗口捕获网卡动态支持库EC反编译二进制易语言编程基础教程内涵段子ACCESS操作斗鱼弹幕助手等待进程结束
最新评论