PHP无法打开outlook发送电子邮件

时间:2017-06-02 00:54:20

标签: php email iis outlook

我正在尝试从php发送电子邮件,我不能使用SMTP或正常的发送电子邮件的方式,因为smtp服务器在我的网络上被阻止。我在我的服务器机器上安装了Outlook 2016(Windows 10 IIS)并发现此代码使用outlook从php发送电子邮件但它不起作用。

以下是代码:

offset

我收到此错误:

import speech_recognition as sr

# obtain audio from the microphone
r = sr.Recognizer()
with sr.Microphone() as source:
r.adjust_for_ambient_noise(source)
print("Say something!")
audio = r.listen(source)
print(type(audio))


BING_KEY = 'KEY'  # Microsoft Bing Voice Recognition API keys 32-character lowercase hexadecimal strings
try:
    print(type(r.recognize_bing(audio, key=BING_KEY)))
except sr.UnknownValueError:
    print("Microsoft Bing Voice Recognition could not understand audio")
except sr.RequestError as e:
    print("Could not request results from Microsoft Bing Voice Recognition service; {0}".format(e))

0 个答案:

没有答案