ए भाई Think ज़रा हटके
Note: amtyThumb must be installed for new version of amty thumb post/recent

How to send mails from your PC? 5 min setup

letters

Before reading this article, you are required to install Xampp on your PC. This will automatically install other needful components. Then you would have to do some changes in php.ini that i am describing below.

Initial settings:

Locate php.ini which should exist on following path. I am assuming that you had installed Xampp on C drive.


C:\\php\php.ini
C:\\php\php5.ini
C:\\apache\bin\php.ini

Editing php.ini:
- Open php.ini file and uncomment the php_smtp.dll extension. This is required when sending emails to a remote server.
- Scroll down and find the following lines:

[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

- From the lines above, uncomment SMTP, smtp_port and sendmail_from
directives, then add SMTP server, SMTP port number and your preferred email address to SMTP, smtp_port and sendmail_from directives respectively, your final code should be similar to the one below:

[mail function]
; For Win32 only.
SMTP = mail.server.com
smtp_port = 25

; For Win32 only.
sendmail_from = something@server.com

- Replace mail.server.com and something@server.com with correct values. The default
- Restart your server. That you can do from xampp controller.

Please note this
SMTP port number is “25″. But port 25 is generally blocked by your ISP. So use 5190 instead. Otherwise you may need to contact your ISP to unblock it.

Now you just need some application that can send e-mail from your PC. You can use wordpress for the same.

Amit Gupta

Hey! this is Amit Gupta (amty). By profession, I am a Software Eng. And teaching is my passion. Sometimes I am a teacher, as you can see many technical tutorials on my site, sometimes I am a poet, And sometime just a friend of friends...

57
views


To book below area mail me




captcha

You can follow any responses to this entry through the RSS 2.0 feed.