# WelcomeEmail not working

**URL:** <https://forum.litium.com/t/welcomeemail-not-working/2046>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [May 7, 2021, 8:57am UTC](https://forum.litium.com/t/welcomeemail-not-working/2046 "2021-05-07T08:57:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tildaki](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tildaki](https://forum.litium.com/u/tildaki)\
**Post date:** [May 7, 2021, 8:57am UTC](https://forum.litium.com/t/welcomeemail-not-working/2046/1 "2021-05-07T08:57:35Z")

</div>

Hi!

I have a WelcomeEmail page in websites.

In the RegisterNewUser() method  
`_mailService.SendEmail(_welcomeEmailDefinitionResolver.Get(person.MapTo<WelcomeEmailModel>(), person.Email)`

The email is never sent. I can’t see any exceptions.

Any ideas?

Litium version: _[Version number]_

---

<div class="post-metadata">

**Author:** ![tildaki](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tildaki](https://forum.litium.com/u/tildaki)\
**Post date:** [May 7, 2021, 9:30am UTC](https://forum.litium.com/t/welcomeemail-not-working/2046/2 "2021-05-07T09:30:30Z")

</div>

Now I got this error:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/a0d5805aeed233f94ea26f11372b818c6bd590fd.jpeg)

What does that mean?

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [May 7, 2021, 9:57am UTC](https://forum.litium.com/t/welcomeemail-not-working/2046/3 "2021-05-07T09:57:56Z")

</div>

Have you added any mail settings to Web.config?  
Have you set a sender email on the Website?

You can use [Papercut](https://github.com/ChangemakerStudios/Papercut-SMTP/releases) as a localhost STMP server to test emails when working locally.

---

<div class="post-metadata">

**Author:** ![tildaki](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tildaki](https://forum.litium.com/u/tildaki)\
**Post date:** [May 7, 2021, 12:58pm UTC](https://forum.litium.com/t/welcomeemail-not-working/2046/4 "2021-05-07T12:58:10Z")

</div>

Got it working now! Thanks!

One last question:  
We need also to send a login link or password reset link after we have registered the new user so the user can log in. There is no code method ready for that today?

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [May 7, 2021, 1:48pm UTC](https://forum.litium.com/t/welcomeemail-not-working/2046/5 "2021-05-07T13:48:35Z")

</div>

The default Accelerator only supports including the login information in the Welcome email, by using variables from the model like this on the Welcome page Websites:

> Hi {FIRSTNAME} {LASTNAME}!  
> &nbsp;  
> A nice welcome text  
> &nbsp;  
> Your login information:  
> Username: {LOGINNAME}  
> Password: {PASSWORD}

Which then resolves to:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/c666da7c9efdf1c559c384f59a0a86249dfbb31d.png)

---

<div class="post-metadata">

**Author:** ![tildaki](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tildaki](https://forum.litium.com/u/tildaki)\
**Post date:** [May 7, 2021, 4:30pm UTC](https://forum.litium.com/t/welcomeemail-not-working/2046/6 "2021-05-07T16:30:41Z")

</div>

Alright!

Thank you again! Have a nice weekend!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [June 4, 2021, 4:31pm UTC](https://forum.litium.com/t/welcomeemail-not-working/2046/7 "2021-06-04T16:31:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
