Skip to content

Conversation

@denzfarid
Copy link

Hi Snipe,

It was nice to meet you again.

I am writing regarding my recent Pull Request, which introduces a new feature for barcode labels by adding a MAILTO function.

I developed this feature because my Snipe-IT instance is hosted on a private domain and is not publicly accessible. The MAILTO link is intended to simplify asset identification: users can simply scan the label, and it will automatically generate an email with the asset details.

The email address is determined by the following logic:

  1. Company Specific: If a company is specified and an email address is entered for that company, the company email address will be used.
  2. Default from .env: If a company is not specified, the system will use the address defined by the MAIL_FROM_ADDRESS variable in the .env file.
  3. Fallback: If neither of the above is present, it will default to [email protected].

I hope this feature can be implemented in the next version. Thank you for considering my contribution!

Label Settings:
image

This example

Screenshot 2025-12-24 at 12 32 14

@denzfarid denzfarid requested a review from snipe as a code owner December 24, 2025 06:10
@snipe
Copy link
Member

snipe commented Dec 26, 2025

HI there! This seems... okay, for a limited circumstance - but we would need you to make the message translatable before we could test this and make it acceptable for the whole system. Also I don't think we're actually wanttlo hardcode [email protected]/com since those are not real addresses at all

@denzfarid
Copy link
Author

@snipe
Thank you very much snipe for your kind response, sorry I just replied, for [email protected] I will remove it later and for the language, can you tell me which file I should change?

Removed fallback email address for [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants