Solved

php mail from localhost

Posted on 2006-07-10
4
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 29

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 29

Expert Comment

by:Pravin Asar
ID: 17197647
Bala,

Have you resolved the problem ?

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…

628 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