Get email from server not working

Discussion in 'Email' started by Zorglub, Mar 16, 2015.

  1. Hi,

    I have a small application that periodically check my emails to see if I receive new ones.
    It works on C#.
    It works perfectly well with Yahoo and Gmail.
    But now I am trying to add an account from my Winhost domain and I get some authentication issue apparently.

    These are the settings I am using:
    Code:
    <Mailbox>
        <name>[user name for display]</name>
        <host>mail.[domainname].com</host>
        <username>[username]@[domainame].com</username>
        <password>[password]</password>
        <port>993</port>
        <isIMAP>true</isIMAP>
      </Mailbox>
    I get the following authentication exception message:
    Any idea what I am doing wrong?
     
    Last edited by a moderator: Oct 14, 2015
  2. ComputerMan

    ComputerMan Winhost Staff

    Use the mail server's URL instead of using the mail.[domainname].com URL.

    To find out what URL to use.

    Log into the control panel.

    Click on the "Sites" tab at the top.

    Click on the site account.

    Click on "Email" box.

    Click on the "SmarterMail Manager" link.

    You will see the address at the top in the address bar. It will look something like this: m06.internetmailserver.net

    The reason for the error message is because the SSL Certificate only works with the URL: *.internetmailserver.net URL.
     
    Michael likes this.
  3. hum. still not working.

    I am using this now:
    Code:
    <Mailbox>
        <name>[user name for display]</name>
        <host>m05.internetmailserver.net</host>
        <username>[username]@[domainame].com</username>
        <password>[password]</password>
        <port>993</port>
        <isIMAP>true</isIMAP>
      </Mailbox>
    And I got the following exception:

    Code:
    The handshake failed due to an unexpected packet format
    Is the port ok ?
     
  4. ComputerMan

    ComputerMan Winhost Staff

    For SMTP port you need to use: 465
    IMAP it's: 993


    For the IMAP port of 993 doesn't work try using: 143
     
  5. Still not working.

    I am attaching the code so hopefully you can try it and tell me what is wrong.
    Edit the data.xml to fill up the username and password.

    This is working perfectly well for gmail and yahoo
     

    Attached Files:

    • Mail.zip
      File size:
      707 KB
      Views:
      2,385

Share This Page