ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Laksh1999
    3. Best
    L
    • Profile
    • Following 3
    • Followers 1
    • Topics 20
    • Posts 55
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Exchange Environment - Lab

      I am not trying anything with the Government jobs.

      I am in Exchange environment to learn new things.I cannot do anything with the Production exchange environment. Just to understand the alerts in the servers i am creating my own lab servers and testing it in the test environment.If any one can help do help me .If not no issues.

      Close this thread or dont reply if no one is ready to help me on this topic

      Corrected this as well
      \Setup.exe /IAcceptExchangeServerLicenseTerms

      posted in IT Discussion
      L
      Laksh1999
    • Unable to login old profile

      Hi Team,

      I am unable to login to https://mangolassi.it/user/lakshmana because I have enabled two way authenticator for the login.When i have tired to login with Google Authenticator mangolassi is not able to login.Can anyone help me retrieving my old account if possible in mangolassi

      posted in IT Discussion
      L
      Laksh1999
    • Send CSV file to Slack Channel by bash script through Webhook

      Hi
      I am trying to send the assigned tickets in the queue as .csv file to the slack channel. I am able to download the .csv file in the dev desktop through bash script but unable to send that file to the Slack Channel.

      Anyone have tried this before?

      I have checked this

      https://api.slack.com/methods/files.upload

      I have only Webhook URL no other token is there with me as per the suggestion in the above link.

      posted in IT Discussion slack csv bash script webhook api
      L
      Laksh1999
    • Network Drive issue

      Hi

      I have one issue for the user.There are 2 network drive where 1st drive is valid and 2nd one is invalid.I have tried to remove the 2nd invalid network drive through "net use /delete *".Its not working

      I have deleted the valid network drive and then try to delete that other invalid network path which is mapped which does not help

      Both the links does not help.

      Referred this

      https://answers.microsoft.com/en-us/windows/forum/windows_10-files-winpc/unable-to-disconnect-from-mapped-network-drive/3dd9aba1-e9b3-454f-9872-2521112ddede

      https://community.spiceworks.com/how_to/159210-remove-drive-mapping

      posted in IT Discussion
      L
      Laksh1999
    • Orphoned Email list

      Hi Team,

      Anyone worked on the orphoned email list for the organization ?
      If yes how to find all the email list which is orphaned and how to take the details in .csv if it possible to do ?

      posted in IT Discussion
      L
      Laksh1999
    • Slack query

      I am trying to create a slack channels with the outputs in numbers through form in it.

      I am trying to make colors for the outputs.

      Example ) SLA : 100% means the background color of the number needs to be in green background. Any have tried this before ? If yes kindly share the link for the same.

      How to code inside the slack message box and automate the output through webhook ?

      posted in IT Discussion
      L
      Laksh1999
    • HTML Form filling Integrating through GCP Serverless

      Hi All,

      I have created a new IT portal for my organization. I have created a form in there to submit their Name,Email,Subject,Message. I am in need to have the user information who have submitted the form from their end.Once they submit that form that needs to send an email to IT helpdesk email id. That will get converted into ticket.Got help from Chat GPT but not all the time the Chat GPT can help like Humans in this forum like this.

      I need to know why this error is coming

      Error Logs for Reference

      2023/04/11 06:52:28 [error] 19#19: *5 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught LogicException: Your function must have "Psr\Http\Message\ServerRequestInterface" as the typehint for the first argument in /workspace/vendor/google/cloud-functions-framework/src/FunctionWrapper.php:99 Stack trace: #0 /workspace/vendor/google/cloud-functions-framework/src/FunctionWrapper.php(82): Google\CloudFunctions\FunctionWrapper->throwInvalidFunctionException() #1 /workspace/vendor/google/cloud-functions-framework/src/FunctionWrapper.php(36): Google\CloudFunctions\FunctionWrapper->validateFunctionSignature(Object(ReflectionFunction)) #2 /workspace/vendor/google/cloud-functions-framework/src/Invoker.php(53): Google\CloudFunctions\FunctionWrapper->__construct('submitForm') #3 /workspace/vendor/google/cloud-functions-framework/router.php(56): Google\CloudFunctions\Invoker->__construct('submitForm', 'http') #4 /workspace/vendor/google/cloud-functions-framework/router.php(59): {closure}() #5 {main} thrown in /workspace/vendor/google/cloud-functions-framework/src/F" while reading response header from upstream, 
      

      index.php

      <?php
      require __DIR__ . '/vendor/autoload.php';
      
      use PHPMailer\PHPMailer\PHPMailer;
      use Psr\Http\Message\ServerRequestInterface;
      
      function submitForm(ServerRequestInterface $request) {
        $parsedBody = $request->getParsedBody();
      
        $name = $parsedBody['name'];
        $email = $parsedBody['email'];
        $subject = $parsedBody['subject'];
        $message = $parsedBody['message'];
      
        // Write the form data to logs
        $log_message = "Form submission: Name=$name, Email=$email, Subject=$subject, Message=$message";
        error_log($log_message);
      
        // Send an email to the helpdesk only if email is from @domain.com domain
        if (strpos($email, '@domain.com') !== false) {
          $mail = new PHPMailer(true);
          $mail->isSMTP();
          $mail->SMTPAuth = true;
          $mail->Host = 'smtp.gmail.com';
          $mail->Port = port number;
          $mail->Username = 'email';
          $mail->Password = 'password';
          $mail->setFrom($email);
          $mail->addAddress('helpdesk Email');
          $mail->Subject = $subject;
          $mail->Body = $message;
          $mail->send();
        }
      
        $message = 'Form submission successful!'; // Include a success message in the response
        return $message;
      }
      
      

      composer.json

      {
        "require": {
          "phpmailer/phpmailer": "^6.5"
        },
        "autoload": {
          "psr-4": {
            "": "src/"
          }
        },
        "scripts": {
          "start": "php -S localhost:8080 -t public/",
          "serve": "functions-framework --target=submitForm --signature-type=http"
        },
        "minimum-stability": "dev",
        "prefer-stable": true
      }
      
      posted in IT Discussion
      L
      Laksh1999
    • 1 / 1