java - Jmeter在gmail上发送电子邮件时出错

标签 java jmeter

今天我正在研究jmeter

  1. 连接 Gmail
  2. 登录
  3. 发送电子邮件

我通过了 2 个步骤,但在第 3 步出现错误“java.net.UnknownHostException: mail.google.com

登录: enter image description here

发送电子邮件: enter image description here

我连接了网站上的链接“ma​​il.google.com”。

有人可以教我我错了什么吗?

最佳答案

我建议使用SMTP Sampler而不是使用 Web 界面模拟发送电子邮件。

相关配置为:

  • 服务器:smtp.googlemail.com
  • 端口:587
  • 地址来自:您的 Gmail 地址
  • 地址:收件人地址
  • 选中“使用身份验证”并提供您的完整 GMail 用户名和密码
  • 勾选“使用 StarTLS”单选按钮

其他字段几乎是不言自明的

GMail SMTP

引用文献:

关于java - Jmeter在gmail上发送电子邮件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37786816/

相关文章:

java - 返回或打印 StringBuilder? java

java - jmeter 无法运行!无法找到 Java 可执行文件或版本。请检查您的 Java 安装”

jmeter - 如何在 Jmeter 中格式化 JSON 响应?

java - Jmeter 上传录音报错

linux - 1000 个并发请求的 linux/apache 性能基准

java - 无法反序列化;嵌套异常是 org.springframework.core.serializer.support.SerializationFailedException : Failed to deserialize payload

c# - 从 Java Servlet 调用 WCF Web 服务

java - 谷歌应用引擎: how to add information to the connect/disconnect channel "ping"s?

java - 如果按下的按钮是 CapsLk

linux - Jmeter 执行脚本但提供空白报告