Comments (2)
另外,如果没有设置参数subject的话,下面这行会报错,$client->user在这个阶段并没有初始化。
$data->{subject} = "微信帐号 " . $client->user->displayname . " 扫描二维码" if not defined $data->{subject};
这个问题我已经修复了,在input_qrcode事件触发的时候,客户端还没有login成功,根本不知道是登录了什么帐号信息
关于你提到的
PostQRcode的正文显示的是乱码,并且附件的图片会损坏的问题
目前程序使用的Mojo::SMTP::Client模块连接qq的smtp服务有问题,我这边无法使用qq来发送邮件
[error] 插件[Mojo::Weixin::Plugin::PostQRcode]邮件发送失败: Must issue a STARTTLS command first.
所以不太清楚你是怎么发送邮件的,如果对perl熟悉的话 推荐你自己写自己的发送邮件回调
$client->on(input_qrcode=>sub{ #需要扫描二维码时会触发该事件
my($client,$qrcode_path)=@_; #传递给回调的第二个参数是二维码文件路径
在这里实现你自己邮件发送二维码的功能
});
from mojo-weixin.
QQ邮箱请使用smtp的25端口
from mojo-weixin.
Related Issues (20)
- 运行一段时间报错
- 发送消息失败。。 HOT 1
- 如何确定好友的唯一性? HOT 4
- [warn] 检测到该账号有其他运行中的客户端(pid:1), 请先将其关闭
- cpanm - command not found - macOS, perl 5.28 HOT 6
- 给好友发送消息,好友名字是中文时候发送失败,命令行显示error。是编码问题么,mojo用什么编码? HOT 1
- 发送位于本地机器中的图片 HOT 2
- 怎么通过C++程序关闭mojo-weixin?? HOT 8
- 有没有办法实现在群里@某人 HOT 2
- 日志中出现很多warn
- 消息上报回复 发送图片 url 模式 出错 HOT 8
- 读取客户端二维码失败 HOT 2
- utf8 乱码 HOT 3
- Openwx 开启3000端口 无法访问 HOT 2
- 二维码上传后报错
- 大佬,dockerhub说明里面的donate图裂了
- 请问这个项目,是不是也不可以登录了? HOT 2
- 每天凌晨自动退出登录? HOT 1
- 现在是不是不能用了,网页版微信登陆不了
- 无法perl xxx.pl启动,可以帮忙看下么 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo-weixin.