Support ticket SMTPAuthenticationError

Hello,

I’m setting support ticket now but failed with SMTPAuthenticationError.

my support_ticket.yml file is:

support_ticket:
  email:
    to: "helpdesk@ainstitute.org"
    from: "ood@ainstitute.org"

    delivery_method: "smtp"
    delivery_settings:
      address: 'smtp.office365.com'
      port: 587
      domain: 'ainstitute.org'
      user_name: 'ood'
      password: '****************'
      authentication: 'plain'
      enable_starttls_auto: true
      open_timeout: 15
      read_timeout: 15

  attributes:
    username:
      value: "<%= CurrentUser.name %>"
      readonly: true
    email:
      widget: email_field
      required: true
    subject:
      value: "[OOD] "
      required: true
    session_id:
      widget: hidden_field
    session_description:
      hide_when_empty: true
      disabled: true
    attachments:
      widget: file_attachments
    description:
      widget: text_area
      required: true
      rows: 10
  form:
    - username
    - email
    - subject
    - session_id
    - session_description
    - attachments
    - description

When I tried to submit a ticket, I got this SMTPAuthenticationError.

Does anyone have how to break this issue?

I’m really not sure. Off the top of my head, I’d guess you need to check with Office 365 about what it is expecting for the auth credentials and see if the user_name under the delivery_settings is the right form.

Thank you, Travis

I changed authentication setting from plain to login in delivery_settings. Then it works.

Thanks.