# Stash Latest (2.9) : Setting up your mail server

Added by spittet , edited by ganand on Sep 25, 2013

Setting up Stash to use your SMTP mail server:

- allows Stash to send notifications about events to do with pull requests. See Using pull requests in Stash. Note that if the mail server fails, notifications will be dropped.
- allows Stash to email a link to a newly created user, which the user can use to generate their own password.
- allows a user to reset his or her password if they forget it.

To configure a mail server for Stash, go to the administration area and click Mail server (under 'Settings'). See Supported platforms for the mail clients supported by Stash.

Fill in the form and click Save.

Hostname | The hostname of the mail server (for example "localhost" or "192.168.1.15").
Port | The port of the mail server (if unspecified, the port 25 will be used).
Username | The username to use to connect to the mail server.
Password | The password to use to connect to the mail server.
Use TLS | Check if the SMTP server you are connecting to uses TLS.
Email from | Specifies the 'From' header in notification emails (for example: noreply@yourcompany.com).

Anonymous User

Icon

If you are looking to setup the outgoing mail server as an anonymous user, simply leave the username and password fields empty. In Chrome, these fields could be auto-populated, leading to an error. Try with another browser to help work around it.

### Configuring the Mail Server to Use GMail

If you wish to connect to a Gmail account for email notifications in Stash, refer to the Configuring the Mail Server to Use GMail guide.

## Attachments:

skitched-20120229-134531.jpg (image/jpeg)
Screen shot 2012-02-29 at 1.44.26 PM.png (image/png)
skitched-20120327-144713.jpg (image/jpeg)
image2012-3-27 14:48:22.png (image/png)
image2012-3-27 14:49:59.png (image/png)
Stash_1_1_mail_server.png (image/png)
Stash_1_1_config_mail.png (image/png)
Stash_1_1_config_mail.png (image/png)
Stash_1_1_mail_server.png (image/png)
image2012-3-27 14:49:59.png (image/png)
image2012-3-27 14:48:22.png (image/png)
skitched-20120327-144713.jpg (image/jpeg)
Screen shot 2012-02-29 at 1.44.26 PM.png (image/png)
skitched-20120229-134531.jpg (image/jpeg)
Stash12_mail_server.png (image/png)
Stash12_mail_server.png (image/png)
skitched-20120229-134531.jpg (image/jpeg)
Screen shot 2012-02-29 at 1.44.26 PM.png (image/png)
skitched-20120327-144713.jpg (image/jpeg)
image2012-3-27 14:48:22.png (image/png)
image2012-3-27 14:49:59.png (image/png)
Stash_1_1_mail_server.png (image/png)
Stash_1_1_config_mail.png (image/png)
STASH13_nav2mail_setup.png (image/png)
STASH13_nav2mail_setup.png (image/png)
Stash_1_1_config_mail.png (image/png)
Stash_1_1_mail_server.png (image/png)
image2012-3-27 14:49:59.png (image/png)
image2012-3-27 14:48:22.png (image/png)
skitched-20120327-144713.jpg (image/jpeg)
Screen shot 2012-02-29 at 1.44.26 PM.png (image/png)
skitched-20120229-134531.jpg (image/jpeg)
Stash12_mail_server.png (image/png)