Code Monkey home page Code Monkey logo

Comments (2)

hexsum avatar hexsum commented on May 18, 2024

@baboowang

另外,如果没有设置参数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.

hexsum avatar hexsum commented on May 18, 2024

QQ邮箱请使用smtp的25端口

from mojo-weixin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.