Set up your Gmail account as SMTP server locally in the Alloy

  • Updated


To test email functionality/notifications, enable SMTP to send an email. This article describes how you can use your Gmail account to send emails from your local machine.


  1. Add the following settings inside <configuration></configuration>tag in the web.config file. You can add it to the end of the file.
    <smtp deliveryMethod="Network" from="">
    userName="Gmail Uid"
    password="Gmail account PWD"
  2. If you get the following error message then:

    We're sorry. We weren't able to set up your SMTP. Learn more using the error message below. The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first:

    Try this first:

    1. Log in to your Gmail account.
    2. Go to My Account > Sign-in & Security > Connected apps & sites
    3. Enable Allow less secure apps.
    4. Go to More controls > Security > Basic Settings.
    5. Scroll down to click Go to settings for less secure apps.
    6. Select enforce.
    7. Click Save.

See also SMTP errors - what do they mean?