Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7563355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:38:46+00:00 2026-05-30T13:38:46+00:00

I am using the following settings inside of Spring to create my mail sender.

  • 0

I am using the following settings inside of Spring to create my mail sender.

  <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
      <property name="host" value="mail.heavyweight.com"/>
      <property name="password" value="xxxxxx"/>
      <property name="port" value="26"/>
      <property name="username" value="thom@heavyweight.com"/>
      <property name="session">
        <bean class="javax.mail.Session" factory-method="getDefaultInstance">
          <constructor-arg>
            <props>
              <prop key="mail.smtp.from">thom@heavyweight.com</prop>
              <prop key="mail.smtp.user">thom@heavyweight.com</prop>
              <prop key="mail.smtp.auth">true</prop>
              <prop key="mail.smtp.starttls.enable">false</prop>
            </props>
          </constructor-arg>
          <property name="debug" value="true"/>
        </bean>
      </property>
  </bean>

Using the same SMTP server, user, and password that I use in my mail client.

When I try to send an email, I get this in the debug:

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true

DEBUG SMTP: trying to connect to host "mail.heavyweight.com", port 26, isSSL false
220-dyn.dynamicwebs.com ESMTP Exim 4.69 #1 Thu, 23 Feb 2012 16:55:27 -0600 
220-We do not authorize the use of this system to transport unsolicited, 
220 and/or bulk e-mail.
DEBUG SMTP: connected to host "mail.heavyweight.com", port: 26

EHLO motion
250-dyn.dynamicwebs.com Hello 74-133-195-24.dhcp.insightbb.com [74.133.195.24]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
DEBUG SMTP: Found extension "SIZE", arg "52428800"
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM 
AUTH LOGIN
334 VXNlcm5hbWU6
dGhvbUBoZWF2eXdlaWdodHNvZnR3YXJlLmNvbQ==
334 UGFzc3dvcmQ6
[redacted]
535 Incorrect authentication data

So why do I get the 535? Any ideas?

I have successfully done this several times before without issue. Something specific about this server.

The password appears to be encrypted. Since I need the password to be unencrypted, won’t this be a problem?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T13:38:48+00:00Added an answer on May 30, 2026 at 1:38 pm

    I configured my Spring bean in this way (from this post), without using the session property (allows to send an email through the GMail SMTP servers) :

    <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
        <property name="host" value="smtp.gmail.com" />
        <property name="port" value="587" />
        <property name="username" value="username" />
        <property name="password" value="password" />
    
        <property name="javaMailProperties">
           <props>
                  <prop key="mail.smtp.auth">true</prop>
                  <prop key="mail.smtp.starttls.enable">true</prop>
               </props>
        </property>
    </bean>
    

    And it works like a charm.
    You may try it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Spring application deployed in JBoss EAP server, using the following settings:
I'm using a TextView element with following layout settings <TextView android:layout_width=fill_parent android:layout_height=wrap_content android:maxLines=1 android:lines=1
I am using the following code to save values from a settings view that
When user using the Settings' Clear Data button I get the following message: ActivityManager(201):
I'm currently using the following two methods in my class to get the job
I've managed to create a tableViewController inside a NavigationController (using the CoreDataTableViewController from Stanford
I'm using the following config: ActionMailer::Base.smtp_settings = { :address => smtp.gmail.com, :port => 587,
I am using following setting for customErrors in my web.config. <customErrors mode="On" defaultRedirect="GenericErrorPage.aspx" >
I am using the KendoUi Slider. I'm using the following setings: jQuery(document).ready(function () {
I am setting the row height of my UITableView using following code [tableView setRowHeight:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.