- Download Sendmail for Windows;
- Extract
sendmail.zip
and place the contents in an easily accessible place, likeC:\sendmail
; - Open the
sendmail.ini
file using a text editor such as notepad and edit the following values:[sendmail] smtp_server=mail.example.com smtp_port=465 auth_username=username@example.com auth_password=your_password
- Comment out the unnecessary lines (put a semicolon before them):
[mail function] ; For Win32 only. ;SMTP = localhost ;smtp_port = 25
- Uncomment
sendmail_path
and point it to wheresendmail.exe
file resides:; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = C:\sendmail\sendmail.exe
- Save the
php.ini
file and restart all web services.
NOTE: For emails to be sent through an external SMTP server your computer must be connected to the internet!
@Olamify You send the email from your PHP application or CMS that you have installed. If you're building a WordPress site, create a page with a contact form and send email from it. It should work automagically! If it's not, as the instructions say, check your antivirus (some block port 25), or make sure your ISP allows you to send traffic on port 25.