473,387 Members | 1,492 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,387 software developers and data experts.

SMTP error

hi,
When i try to send email from local host. i changed my SMTP=localhost to my SMTP mail server name in php.ini file.i got an error like this:

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 relaying denied in C:\wamp\www\gang\core\class_mailer.php on line 189

please suggest a good solution to recover this error.
the class_mailer php script is attached along with this.
Dec 21 '11 #1
1 1609
Hi to use mail functionality from php need to configure smtp details in php. if you dont have access in the server configuration use phpmailer class. where you need to declare smtp details..check the below link for more information http://www.phpclasses.org/package/26...s-for-PHP.html
Dec 26 '11 #2

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

Similar topics

0
by: Robbie | last post by:
Hi, I have a strange error occuring - I don't think its a code issue - but maybe someone here has run into this before. I have some code to send an Email using the System.Web.Mail message...
2
by: Latha Rajeev | last post by:
Hi, I have an application which sends out mails(using CDO), the SMTP Server being a machine which is one the same network. Most times, the mails are sent out successfully but every once in a...
3
by: Charlie | last post by:
Hi: Using the sMTP class and my ISP as smtp server, I sometimes get the following message: "The message could not be sent to the SMTP server. The transport error code was 0x800ccc60. The...
5
by: JPS | last post by:
I seem to have everything setup correctly but when I send a messge I get this. The problem is: Could not access 'CDO.Message' object.
2
by: sivaswamimail | last post by:
Hi I was using CDOSYS to send email. But the smtp error was showing a relay error how to find the same error from asp ? Please reply
1
by: Hennie7863 | last post by:
Hi all, At this moment I'm trying to get database mail working. According to some people it should be easy. Well...that is not the case for me. I'm having the following error: The mail could...
6
by: sx216 | last post by:
hi i have the error when using phpmailer to send mail.. "error in sending mail: SMTP Error: The following recipients failed: me@domain.com" if anybody knows the solution..please help...
0
by: Homer | last post by:
Hi, I got "InnerException: Unable to connect to remote server"..."No connection could be made because the target machine actively refused it" when I attempted to send an email through my...
6
by: Dave Kelly | last post by:
Sorry for the long post, it is easier to discard information than to have to wait for it to arrive. So here goes: This code worked perfectly when I was an Earthlink customer. Sprint decided...
4
by: Brian | last post by:
Hello all, we don't actually host our own server but still should work the same. Here is the error message i get "error mailbox unavailable. The server response was: must be authenticated code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.