Skip to main content

Unable to send email using PHP SMTP

Comments

7 comments

  • cPanelMichael
    Hello :) Are you authenticating with a username/password combination that matches what you created under "Email Accounts" in the cPanel interface? Thank you.
    0
  • rooye
    Hi Yes, in the cpanel "Email Accounts" section, i created a number of emails accounts(7 to be exact).I took one of them (newsletters@domain.org[/EMAIL]) and it associated password and used.I had first gone to configure email client of the account in question.There i saw recommended settings for Secure SSL/TLS Settings.everything including the username and password, SMTP Port: 465,etc.However the following error keeps coming.Among other things I see Failed to authenticate password. Error: 534-5.7.9 Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. Thanks
    0
  • cPanelMichael
    Hello :) The message suggests you are attempting to authenticate to Google's mail service with your email account username/password. Have you tried accessing Webmail through cPanel to verify the password works with that? Why is your script configured to send through Google, but not using a Google email account? Thank you.
    0
  • rooye
    Hi, I am extremely greatful for your efforts to get me out of this difficulty.The thing is that because of this prob i tried different things.As you said,I had to create a new google account to use it username/password for the configuration.It still didn't work.I've tried using the username/password for an email account that is working on webmail of my server but yet it still didn't work.I am not sure of what I need to configure or what to do. Thanks for your help
    0
  • cPanelMichael
    I've tried using the username/password for an email account that is working on webmail of my server but yet it still didn't work

    It's likely not an issue with the email account on the cPanel server, since as you said, it works fine with Webmail. What are you using as the mail server name in your application? Thank you.
    0
  • rooye
    Hi Sir, I used SMTP except that I don't understand your question well.Thanks for your continuous concern.
    0
  • cPanelMichael
    For instance, in the script you are using, there should be a location where you configure the mail server name that you are using for the SMTP connection. What are you entering for that entry (e.g. Google's mail server name)? Thank you.
    0

Please sign in to leave a comment.