How to onfigure other mail than gmail in msmtprc

To configure a mail client other than Gmail in the msmtprc file, you'll need to specify the correct settings for your email provider. Here's a general outline of the steps:

  1. Open the msmtprc file: You can find the msmtprc file in the following locations:
    • Windows 10/8: C:\Windows\System32\drivers\etc\
    • Windows 7: C:\Windows\System32\drivers\etc\
    • Linux: /etc/
  2. Edit the msmtprc file: Use a text editor like Notepad (Windows) or nano (Linux) to open the msmtprc file.
  3. Add the following lines: Replace <your_email_provider> with the name of your email provider (e.g., Outlook, Yahoo, AOL, etc.).

For example, if you're using Outlook, you would add the following lines:

account your_email_address
host outlook.office365.com
port 587
username your_email_address
password your_email_password
auth on

If you're using Yahoo, you would add the following lines:

account your_email_address
host smtp.mail.yahoo.com
port 587
username your_email_address
password your_email_password
auth on

If you're using AOL, you would add the following lines:

account your_email_address
host smtp.aol.com
port 587
username your_email_address
password your_email_password
auth on
  1. Save the changes: Save the msmtprc file.
  2. Restart your mail client: Restart your mail client (e.g., Outlook, Thunderbird, etc.) to apply the changes.

Here are some additional tips: