无法通过雅虎发送邮件 - skpsmtpmessage

时间:2014-04-25 12:06:45

标签: ios smtp yahoo

我从Github下载了skpsmtpmessage代码并在我的iphone上运行它,它无法通过我的yahoo帐户发送任何电子邮件。我设置      testMsg.relayHost = @ “smtp.mail.yahoo.com” 但它总是因“不支持的登录机制”而失败。或类似的东西,即使我有正确的登录名和密码。请参阅下面的控制台日志。

是否有人试图通过此程序通过雅虎发送邮件?

    SKPSMTPMessage *testMsg = [[SKPSMTPMessage alloc] init];
    testMsg.fromEmail = @"mylogin@yahoo.com";
    testMsg.toEmail =   @"mylogin@yahoo.com";
    testMsg.relayHost = @"smtp.mail.yahoo.com";
    testMsg.requiresAuth = YES;
    testMsg.login = @"mylogin";
    testMsg.pass = @"mypassword";
    testMsg.subject = @"test message";
    testMsg.wantsSecure = NO; // I tried both YES and NO, neither works

记录如下

    2014-04-25 17:10:08.748 SMTPSender[14408:60b] C: Attempting to connect to server at: smtp.mail.yahoo.com:25
    2014-04-25 17:10:08.774 SMTPSender[14408:60b] Application windows are expected to have a root view controller at the end of application launch
    2014-04-25 17:10:09.010 SMTPSender[14408:60b] *** stopping watchdog ***
    2014-04-25 17:10:09.011 SMTPSender[14408:60b] S: 220 smtp.mail.yahoo.com ESMTP ready
    2014-04-25 17:10:09.011 SMTPSender[14408:60b] C: EHLO localhost
    2014-04-25 17:10:09.012 SMTPSender[14408:60b] *** starting short watchdog ***
    2014-04-25 17:10:09.070 SMTPSender[14408:60b] *** stopping watchdog ***
    2014-04-25 17:10:09.071 SMTPSender[14408:60b] S: 250-smtp.mail.yahoo.com
    2014-04-25 17:10:09.071 SMTPSender[14408:60b] *** stopping watchdog ***
    2014-04-25 17:10:09.071 SMTPSender[14408:60b] S: 250-PIPELINING
    2014-04-25 17:10:09.072 SMTPSender[14408:60b] *** stopping watchdog ***
    2014-04-25 17:10:09.072 SMTPSender[14408:60b] S: 250-SIZE 41697280
    2014-04-25 17:10:09.072 SMTPSender[14408:60b] *** stopping watchdog ***
    2014-04-25 17:10:09.072 SMTPSender[14408:60b] S: 250-8 BITMIME
    2014-04-25 17:10:09.073 SMTPSender[14408:60b] *** stopping watchdog ***
    2014-04-25 17:10:09.073 SMTPSender[14408:60b] S: 250 STARTTLS
    2014-04-25 17:10:09.074 SMTPSender[14408:60b] delegate - error(-2): Unsupported login mechanism.

有什么想法吗?

0 个答案:

没有答案