Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Mail Server Authentication


There seems to be a lot of white noise in trying to understand SMTP
that requires authentication when searching the newsgroups via Google
Groups or searching the PHP.net website. The PHP fsockopen API's notes
on php.net provide the routine to connect, unauthenticated, to send
messages. But if you need authentication, people want you to download
their class or check the PEAR. Some websites even want your email
address or some registration process to check out the file, but I
don't play that game. Anyway, these methods will work, but here's the
short of it...

After the HELO initial acknowledgement, do the following. (Translate
the pseudocode to PHP.)

1. Send "AUTH LOGIN
"
2. Did you get message 334 back? If not, then server doesn't support
authentication. Break.
3. Send base64_encode($user)

4. Did you get message 334 back? If not, then server doesn't support
that username. Break.
5. Send base64_encode($pass)

6. Did you get 235 back? If not, then server doesn't support that
password. Break.
7. Proceed now with MAIL FROM, RCPT TO, DATA, etc.




View Complete Forum Thread with Replies

Related Forum Messages:
SMTP Server Response: 503 This Mail Server Requires Authentication
I get this any time I try to send an email to someone that IS NOT in the domain of the company:

Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in corpevent.php on line 21

I have it setup like this (I removed the email address domain...but its correct in the code):

// INI Settings //
ini_set(sendmail_from,"info@domain.com");
ini_set(SMTP,"mail.domain.com");
ini_set(smtp_port,"25");

$headersĀ  = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: info@domain.com";

$to = $_POST['txtEmail'];
mail($to,"Your Email",$theEmail,$headers);

Why am I not allowed to send an email to anyone that doesn't have a "domain.com" at the end of the email?

View Replies !
Use Mail() When The SMTP Server Needs Authentication?
Is it possible to use mail() when the SMTP server needs authentication?

View Replies !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

View Replies !
Authentication By The Server
I am attempting to discover the remote user for an INTRAnet site, but cannot
see how to do this cleanly. It seems so simple, too... (IIS is NOT being
used)

ALL I need is the user ID that logged in; when they log into their
workstation, that is good enough for this intranet set, and I am willing to
believe who they say they are. I would like them to be automatically logged
into the site using their ID (this part is simple, assuming, of course, I
actually had the ID). For this application, I do not need to know, nor even
care about, their password.

But the problem comes when I try to GET the remote user ID. I realize that
in theory I can use something an Apache module (like mod_auth_sspi), but
these authenticate against the web server, which in this case is in the DMZ
and ignorant of all other users. Simply getting the user name with PHP
returns the user name that PHP is running as, which is exactly what I do not
want.

I saw a brilliant hack that dug the user name out of NetBios in PHP, but
naturally, NetBios is turned off.

There seems to be ways to do this with .htaccess, but the users are stored
in Active Directory. The goal here is that once the user is added to the AD,
then they should have access to the intranet. I can actually handle the
security settings from within the intranet via LDAP. That works like a
champ. But it works because at that point I know the User ID. I want to
figure out what the user ID is in the first place. So, using .htaccess is
not really an acceptable solution.

One suggestion made was to start IE with a .bat file that passes the user
name as a parameter (i.e.; iexporer
http://mysite.mydomain.com/login.php?login=%LOGINNAME% but this makes the
user use a certain browser and click a certain link/icon.) I would like the
server to be able to cope with this all by itself.

It seems that no matter what direction I go, the door is closed. What is
really frustrating is that it IIS does this out of the box! Switching to IIS
is not an option.

View Replies !
SMTP Authentication & Mail()
Being able to send emails through PHP is a fundamental part of the site, so I've been searching around and trying to come up with some code to authenticate with the SMTP server to send the email.

What I have at the moment is code found on the Internet to perform this task using the PEAR module. I assume this module is installed as the php.ini 'include_path' setting is c:php4pear. Code:

View Replies !
Mail() And SMTP Authentication
It would seem BT Internet have just turned on SMTP mail authentication although they have been talking about it for years as I now get the following error message using the mail function on my local machine which worked fine a couple of weeks ago.

Warning: mail() [function.mail]: SMTP server response: 530 authentication required - Your email could not be sent. To fix this you must make a simple change to your email (known as SMTP authentication). For advice visit www.btyahoo.com/smtp or call 0800 328 9968

Needless to say "Advice" relates to Outlook Express and little else, certainly not PHP.
Anyone know the changes I need to make and where, parameters for the mail() function or in the php.ini file perhaps. Naturally I know the information relating to mail username and password.

View Replies !
Authentication ==> 500 Internal Server Error
I'm using PHP Authentication with:
if(!($PHP_AUTH_USER)):
...
This works fine on my hosted server but not on my local development machine. When this bit of code executes, I get the above error.

My local machine has the following config:
NT4 SP4
PHP Version 4.0RC1
Apache/1.3.11

Any suggestions as to how I get it to work locally?

Thanks
Mark

View Replies !
Http Authentication On A Linux Web Server
I've been running the following authentication in php on a linux web server. I'm trying to move it to a web server on a Windows machine running Omnihttpd. It isn't working. Any ideas?

<?php

if(!isset($PHP_AUTH_USER))
{
Header("WWW-Authenticate: Basic realm="Hardware Review"");
Header("HTTP/1.0 401 Unauthorized");
echo "You are not authorized to view this pagen";
exit;
}
else
{
if ($PHP_AUTH_USER!="hardware"| |$PHP_AUTH_PW!="Speed0")
{
Header("HTTP/1.0 401 Unauthorized");
echo "You are not authorized to view this pagen";
exit;
}
}
?>

View Replies !
PHP User Authentication - Server Issue
I'm having problems getting this script or any variation of this sort of script to work on the server my site is hosted on. Is this a global variables problem? Is there a way around it?

View Replies !
Create Session After Authentication On Other Server
I've posted my problem in an earlier thread and didn't get any luck. In this post I'm trying to make my question more clear:

- I've wrote a php script that composes http get header, this script gets a file and does basic authentication (see below)

- The server that recieves the request (this case: www.example.com) succesfully authenticates gives the script the page requested.

What I would like to happen:

- The page requested should initiate a session between the server and the client. Setting session_start(); in the page requested doesn't do the trick

Code:

View Replies !
Email: SMTP Authentication - PHP Warning: Mail()
I am running Apache/PHP on Windows 2000. How do we set up authentication for outgoing mail, since my yahoo server requires that? My current settings in php.ini are the following:

SMTP=smtp.mail.yahoo.com
smtp_port=25
sendmail_from=me@myemail.com
;sendmail_path=
Call the mail() function:
mail("the@ddress.com", "Test", "Message");

And finally, the error message output when it fails:

[02-Mar-2003 12:01:31] PHP Warning: mail() [http://www.php.net/function.mail]: SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in c:apachehtdocsmail.php on line 11

View Replies !
PHP Authentication Leads To Cannot Find Server Error
Whenever I try to run any script that has the command:

View Replies !
Mail()Relaying Denied. Proper Authentication Required
when sending an email from the mail() function I get this message:
mail(): SMTP server response: 550 5.7.1 <test@test.com>... Relaying denied.
Proper authentication required

I did set the php.ini values like this:
SMTP = mail.myserver.com ; for Win32 only
smtp_port = 25
sendmail_from= webmaster@myserver.com; for Win32 only

I am coding on a "localhost" machine and I believed that connecting to a
mail server like it's done above would work. what's wrong ? How to set
authentication for letting my server accept my mail ?

View Replies !
Sending Mail Using Smtp Authentication To Send Emails
I need some one to help me with sending mail using smtp authentication to send emails in this script. i got this far but i do not know how to setup this to sending mail using smtp authentication to send emails. Or how do i edit this so the top script work together.

View Replies !
Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get:

Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7


<?php
ini_set("SMTP","rlwatkins.com");
ini_set("sendmail_from","hunter@rlwatkins.com");
mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com");
?>

what is wrong with this, how do i set it so that i can send to something other than localhost?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows :

mail("User <user@example.com>",$subject, "", $headers);

I get this error :

Warning: mail() [function.mail]: SMTP server response: 501 Syntax error,
parameters in command "RCPT TO:<User <user@example.com>>" unrecognized
or missing in

It seems to add it's own <> characters. If I run the same script under Linux it works fine !?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

View Replies !
Client Does Not Support Authentication Protocol Requested By Server
I've installed php 4x on IIS. I try to open the database I get the following message:

Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in c:ProjectsManagementSystemMenu.php on line 6
Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client.

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it :

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2

what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

then in my php script:
<?php
mail("joecool@hotmail.com", "Testing", "Line 1
Line 2
Line 3", "From: tom@hotmail.com") or die("email error");
?>

i have also run mercury mail but i keep getting this error:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2

on all tutorials that i went, the mail function is written this way what is wrong?

View Replies !
#1251 - Client Does Not Support Authentication Protocol Requested By Server; Consider
I am getting an error. I am using

apache_2.0.59-win32-x86-no_ssl
php-4.4.4-Win32.zip
mysql-essential-5.0.27-win32.msi
I get this error

#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client The error is in phpmyadmin, it shows up after login

View Replies !
#1251 - Client Does Not Support Authentication Protocol Requested By Server
I,ve setup my WAMP environment on Windows XP by installing: apache 2.049. PHP 5. MySQL 4.1.14 I,ve configured apache & PHP successfully but whenever I try to connect MySQL through PHP script following error appears:

"#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client"

View Replies !
E-mail From Linux Server But Not Windows Server
The following one-liner sends mail from a Linux server but not from their Windows server.

mail ("admin@mydomain.com", "Subject", "body");

What do I need to check / change, please?

View Replies !
Get Mail From Mail Server And Process It
i have created a table in my database. the table consist of columns named clientName, problem and problemDesc.

When a client email a message to my mail server(hanwei@test.com), the script will grep the mail from my mail server and process it.

I want the informations in From:, Header: and Message: to be automatically inserted into the table that i have created. Code:

View Replies !
Mail Server - Use My Page Login For The Mail Login User Is Stored In $_SESSION
I have a problem and no time to google it and i hope someone will guide me. I have a linux server (slack10) php/mysql and a website where you can create accounts and login.

i need to install a mail server with a web interface, i need to have a script that creates automaticly an email account when my page creates an account and a way to use my page login for the mail login user is stored in $_SESSION and the mail will be shown in iframe any sugestions?

View Replies !
Mail From Mail Server
I have created mail server script in php. i try to access my mail from my website cpanel i am getting only newly received messages, but my requirement is to access all the messages both old and newly received messages.

View Replies !
How To Use PHP To POP A Mail Server
I have this email address where I get some email coming from a form on a website to which I do not have control. Is it possible to use PHP to pop my mail server for the emails?
I would like to be able to drop the email data into a database.


View Replies !
Get A Mail Server
i want a mail server where i don't need to have  dns.

View Replies !
Mail Server
Is it possible to use my ISP's mail server to send outgoing email through PHP or do I need an actual mail server installed on the system? I use my home PC for PHP development but I don't have a mail server installed on the machine itself as I just use my ISP's incoming/outgoing mail servers for e-mail.

View Replies !
Set Up PHP To Use Separate Mail Server
I've gotten myself compeltely stumped here. I'm running RedHat/Apache on some remote servers, and I've been pulling what little hair I have left out of my head because I can't get the web servers to send mail, using PHP, to the email server specifically configured for such a purpose. I have the email server IP, and name (for example, mail.mydomain.com), and I've tried configuring both web servers' php.ini file, to no avail. Can anyone assist me in this? Using the web servers as mail servers is not an option; the email *must* go through the email server.

View Replies !
Setting Up Mail Server
I am setting up a webpage which needs scripts to access Merak Mail server. i need these scripts to create and delete accounts and domains in the mail server. I know the commands to do what i want, thing is i don't know how to implement these commands in php.

basicaly when a user comes to my site, i want them to fill in any email address, and there pop mail settings. and whatever they enter in i want that information to be created in merak. what i need to know is how can i do this with php.

----creates a user in Merak Mail server-----
Lets add a new user with the name John Doe, alias john, mailbox john and password secret into the domain icewarp.com. You do not need to specify the domain name if it is a primary domain.


users -a -ujohn@icewarp.com -mjohn -psecret -n"John Doe"

-------------------------------------------------------
the above command creates the user... but how with php can i implement this.?
i have a basic understanding of programming and know this is a very simple script but i don't know where to start.

View Replies !
Connect To Mail Server
I got this script from a tutorial somewhere, its for conecting to a mail server and reading a list of the messages there. but for some reason it wont work. at all. the page just stays blank. (white). PHP Code:

View Replies !
How To Connect To A (mail) Server?
Can anyone tell me/show me how I can connect to a (mail) server?

View Replies !
Server Usage With Mail
If I am going to make a blast email function using mail, to select from a mysql database a chunk of around 3000 rows and then email them all, what kind of drain on the server is that? Is there a recommended way of doing this?

View Replies !
Simple Mail Server
I would like to set up a very simple but reliable/capable mail server on my Linux Web server or on an alternate server so I can run PHP e-mail scripts on certain web pages.
What is a good choice for a mail server that can perform this function? Preferably one that ships with Redhat 7 as I already have the CDs.

View Replies !
How To Create Mail Server
i am using php4 & mysql 3.22 with apache and linux. i can able to read the mails using the IMAP functions that is not prob. my question:how will i create a new mail account for my users.

View Replies !
Specify Server In Mail Function?
I am running a PHP script on my machine that's running mySQL. But this machine can't send mail. My script just uses the PHP mail function. I have to specify username, password, and server to be able to get into the mail server. Can the PHP mail function take those parameters somehow?

View Replies !
How Send SMS And MMS From Mail Server?
Does anyone know anything about sending SMS or MMS from my server (so, users could be texted that their order had been dispatched)?

I don't know where to start looking... do I need something particular installed or will it work with my normal mail server?

View Replies !
Using Different Server To Send Mail..
My mail server has been blocked by a couple free e-mail providers namely Hotmail because my boss sent out an e-mail from the server to 3,000+ e-mails. Now I'm coming up with a solution so that we can continue to send e-mail to our users and new users.

I've set up a new domain on a different server but I'm trying to figure out the best way to send mail from the new server. My site sends out e-mails during user registration and few other functions.

How should I send the info to the new server so that it will send out e-mails?

For example, the website is SOMEDOMAIN.com, our new server set up soley for sending mail is SOME-DOMAIN.com. I'm thinking of adding a record to the database on SOME-DOMAIN.com any time an e-mail needs to be sent. But then how do I remotely call the script to actually send the mail. I can pass some info through the URL but should I use cURL to access the script?

View Replies !
Php.ini External Mail Server
I have setup WAMP server on my computer and I want the server to use an external mail server (my webhosts).  My computer is running Vista and the mail server I want to use it running Linux.

I can't figure it out from the PHP docs.

View Replies !
Formmail As Mail Server
some applications require mail server to send out email . I do not have a mail server installed. is it possible to use the formmail that we have ?

View Replies !
Remote Mail Server
I am trying to send a mailout using a php script hosted on my server to connect to a seperate mail server. The server uses pop3 and is QuickMail Server 2. Can anyone explain what PHP script I use to connect to the mail server. I am currently using the mail() function but this is simply sending from my development machine.

View Replies !
Mail To External Server?
I'm wondering, is there a way to send php email to an external smtp server, and if so how??

View Replies !
Mail From A Microsoft Server
I am writing a script for a Win2000 server, it needs to be able to send email, but the server doesn't have an email server on it, is there a sendmail or qmail for windows? does anybody have any suggestions on how to make this work?

View Replies !
Mail To Local Server
I have a question, May be i am wrong but i have doubt, If some body explain it either i can or not. Can i sent email to my local pc server then i read it. Explanation: For example i have a form where i put email, click on send button ,page executes and send mail. But is it possible to send this mail to local server on my pc,I mean offline internet. Without internet connection. I have apache with php,mysql And Windows server 2003. Then a script or software through which i read that mail. I want this only to check my scripts without uploading it to the internet server.

View Replies !
Manage E-mail On Server
I'm looking for a way to use my web site as a web based E mail client (for myself only) to read/sed/manage email from my site, rather than having to use Outlook or some other E-mail client.

View Replies !
HTTP Authentication .vs. Session Authentication
I am designing a PHP application (yes, I have
investigated using existing applications). I cannot use HTTPS
for reasons I shall not disclose. I must authenticate users
against a database (MySQL) before granting them access. There
are two methods I am considering: HTTP authentication, and session
authentication. My webpage is spread across multiple scripts, and
the user must not have to repeatedly reauthenticate him/herself.
It does not matter, however, if the login session remains or is
destroyed when the browser closes, although destruction is
preferred.

To my knowledge, PHP only supports Basic HTTP authentication.
This would be easier, and if it matches session authentication in
security, I would prefer to use it. Session authentication would
be accomplished via a hashed password supplied in a form, sent via
POST, after which the userid or another identifying piece of data
would be stored in a session variable. My webserver does host other
websites, and I cannot adjust its configuration. It seems to me,
however, that Basic HTTP authentication sends the username and
password in plaintext at the opening of every page. Is this true?

View Replies !
Mail() And Exchange Server Questions
I am trying to send mail externally from my SMTP server(exchange 2000) using mail() function.

I have no problem if I send to a internal address (christopher.seidel@jerovsek.si), however if I try to sent to a external address (chrisseidel@hotmail.com) I recieve Warning: Server Error, do I need to authinicate to the exchange server who I am so I can send external e-mail, or is this a different problem?

View Replies !
How To Setup IMAP Mail Server?
I have run rpm -Uvh --force imap-devel-4.7-6k.i586.rpm and rpm -Uvh --force imap-4.7-6k.i586.rpm is this means that I have setup IMAP mail server? if so this server type is "Cyrus" or "UWash"?

View Replies !
Connect To Pop3 Mail Server
I have a piece of code that connects to a mail server running on the same machine. It all works fine but it just takes an age to connect to the mail server, like 30 seconds or so.
Looking at the log for the mail server, I noticed the following lines at the beginning of each request:

[Date / Time] CAPA
[Date / Time] -ERR Unknown Command
[Date / Time] AUTH
[Date / Time] -ERR Unknown Command

Could this be the reason that it takes so long to connect to the mail server? And if so is it possible to suppress certain commands sent to the server if they are not required?
The PHP code I use to connect is simply:

$mbox = imap_open ("{mailserver:110/pop3}INBOX", "username", "password");

And then imap_close($mbox); to clean up.

View Replies !
Setup IMAP Mail Server
How to setup IMAP mail server?

View Replies !
Get E-mails From A Pop3/mail Server
i want to make a webmail script but i don't know how to get e-mails from a pop3/mail server (with out deleting them).

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved