# Welcome email being sent after every login

**URL:** <https://community.auth0.com/t/welcome-email-being-sent-after-every-login/9055>\
**Category:** Get Help\
**Tags:** welcome-email, email, login\
**Created:** [December 23, 2017, 2:17am UTC](https://community.auth0.com/t/welcome-email-being-sent-after-every-login/9055 "2017-12-23T02:17:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhilash1in](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abhilash1in](https://community.auth0.com/u/abhilash1in)\
**Post date:** [December 23, 2017, 2:17am UTC](https://community.auth0.com/t/welcome-email-being-sent-after-every-login/9055/1 "2017-12-23T02:17:51Z")

</div>

With SMTP (Gmail) email provider and a Google social login connection, it looks like from the few days, a welcome email is being sent to the user every time they login

* * *

Here are the logs of a user who has been sent 3 welcome emails - 1 email at each of the 3 logins shown in the logs below (All 3 are recorded as a `Success Login` event). `client_id`, `ip`, `user_id`, `user_name` values are hidden to protect privacy but the values are the same in all 3 logs

```
{
  "date": "2017-12-20T01:46:26.644Z",
  "type": "s",
  "connection": "google-oauth2",
  "connection_id": "con_c94TX4W5q5kStnnY",
  "client_id": "<HIDDEN>",
  "client_name": "Birthday Tracker",
  "ip": "<HIDDEN>",
  "user_agent": "Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1",
  "details": {
    "prompts": 
      {
        "name": "oauth2-authenticate",
        "initiatedAt": 1513734360301,
        "completedAt": 1513734386331,
        "timers": {
          "rules": 297
        },
        "connection": "google-oauth2",
        "elapsedTime": 26030
      }
    ],
    "initiatedAt": 1513734044354,
    "completedAt": 1513734386641,
    "elapsedTime": 342287,
    "stats": {}
  },
  "user_id": "<HIDDEN>",
  "user_name": "<HIDDEN>",
  "strategy": "google-oauth2",
  "strategy_type": "social",
  "auth0_client": {
    "name": "lock.js",
    "version": "10.18.0",
    "lib_version": "8.7.0"
  },
  "log_id": "49579568688084788852716023226483068531291786803790479362"
}

```

Log 2

```
{
  "date": "2017-12-20T01:32:58.534Z",
  "type": "s",
  "connection": "google-oauth2",
  "connection_id": "con_c94TX4W5q5kStnnY",
  "client_id": "<HIDDEN>",
  "client_name": "Birthday Tracker",
  "ip": "<HIDDEN>",
  "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_1 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0 Mobile/15C153 Safari/604.1",
  "details": {
    "prompts": 
      {
        "name": "oauth2-authenticate",
        "initiatedAt": 1513733456119,
        "completedAt": 1513733578213,
        "timers": {
          "rules": 302
        },
        "connection": "google-oauth2",
        "elapsedTime": 122094
      }
    ],
    "initiatedAt": 1513733450358,
    "completedAt": 1513733578530,
    "elapsedTime": 128172,
    "stats": {}
  },
  "user_id": "<HIDDEN>",
  "user_name": "<HIDDEN>",
  "strategy": "google-oauth2",
  "strategy_type": "social",
  "auth0_client": {
    "name": "lock.js",
    "version": "10.18.0",
    "lib_version": "8.7.0"
  },
  "log_id": "49579568688084788852716023168521120109868335428446191618"
}

```

Log 3

```
{
  "date": "2017-12-20T01:42:58.247Z",
  "type": "s",
  "connection": "google-oauth2",
  "connection_id": "con_c94TX4W5q5kStnnY",
  "client_id": "<HIDDEN>",
  "client_name": "Birthday Tracker",
  "ip": "<HIDDEN>",
  "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_1 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0 Mobile/15C153 Safari/604.1",
  "details": {
    "prompts": 
      {
        "name": "oauth2-authenticate",
        "initiatedAt": 1513734144286,
        "completedAt": 1513734177943,
        "timers": {
          "rules": 286
        },
        "connection": "google-oauth2",
        "elapsedTime": 33657
      }
    ],
    "initiatedAt": 1513734101145,
    "completedAt": 1513734178244,
    "elapsedTime": 77099,
    "stats": {}
  },
  "user_id": "<HIDDEN>",
  "user_name": "<HIDDEN>",
  "strategy": "google-oauth2",
  "strategy_type": "social",
  "auth0_client": {
    "name": "lock.js",
    "version": "10.18.0",
    "lib_version": "8.7.0"
  },
  "log_id": "49579568688084788852716023212244340227870670021730500610"
}

```

---

<div class="post-metadata">

**Author:** ![abhilash1in](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abhilash1in](https://community.auth0.com/u/abhilash1in)\
**Post date:** [December 23, 2017, 7:46pm UTC](https://community.auth0.com/t/welcome-email-being-sent-after-every-login/9055/2 "2017-12-23T19:46:16Z")

</div>

@jmangelo @jmangelo1

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [December 27, 2017, 12:22am UTC](https://community.auth0.com/t/welcome-email-being-sent-after-every-login/9055/3 "2017-12-27T00:22:17Z")

</div>

Provided an update in the original [question](http://community.auth0.com/questions/13061/multiple-welcome-emails-being-sent); closing this one to avoid parallel discussions.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/welcome-email-being-sent-after-every-login/9055/4 "2018-03-02T05:57:55Z")

</div>


