+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Member level 3
    Points: 1,652, Level: 9
    Achievements:
    7 years registered

    Join Date
    Jul 2011
    Posts
    64
    Helped
    1 / 1
    Points
    1,652
    Level
    9

    Sending a mail to outlook using Shell Scripting but failure is observed

    Hi all,

    I am working on a script which is supposed to send a mail to outlook using shell scripting. In my company, outlook is used for sending and receiving mails.

    Now, I am allocated a task to generate the build report and send it to the module owner for paying their attention. I am able to generate the build report, but while sending a mail, it ask for the authentication and due to that, authentication failure message is returned and stops there. Please note, I have not entered the OTP or any response to log in and even though it is showing authentication failure. It asks for either OTP or access using MS Authenticator app. By using this, I can have an access to my email account and then I can send a mail.

    Can anyone guide me how to send a mail with such applications and authentication by shell scripting? How can I capture the response of MS Authenticator app in shell scripting or how can I make OTP authentication with the shell scripting?

    Thanks in advance.
    Chirag

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 77,038, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,609
    Helped
    3557 / 3557
    Points
    77,038
    Level
    67

    Re: Sending a mail to outlook using Shell Scripting but failure is observed

    Hi,

    you have to ask your eMail provider.

    For example: Some email providers need to login to the mail account, then look for available mails before you can send an mail..
    Trying to send a mial without proir looking for mails - they may show an authentication error.

    I donīt know if this is the case... thus --> contact the mail provider.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



--[[ ]]--