How to allow pear mail in windows 7 firewall

To allow PEAR Mail to work through the Windows 7 firewall, you'll need to create an outbound rule to allow the program to send emails. Here's a step-by-step guide to help you do so:

Method 1: Using the Windows Firewall with Advanced Security

  1. Open the Windows Firewall with Advanced Security by typing wf.msc in the Run dialog box (Windows key + R) and pressing Enter.
  2. In the Windows Firewall with Advanced Security snap-in, navigate to the "Inbound Rules" section.
  3. Click on "New Rule" in the right-hand Actions panel.
  4. Select "Rule Type" as "Outbound Rule" and click "Next".
  5. Choose "Program" as the rule type and click "Next".
  6. Select the PEAR Mail executable (usually located at C:\xampp\php\pear\mail.php) and click "Next".
  7. Allow the connection and click "Next".
  8. Choose the network types you want to apply the rule to (e.g., "Domain", "Private", or "Public") and click "Next".
  9. Name the rule (e.g., "PEAR Mail Outbound") and click "Finish".

Method 2: Using the Windows Firewall Control Panel

  1. Open the Windows Firewall Control Panel by clicking on the Start button and searching for "Windows Firewall".
  2. Click on "Advanced Settings" in the left-hand menu.
  3. In the Windows Firewall with Advanced Security snap-in, navigate to the "Outbound Rules" section.
  4. Click on "New Rule" in the right-hand Actions panel.
  5. Select "Rule Type" as "Outbound Rule" and click "Next".
  6. Choose "Program" as the rule type and click "Next".
  7. Select the PEAR Mail executable (usually located at C:\xampp\php\pear\mail.php) and click "Next".
  8. Allow the connection and click "Next".
  9. Choose the network types you want to apply the rule to (e.g., "Domain", "Private", or "Public") and click "Next".
  10. Name the rule (e.g., "PEAR Mail Outbound") and click "Finish".

After creating the rule, restart your computer or restart the PEAR Mail service to ensure the changes take effect.

If you're still experiencing issues, you can try the following: