Windows 10: sending / receiving emails via command line

Discus and support sending / receiving emails via command line in Windows 10 Software and Apps to solve the problem; Hi folks I'm working on trying to send and receive emails via command line every so often on Windows It can be done but all the faqs - imbeciles... Discussion in 'Windows 10 Software and Apps' started by jimbo45, Dec 24, 2019.

  1. jimbo45 Win User

    sending / receiving emails via command line


    Hi folks
    I'm working on trying to send and receive emails via command line every so often on Windows

    It can be done but all the faqs - imbeciles guides etc etc just seem too complex and everybody uses gmail as their mail server.

    I'll do a proper tutorial later for a complete method but just to start on receive emails from a single account into one mailbox on an IMAP server (bog standard, no SLS etc) it's very simple to start receiving.

    ON Windows you need to install cygwin and mutt.

    now simply create the following in file .muttrc

    set mbox_type = Maildir
    set folder = imap://<your imap mail server address>
    set imap_user = <your account to RECEIVE mail>
    set imap_pass = <password on the account for inbound mail>
    set spoolfile = "+INBOX"

    That's it for Inbound mail

    I'll do more complex stuff later also with smtp send and with TLS stuff (If your IMAP has a security type sign on then you need imaps: for the server not imap: for the inbound server.

    The way I like to try stuff is forget all the complex stuff --try the bog standard easiest possible things first so the process (send / receive) works and then enhance security, add accounts etc etc.

    what I'm trying to achieve is to automatically send email containing my IP address (ISP one not LAN) when it changes so I can always logon remotely to my computers at home without needing teamviewer / dyndns or whatever.

    Basic receive now works : just type mutt and you'll see the screen I've got. BTW you can do this from the WSL without needing cygwin -- install mutt of course output shown below.

    Note there's also an error in most guides I've looked at -- IMAP password -- correct parameter should be as I've got it -- imap_pass and NOT imap_password.



    sending / receiving emails via command line [​IMG]


    cheers
    jimbo

    :)
     
    jimbo45, Dec 24, 2019
    #1
  2. Naki Win User

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile sending / receiving emails via command line :)
     
  3. ryanly Win User
    GPU-Z what command line parameter ?

    Current /? (-?) or / help (-help) parameter is invalid
     
    ryanly, Dec 24, 2019
    #3
  4. sending / receiving emails via command line

    OUTLOOK 365 does not send or receive emails


    I installed Win 10 today and everything works so far. Except Outlook 365. I open it and go to send and receive email but I get the following error: :error 0x800cc1a Your server does not support the encryption type you have specified. try changing the encryption method. Contact your ISP for assistance". I contacted them and they had no idea why nor had any other trouble calls with the win 10 install. I have accomplished one time the SFC/scannow with negative results. any help would be appreciated

    **SOLVED** After much research, I found that the ports assigned for incoming were set at 995, which the default for email is port 110. steps to solve were opening outlook, 1. clicking on file tab, 2. in info tab select account and social network settings, 3. select account settings, 4. select current email profile, 5. select change, 6. select more settings bottom right in window, 7. select the advanced tab (internet email settings), 8. select port 110 as incoming or select default tab, 9. close all and restart, open outlook and click send receive button and mail showed be receive and send.
     
    hockeypuck, Dec 24, 2019
    #4
Thema:

sending / receiving emails via command line

Loading...
  1. sending / receiving emails via command line - Similar Threads - sending receiving emails

  2. Speed test via command line

    in Windows 10 Network and Sharing
    Speed test via command line: I need to test the speed of an Internet connection.I can test it by connecting to sites line fast.com or speedtest.net, but I want to perform a continuous test and to save the results on a file.I created a PowerShell script to run ping every 30 seconds and it works fine, but...
  3. Email sending and receiving issue

    in Windows 10 Network and Sharing
    Email sending and receiving issue: "I got windows 10 and use micro soft edge. I have email through google. I am unable to send emails and a long delay getting new emails loaded. WINDOWS" https://answers.microsoft.com/en-us/windows/forum/all/email-sending-and-receiving-issue/e89847da-c476-4a51-8521-60aaf27286a2
  4. Email not able to send or receive

    in Windows 10 BSOD Crashes and Debugging
    Email not able to send or receive: I have Win 7 & 10 on two different pc's. I use Win Live Mail for my e-mail client on both devices plus on my tablet. Out of the blue yesterday I was unable to send mail, then today I can neither send or receive through LM. I am an ATT customer and have been using Yahoo mail...
  5. Can't receive or send emails

    in Windows 10 Customization
    Can't receive or send emails: Ever since an "Update" on August 7, 2020, I cannot receive or send emails on my Windows 10 computer with Windows Live Email. https://answers.microsoft.com/en-us/windows/forum/all/cant-receive-or-send-emails/b785d8d0-8379-4d7c-908f-4e3b8832b64a
  6. Unable to send/receive emails

    in Windows 10 Software and Apps
    Unable to send/receive emails: Outgoing email stuck in out box and no incoming email - only on my desk top-ipad & phone are fine. What happened? Thanks in advance ***Modified title from: gmail issue***...
  7. sending / receiving emails via command line

    in Browsers and Email
    sending / receiving emails via command line: Hi folks I'm working on trying to send and receive emails via command line every so often on Windows It can be done but all the faqs - imbeciles guides etc etc just seem too complex and everybody uses gmail as their mail server. I'll do a proper tutorial later for a...
  8. Cannot send or receive email

    in Windows 10 BSOD Crashes and Debugging
    Cannot send or receive email: I cannot access/use by Comcast email account. Outlook doesn't work either. icloud does not work. The 'Sync' function does not respond. I can connect to the internet (WiFi). Life was fine up to three days ago - I was typing a reply to an email, unintentionally hit a bunch of...
  9. Sending emails via Outlook

    in Browsers and Email
    Sending emails via Outlook: Outlook appeared at first to be working perfectly until I tried to send an email. It will not leave the outbox and I get the following message. Sending' reported error (0x800CCC13) : 'Cannot connect to the network. Verify your network connection or modem.' All tests work...
  10. Run a scheduled task via command line via command line

    in Windows 10 Support
    Run a scheduled task via command line via command line: i want start a Run a scheduled task via command line like this: Code: %SystemRoot%\system32\taskschd.msc /Run /TN "RegIdleBackup" when i run the cmd in the prompt as admin the shedular task GUI pop up but the task not start. Is there a solution? Is the...