Access emails using imap

前端 未结 3 1170
终归单人心
终归单人心 2020-12-28 09:45

I am using Apache on Ubuntu 14.02 and running php on the same.I have connected to a remote mssql server hence no need of mysql .

I want to know how to connect to an

相关标签:
3条回答
  • 2020-12-28 10:08

    Have you activated the imap.so extension in your php.ini file ? extension=imap.so it's a basical cause of issues on localhost server

    0 讨论(0)
  • 2020-12-28 10:12

    Here is the solution:

    1. Login to your gmail account, enable imap.

    2. Let the access here first: https://www.google.com/settings/security/lesssecureapps

    3. Go to: https://accounts.google.com/b/0/DisplayUnlockCaptcha and enable access.

    That's it.

    I had the exact same problem when I try to get emails with imap on php. I was running the exact same script that I know it works with my other gmail.

    The solution is above and the error message was:

    ERROR: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser

    0 讨论(0)
  • 2020-12-28 10:13

    Try this (you need to turn on your Outbound relay):

    1. Log into your account at google.com/a/yourdomain.com
    2. Click the Settings tab and then select Email in the left column.
    3. In the Outbound relay section, select Allow users to send mail through an external SMTP when configuring a "from" address hosted outside your domain.
    4. Click Save changes.
    0 讨论(0)
提交回复
热议问题