Solved

php mail from localhost

Posted on 2006-07-10
4
393 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Echo Multiple values from multiple records 19 55
Simple function not working 7 43
Multi line FPDF footer: 3 24
Why is my implode function empty 8 13
This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

756 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