How to setup SMTP for Gmail?

Discussion in 'Technical Support' started by user2616, Dec 1, 2010.

  1. user2616 Customer

    What version of 68 Classifieds are you running?
    V4.1.9 Developer

    What template are you using?
    default (custom)

    Please describe in detail the issue you are having:

    Currently, I am using the following setup to send email:

    Site Email: username@gmail.com
    Use SMTP: No

    Sending email works fine.

    But, the email land up in spam folder, sometimes.

    After reading the forum that suggests to use SMTP to overcome spam folder problem, I decided to setup SMTP to send email through Gmail.

    Following link explains the steps to setup SMTP for Gmail:
    Configuring other mail clients - Gmail Help

    Standard instructions:
    Enable POP in Gmail. Don't forget to click Save Changes when you're done.
    Configure your client to match the settings below:
    Incoming Mail (POP3) Server - requires SSL: pop.gmail.com
    Use SSL: Yes
    Port: 995
    Outgoing Mail (SMTP) Server - requires TLS or SSL: smtp.gmail.com (use authentication)
    Use Authentication: Yes
    Port for TLS/STARTTLS: 587
    Port for SSL: 465
    Account Name: your full email address (including @gmail.com or @your_domain.com)
    Email Address: your email address (username@gmail.com or username@your_domain.com)
    Password: your Gmail password

    I configured Gmail as follows:
    POP Download: 1. Status: POP is enabled for all mail that has arrived since xx/xx/xx

    I configured 68C as follows:
    Site Email: username@gmail.com
    Use SMTP: Yes
    SMTP Server Address: tls://smtp.gmail.com
    SMTP Username: username@gmail.com
    SMTP Password: ******
    SMTP Port: 587

    When I click "Forgot Password?" in Login page and enter user email address, system displays the following message:
    A new password has been sent to your email address

    But, no email is received in Inbox or Spam folder.
    I tried Yahoo email address and Gmail email address, but no email received.

    Any help is really appreciated.

    Thank you.
  2. Mike-N-Tosh Owner

    TLS is a protocol not an address. your smtp server should be smtp.gmail.com
  3. user2616 Customer

    Thank you Mike for your suggestion.

    I configured 68C as follows:
    Site Email: username@gmail.com
    Use SMTP: Yes
    SMTP Server Address: smtp.gmail.com
    SMTP Username: username@gmail.com
    SMTP Password: ******
    SMTP Port: 587

    But, still no email is received in Inbox or Spam folder.
  4. Mike-N-Tosh Owner

    The only other suggestions that I can make is try using the SSL port instead of the TLS port (TLS is a newer protocol and may not be supported by your server).

    You may also want to take a look at your server logs for mail to check for errors.
  5. user2616 Customer

    Mike,

    Gmail Standard instructions say the following:
    Port for SSL: 465

    I configured 68C as follows:
    Site Email: username@gmail.com
    Use SMTP: Yes
    SMTP Server Address: smtp.gmail.com
    SMTP Username: username@gmail.com
    SMTP Password: ******
    SMTP Port: 465

    But, still no email is received in Inbox or Spam folder.

    I do not know how to set SSL in 68C.

    I checked the 68C admin menu, but cannot see any logs.

    I checked the cPanel Error Log, but cannot see any error related to email.
  6. Lhotch curmudgeon

    have you tried leaving the SMTP port field emtpy in 68C admin?
  7. user2616 Customer

    Larry,

    I configured 68C Main Settings as follows:
    Site Email: username@gmail.com
    Use SMTP: Yes
    SMTP Server Address: smtp.gmail.com
    SMTP Username: username@gmail.com
    SMTP Password: ******
    SMTP Port: (empty)

    But, still no email is received in Inbox or Spam folder.
  8. Lhotch curmudgeon

    Have you been able to use SMTP with non gmail acounts at all?
  9. user2616 Customer

    Larry,

    I have not tried using SMTP with non gmail accounts.

    I have a FREE Yahoo email, but Yahoo does not allow me to use SMTP.

    I do not have any other emails other than gmail and Yahoo.

    How to enable SSL in 68C?
  10. Mike-N-Tosh Owner

    So are you saying that your web hosting service doesn't have email services??? If that's the case, then I'd be switching hosting services pronto!
  11. user2616 Customer

    Mike,

    I have not used hosting service email before.

    After noting your question above, I tried SMTP with hosting service email as follows:

    Created an email account using cPanel.

    cPanel shows Manual Settings as follows:
    Mail Server Username: username+mydomainname
    Incoming Mail Server: mail.mydomainname
    Incoming Mail Server: (SSL) hostingdomainname
    Outgoing Mail Server: mail.mydomainname (server requires authentication) port 26
    Outgoing Mail Server: (SSL) mail.mydomainname (server requires authentication) port 465
    Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
    Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)

    I configured 68C Main Settings as follows:
    Site Email: username@mydomainname
    Use SMTP: Yes
    SMTP Server Address: mail.mydomainname
    SMTP Username: username+mydomainname
    SMTP Password: ******
    SMTP Port: 465

    But, still no email is received in Inbox or Spam folder.

    I do not know how to enable SSL in 68C.

    I configured 68C Main Settings as follows:
    Site Email: username@mydomainname
    Use SMTP: No

    Now, email is received in Inbox or Spam folder.
  12. Lhotch curmudgeon

    did your host tell you that you needs SSL or port 465? That post is not the default for SMTP.
  13. Mike-N-Tosh Owner

    If you are using cPanel, you may actually be putting your username in incorrectly.

    You posted:
    SMTP Username: username+mydomainname

    On every cPanel configuration that I've used for myself or my clients, the SMTP Username is actually
    username@mydomain (e.g. the full email address, example: admin@myclassifieds.com)

    Why do you keep dwelling on this SSL? You don't need to use SSL for the outgoing email. You don't need to activate SSL in 68C for email. Activating SSL in 68C is for collecting payments to you. SSL is used with an SSL certificate. Do you have an SSL certificate?
  14. user2616 Customer

    Larry,

    In cPanel, Mail Client Configuration page, I click the link "Auto-Configure Microsoft Outlook 2000® for POP3 Access (SSL)"

    System generated a .reg file.
    Saved .reg file in my PC.

    SMTP lines in the .reg file look as follows:
    "SMTP Server"="hostingservername"
    "SMTP Port"=dword:000001d1
    "SMTP Display Name"="username@mydomainname"
    "SMTP Email Address"="username@mydomainname"
    "SMTP Reply To Email Address"="username@mydomainname"
    "SMTP User Name"="username@mydomainname"

    I configured 68C Main Settings as follows:
    Site Email: username@mydomainname
    Use SMTP: Yes
    SMTP Server Address: hostingservername
    SMTP Username: username@mydomainname
    SMTP Password: ******
    SMTP Port: 465

    But, still no email is received in Inbox or Spam folder.

    I tried SMTP Port as blank.

    I configured 68C Main Settings as follows:
    Site Email: username@mydomainname
    Use SMTP: Yes
    SMTP Server Address: hostingservername
    SMTP Username: username@mydomainname
    SMTP Password: ******
    SMTP Port: (blank)

    Now, email is received in Inbox or Spam folder.

    I am not sure if the above configuration is SSL because SMTP Port is not set as 465.

    also, I do not know how to enable SSL in 68C.

    In cPanel User Guide, Configure an Email Client page shows as:
    http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/EmailAccounts > Configure an Email Client

    I do not find any other instruction in cPanel.

    By the way, my objective is to configure 68C SMTP for Gmail.
  15. Lhotch curmudgeon

    Your still not telling me, when trying to use your web hosts e-mail, why you set it to port 465.

    You need to stop mixing and matching directions from different mail systems and focus on what ever one it is your trying to test. Just because gmail said to use ssl/tsl and port 465 does not mean thats what you use to for smtp mail on your web host.
  16. Mike-N-Tosh Owner

    On a completely different note, my question to you is WHY do you want to use gmail for your web site's administrative email service and communication?

    gmail is one of many FREE email systems available, which also means that it one of the frequently used email systems for fraudsters and spammers (because it's free). Seriously, how many SPAM mails are sent from yahoo, hotmail and gmail??? Answer: in the hundreds of millions.

    I personally won't do online business with a company that doesn't send out it's email communications from it's own domain with the exception of already well known big time companies that sometimes contract out their communications to a third party.

    One of the most basic rules in use for spam filtering is whether the email being sent, actually matches the domain it which it claims it is from. (e.g. message from myclassifieds.com, but actually was sent from gmail.com)
  17. user2616 Customer

    Larry,

    Basically, I am using the parameter values that I got from the cPanel(hosting).

    I explain how I got the SMTP Port as 465.

    As I mention in my previous reply, in cPanel(hosting) I generated the .reg file for MS Outlook that configure the SMTP (SSL).

    I look at the .reg file to find out the parameter values that were generated by cPanel (hosting).

    I found the following line in the .reg file:
    "SMTP Port"=dword:000001d1

    The number 1d1 cannot be a decimal number as it contains alpha character.
    Then I suspected that the number may be hexadecimal.
    Tried converting 1d1 ( hexadecimal) to decimal number.
    1*256+13*16+1 = 465
    What a magic, it is 465 again !

    This is how I got SMTP Port as 465.

    ===================

    Mike,

    Your message makes very good sense to me.

    As I got so used to Gmail, I never tried hosting email until you asked me in your earlier reply that why I am not using hosting email.

    As part of testing SMTP with 68C, I am learning good stuff from all of you the experts.

    I will need to study what are the places I am using Gmail and work out a plan to migrate to hosting email.

    Thanks for your message.

    ===================

    At the moment, I am keen to configure 68C to use SMTP.
  18. Lhotch curmudgeon

    But are you using outlook? if not then the reg file generated for it has little bearing since with 68C your not using SSL. and since your not using SSL and cpanel gave you the following details.....

    Why not try using the port 26 like it says for Outgoing Mail Server?
  19. user2616 Customer

    Larry,

    I configured 68C Main Settings as follows:
    Site Email: username@mydomainname
    Use SMTP: Yes
    SMTP Server Address: hostingservername
    SMTP Username: username@mydomainname
    SMTP Password: ******
    SMTP Port: 26

    Now, email is received in Inbox or Spam folder.

    I am happy to see that 68C SMTP is working (non-SSL).

    Going back to Gmail SMTP.

    Gmail Standard instructions:
    Use SSL: Yes

    How to set SSL: Yes in 68C?
  20. Lhotch curmudgeon

Share This Page