Results 1 to 10 of 11
Hi friends,
I have designed and one form and php code to send mail. I am developing this in my localhost,
So now i want to send email from my ...
- 01-21-2011 #1Linux User
- Join Date
- Aug 2008
- Location
- Trichy,India
- Posts
- 308
Problem in sending email from localhost
Hi friends,
I have designed and one form and php code to send mail. I am developing this in my localhost,
So now i want to send email from my localhost to test my programming.
I googled and i find something like editing "php.ini" file. But it didnt work for me.
So can anyone help me and i am using wamp server.
Thank you.Thanks in advance...
- 01-21-2011 #2Just Joined!
- Join Date
- Mar 2009
- Location
- Norway
- Posts
- 52
Ok, so you need help to get PHP into sending email - or is the problem that your *system* won't send email?
For PHP to send a simple email, look at PHPs mail-function.
If this doesn't work, make sure sendmail is configured properly:
echo "hello world" | mail -s "testmail" your.email@example.org
If you get this email, all is good, if not, have a look at the output from these commands:
mailq -q
tall /var/log/mail.err
HTH
- 01-21-2011 #3Linux User
- Join Date
- Aug 2008
- Location
- Trichy,India
- Posts
- 308
Thanks for your rely
For your kind information i am using windows.
How can i use these
Thank youCode:mailq -q tall /var/log/mail.err
Thanks in advance...
- 01-21-2011 #4Just Joined!
- Join Date
- Mar 2009
- Location
- Norway
- Posts
- 52
- 01-21-2011 #5Linux User
- Join Date
- Aug 2008
- Location
- Trichy,India
- Posts
- 308
I am using php in wampserver. I didnt find any place to help me out.
Thanks in advance...
- 01-21-2011 #6Linux User
- Join Date
- Aug 2008
- Location
- Trichy,India
- Posts
- 308
when i remove this '@" symbol. I am getting the below warning as
"Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in F:\test\xampp\htdocs\sendmail.php on line 42'Thanks in advance...
- 01-21-2011 #7Just Joined!
- Join Date
- Mar 2009
- Location
- Norway
- Posts
- 52
Yeah, you need to configure sendmail (or equivalent) for windows. I'm not an expert on this, but google will help you out, add windows+smtp+howto in a google-query (stupid forum won't lett me post URLs yet
)
If you do that, then the PHP-code is at least one step closer
- 01-29-2011 #8Linux User
- Join Date
- Aug 2008
- Location
- Trichy,India
- Posts
- 308
Now i am getting this error when i attempt to use my mail form.
Please help me i got struck in this for long time....Code:Warning: mail() [function.mail]: SMTP server response: 550-5.7.1 [122.162.237.107] The IP you're using to send mail is not authorized 550-5.7.1 to send email directly to our servers. Please use the SMTP relay at 550-5.7.1 your service provider instead. Learn more at 550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336 f1si42544973wfp.91 in F:\test\xampp\htdocs\sendmail.php on line 43
Thanks in advance...
- 01-31-2011 #9Just Joined!
- Join Date
- Mar 2009
- Location
- Norway
- Posts
- 52
You need to *read* the error

Your ISP does not allow you to send emails directly from your machine - something a lot of ISPs do to battle the ever increasing amount of spam.
Go to 'The IP you're using to send email is not authorized...' - Gmail Help and see what the ISP says
- 02-02-2011 #10Linux User
- Join Date
- Aug 2008
- Location
- Trichy,India
- Posts
- 308
Ok fine. I can understand. Now what to do for ths? Now i want to check my code whether it is working correct or not? Can anyone suggest me?
Thanks in advance...


Reply With Quote
