PowerShell script unable send SMTP email for DL email ID after resting the DL password

Hemant 1 Reputation point Microsoft External Staff
2024-03-30T23:48:38.2666667+00:00

PowerShell script was sending SMTP email for distribution list email ID until the password is rest. User's image Therefore, need some help to solve the issue.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. MotoX80 37,156 Reputation points
    2024-03-31T12:38:17.9166667+00:00

    Update the script to use the new password.

    1 person found this answer helpful.
    0 comments No comments

  2. Hemant 1 Reputation point Microsoft External Staff
    2024-03-31T19:26:43.36+00:00

    I have use new password. However, it still did not work.

    0 comments No comments

  3. MotoX80 37,156 Reputation points
    2024-03-31T20:57:17.6633333+00:00

    You should start by reviewing how and where the script stores the credentials. Make sure that it sees the correct password.

    Then work with your SMTP (Exchange?) server admin and have him test those credentials. Verify that no other access permissions were changed.

    Your image shows a "535 5.7.139" error. There are some hits on the net that describe how to troubleshoot that error.

    https://www.bing.com/search?q=smtp+error+535+5.7.139

    https://www.warmy.io/blog/understanding-and-fixing-the-smtp-535-error-incorrect-authentication-data/

    https://community.spiceworks.com/t/powershell-send-mailmessage-error-535-5-7-139-authentication-unsuccessful/966300


  4. Hemant 1 Reputation point Microsoft External Staff
    2024-04-01T18:07:47.22+00:00

    it is a team Distribution List email ID. It is working fine if I use Get-Credential. Since the Get-Credential prompt to enter the password every time, looking for work around for automation.


  5. Hemant 1 Reputation point Microsoft External Staff
    2024-04-01T22:31:18.2566667+00:00

    Resting the password has solve the issue.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.