Solved

php mail from localhost

Posted on 2006-07-10
4
386 Views
Last Modified: 2013-12-13
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
Comment
Question by:gstalin
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
Pravin Asar earned 50 total points
ID: 17150010
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
 
LVL 1

Expert Comment

by:Youkko
ID: 17194142
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
 
LVL 1

Expert Comment

by:Youkko
ID: 17194151
Also, there are lots of programs to send email from localhost, just seach google..
0
 
LVL 28

Expert Comment

by:Pravin Asar
ID: 17197647
Bala,

Have you resolved the problem ?

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now