【发布时间】:2014-12-12 16:23:09
【问题描述】:
我无法使用 mailcore 发送 MS Exchange 电子邮件。 它总是返回错误“无法建立与服务器的稳定连接”。 这是我的代码
smtpSession.hostname = @"smtp.outlook.office365.co.uk";
smtpSession.username = [currentUser objectForKey:@"email_account"];
smtpSession.password = [currentUser objectForKey:@"email_password"];
smtpSession.port = 25;
smtpSession.connectionType = MCOConnectionTypeClear;
我认为是因为主机名。 谁能告诉我在这种情况下 MS Exchange 的确切主机名是什么?
【问题讨论】:
标签: mailcore2