5
我試圖從MS Exchange服務器發送郵件,但我得到錯誤的AUTH不可用(淨:: SMTPAuthenticationError)用Ruby 1.9.2
`check_auth_response「:503#5.3.3 AUTH不可用(網:: SMTPAuthenticationError)
我用來發送郵件的代碼是
require 'net/smtp'
require 'mail'
smtp = Net::SMTP.new('mycompanydomain',25)
smtp.start('mycompanydomain', '[email protected]', 'pwd',:plain) do |smtp|
# code to send mail
end
注:正常工作與Gmail帳戶,但無法爲公司帳戶。 任何幫助將是有用的。