Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

php mail from localhost

Hai,

i want to send mail from my localhost in php,i try to using my outlookexpress smtp and email parameters but it gives
warning like this
Warning: mail() [function.mail]: SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts. in D:\wamp\www\mail.php on line 9

It's possible to send mail from localhost ,then what are the changes php. ini settings for  sending mail

Thanks
Bala
0
gstalin
Asked:
gstalin
  • 2
  • 2
1 Solution
 
Pravin AsarCommented:
Do you have SMTP defined in php.ini ???

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

also look at

; For Win32 only.
;sendmail_from = me@domain.com
0
 
YoukkoCommented:
To send email from localhost, you first need to set up a smtp server.
There is a smtp server built in IIS, you just need to configure it and modify php.ini.

Just to warn, some internet providers don't allow users to send on smtp port from localhost, to prevent spammers action...
0
 
YoukkoCommented:
Also, there are lots of programs to send email from localhost, just seach google..
0
 
Pravin AsarCommented:
Bala,

Have you resolved the problem ?

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now