You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

767 B

title date categories tags
自动发邮件API 2020-06-16 15:43:54 [tech] <nil>

重整自己先前的mail模块,顺便封装了一个API出来,欢迎大家调用~

方法

参数(接受GET和POST)

  • to收信人邮箱地址
  • subject邮件主题
  • body邮件内容(建议使用html格式)
  • from发件人名称

请求地址

https://api.yimian.xyz/mail

示例

https://api.yimian.xyz/mail/?to=收信邮箱&subject=邮件主题&body=邮件内容&from=发件人名称

[scode type="yellow"]如遇到GET传递邮件内容错误,请尝试使用POST[/scode]

返回值(json格式)

  • 参数state::true(成功)或false(失败)

[scode type="dangerous"]每个IP每天请求上限50个[/scode]