There is one easy solution to test email with WAMP.
- Download ArGoSoft Mail Server Freeware
You can find Version 1.0.0.3 here. This is free for non-commercial use. - Install it.
- Go to Users and Domains
- Add domain robot.lk (make sure you add your domain here)
- Add user admin with password test123 (You may add all the email addresses that you may use for testing)
- Make sure php.ini has following settings
Code: Select all
[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25
- Write following code on a php file and place it under www root of WAMP
Code: Select all
<?php $headers = 'From: [email protected]' . "\r\n"; mail('[email protected]', 'my message subject', 'hi, its me', $headers); ?>
- Open your browser and run this file
- Now we need to configure your mail client with following settings.
Email Address: [email protected]
Account type: POP3
Incoming mail server: localhost
Outgoing mail server: localhost
User name: admin
Password: test123 - You can create more users and use those email addresses for testing.