Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Exception occurred when call SendTestEmail() #8320


User avatar
0
quantavn created

Cannot send test email, got the exeption: System.FormatException: The specified string is not in the form required for an e-mail address.

Version: ASP.NET CORE & Angular - v8.1.0


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    What is the value of Abp.Net.Mail.DefaultFromAddress? You can view it in the AbpSettings table in the database.

  • User Avatar
    0
    quantavn created

    I've updated the value of Abp.Net.Mail.DefaultFromAddress to a valid email address. But I got another error:

    MailKit.Security.AuthenticationException: 535: 5.7.8 Username and Password not accepted. Learn more at
    5.7.8  https://support.google.com/mail/?p=BadCredentials
    

    Can you guide me how to setup Google Mail account with 2-Step Verification enable?

    UPDATED: I can send test email now

  • User Avatar
    0
    maliming created
    Support Team

    You can take look this docs.

    https://support.google.com/mail/answer/185833?hl=en&visit_id=637142444995233272-2329662341&rd=1

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please open a new issue if you are still having this problem.