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

SMTP server response: 553 This SMTP server requires authorisation

274 100+
I am trying to setup contactus page. and testing it to work throug localhostI. I ahve setup everything php.ini and even tred to use following to make sure that everything is ok:

Expand|Select|Wrap|Line Numbers
  1. ini_set("SMTP","mail.name.com"); // thats how I setup my outlook 
  2. ini_set("smtp_port","25");
  3. ini_set("sendmail_from","address@hotmail.com"); 
  4. ini_set("auth", true);
  5.  
  6. if(mail($admin_email,$email_subject,$message,"From:$check_email,Reply-to:$check_email")) {
  7. header("Location: contactUs.php?status=1");
  8. exit;
  9. } else {
  10. header("Location: contactUs.php?status=0");
  11. }
I get follwoing error:
Expand|Select|Wrap|Line Numbers
  1. Warning: mail() [function.mail]: SMTP server response: 553 This SMTP server requires authorisation. Most mail clients can be configured with "my server requires authorisation" to allow this in C:\xampp\htdocs\idols\contactUS\send_email.php on line 56 
and line whee I am asked to do that is :
Expand|Select|Wrap|Line Numbers
  1. if(mail($admin_email,$email_subject,$message,"From:$check_email,Reply-to:$check_email")) {
now I need to know what I should do specify that server needs to be authenticated and where? any help?
Jul 29 '08 #1
1 5457
ak1dnar
1,584 Expert 1GB
By adding this line, you have initialized the SMTP authorization to true state.
[PHP]ini_set("auth", true);[/PHP]

Are you sure about that your SMTP server requires authentication with a username/password? Most of the SMTP servers are open and no need of authorization. Check with your ISP first or simply check the settings on your outlook. you can find similar settings there also. if your smtp server doesn't require autentication just remove that line from your script and execute it.

But as per the error message, its asking about the username and password for the SMTP server.
Jul 30 '08 #2

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

Similar topics

18
by: John Dalberg | last post by:
Hello I have a login form on a page that should post the data to a non Windows server and upon successful authentication, the browser needs to show the secodn url. I did the form post, got...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
1
by: Rodrigo | last post by:
I'm trying to send an email message using my SMTP server that requires authentication. How can I do that? My code is: Dim email As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage...
11
by: JD | last post by:
Is it possible using the smtp class in asp.net to send emails and authenticate to the mail server that is sending the emails out. Currently I have a web application that works fine on my machine,...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
1
by: Jeff | last post by:
I am receiving the following error: // error: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 No...
4
by: eruth | last post by:
Hi all, I'm trying to send an e-mail from a vb.net web form. I can create the message, but when it comes to actually sending it I get the following error. "Mailbox name not allowed. The server...
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...
6
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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...
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.