473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Error in sending mail using php

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 relaying denied in C:\wamp\www\mail.php on line 15
Call Stack
# Time Memory Function Location
1 0.0015 670096 {main}( ) ..\mail.php:0
2 0.0015 671040 mail ( ) ..\mail.php:15


Sir,Please tell why this kind of error is coming and how do i fix it?i was trying to send mail from my laptop.

IN php.ini file,

My SMTP is smtp.bsnl.co.in
Port is 25
sendmail from and sendmail path are empty
I am using Wamp 2.2 in my laptop.
Jan 17 '12 #1
1 1718
wampp is for development purposes...as a web developer wampp or xampp does not send mail to external servers they only relay mail to localhost and not to server on the internet.

If you want to send mail using a mail client i suggest you get Microsoft outlook or Eudora
Jan 18 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: vishal | last post by:
i am getting following error. Warning: mail() : Failed to connect to mailserver at "smtp.gmail.com" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in...
1
by: murph | last post by:
Hi , I have created a little script that is running as daemon ( it is hard to say as daemon :)) ) . Then i try to send a mail and the mail is refused from sendmail. I have no idea why it...
1
by: Hari | last post by:
Hi all! I am trying to send mail using outlook in my web application. i am using Outlook Express. Actually i am saving it in DRAFTS folder instead of sending it. My system are in network. I hard...
3
by: at | last post by:
Hi, I need to test a mail function through my IPS, who doesn't allow sending mail without a password. Where do I specify this password? In php.ini I can specify SMTP and sender, but apparently...
5
by: Richard Kure | last post by:
I encountered a problem sending an email on my windows XP, which I thought was a bit weird, cause it worked for me before on windows XP. So I tried on some other computers with windows XP, and...
2
by: ינון אזרד | last post by:
Hi. I tring to send a email. I wrote the following lines: (Imports System.Net.Mail) Dim MailMsg As New MailMessage Dim WithEvents MailSmtp As New SmtpClient MailSmtp.Host = gmail.smtp.com...
0
debasisdas
by: debasisdas | last post by:
The follwing sample code uses predefined package UTL_SMTP to send mail. This package was first available in the version 8.1.7 . create or replace procedure sendmail(sender varchar2,recipient...
3
by: raj200809 | last post by:
when i m sending mail i received error from symantec Antivirus" Your email message was unable to be sent because your mail server rejected the message 550-5.7.1 the ip youre using to send mail is...
1
by: dilip1076 | last post by:
I developed an application to send mail using smtpClient. my mail server is mail.brm.edu.in. I am passing this as "smtp.mail.brm.edu.in" but i'm unable to send. It shows failure sending mail. plz...
0
by: m103069 | last post by:
Dear Friend, I am developing an application where i am using System.Net.Mail Namespace. its working fine if mail sending through hosting server but i am not able to send mail using lotus note...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.