Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Sending an email to the DataMiner User that starts the script

Solved2.58K views11th April 2023email
5
Ross Elliott [DevOps Advocate]1.20K 11th April 2023 0 Comments

Hi,

I have a script that takes a backup .xml file and stores it onto the DMA. I’d like to send an email to the User that has started the script, with the config file attached. I’m having trouble getting the User’s email address from the system. Below is just an example which fails as I’m just getting the UserLoginName.

How do I get the user’s email address stored in DataMiner? Maybe I could use engine.SendEmail() but I wasn’t clear on how to add the attachment using this and I have it working with the below.

Ross Elliott [DevOps Advocate] Selected answer as best 11th April 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
7
Tom Waterbley [SLC] [DevOps Enabler]10.32K Posted 11th April 2023 1 Comment

Hi Ross, the email address based on UserLoginName, can be obtained using the following code:

var req = new GetInfoMessage { Type = InfoType.SecurityInfo };
var userInfoResponse = (GetUserInfoResponseMessage)engine.SendSLNetSingleResponseMessage(req);

var dmaUser = userInfoResponse.FindUserByLoginName(engine.UserLoginName);

engine.GenerateInformation(dmaUser.EmailAdress);

Ross Elliott [DevOps Advocate] Posted new comment 11th April 2023
Ross Elliott [DevOps Advocate] commented 11th April 2023

Perfect, thank you very much!

Please login to be able to comment or post an answer.

DevOps Members get more insights on their profile page.

Spend your credits in our swag shop.

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)

Recent Blogs

  • Critical DataMiner security upgrade
  • What’s new in DataMiner 10.6.10?
  • What’s new in DataMiner 10.6.9?

Recent Questions

Please log in to see recent questions.
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs