I have tried the code included on the f3 documentation for sending mail via an SMTP server. I have tried this against both Gmail and Yahoo!. It appears that in both cases, the username is being sent too early. I believe this is the case because after the username is sent via ->dialog(), the response from the server requests a username (
334 VXNlcm5hbWU6). In response, f3's smtp sends the encoded password. Assuming that this is the username, the server then responds, requesting a password (
334 UGFzc3dvcmQ6). At this point, the smtp class for f3 attempts to start sending the email, to which the server reseponds negatively.
Here are snippets of the conversation with the yahoo smtp server (I replaced the encoded strings with the string "base64encodedstring:"
AUTH LOGIN
250 8BITMIME
base64encodedstring
334 VXNlcm5hbWU6
base64encodedstring
334 UGFzc3dvcmQ6
MAIL FROM: <m...@mydomain.com>
530 Access denied
Google's response is a bit stranger:
AUTH LOGIN
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250-ENHANCEDSTATUSCODES
250 PIPELINING
base64encodedstring
334 VXNlcm5hbWU6
base64encodedstring
334 UGFzc3dvcmQ6
MAIL FROM: <m...@mydomain.com>
501 5.5.2 Cannot Decode response lb1sm50197pbc.47
These are the results of using correct credentials. When using incorrect credentials, a different error occurs, which could shoot my theory as to what's going wrong down.