BOOL success = [CTSMTPConnection sendMessage:msg
server:SMTPServer
username:MyEmail
password:Password
port:587
connectionType:CTSMTPConnectionTypeStartTLS
useAuth:YES
error:&anyError];
returns NO
becasuse gmail blocks it:
Hi ...,
We recently blocked a sign-in attempt to your Google Account [...@gmail.com].
Sign in attempt details Date & Time: Friday, March 27, 11:50 AM EDT Location: ...., .., USA
If this wasn't you Please review your Account Activity page at https://security.google.com/settings/security/activity to see if anything looks suspicious. Whoever tried to sign in to your account knows your password; we recommend that you change it right away.
If this was you You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards.
To learn more, see https://support.google.com/accounts/answer/6010255.
Sincerely, The Google Accounts team
Is there a way around it besides the one that they suggest https://www.google.com/settings/security/lesssecureapps
or any other thoughts? Thanks
0 comments:
Post a Comment