Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

SMTP server response: 530 authentication required
The full error is as follows:

Warning: mail(): SMTP server response: 530 authentication required - for
help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in c:\program
files\apache group\apache\htdocs\send_simpleform.php on line 10

I receive the error above when I attempt to send mail via a PHP script.
From what I have read the PHP mail() function does not support Authenticated
SMTP, just uses SMTP on the localhost, or that configured in the PHP.ini
file.

What I was reading suggested to use the PEAR functions. Hm... after looking
that the functions PEAR provides PEAR may not work on a WIN machine. OR
maybe I don't understand what I have read. Yep I am learning PHP.

How do I get around this situation?



Report this thread to moderator Post Follow-up to this message
Old Post
Terabyte
10-18-04 01:55 AM


Re: SMTP server response: 530 authentication required
Hello,

On 10/17/2004 06:13 PM, Terabyte wrote:
> The full error is as follows:
>
> Warning: mail(): SMTP server response: 530 authentication required - for
> help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in c:\progra
m
> files\apache group\apache\htdocs\send_simpleform.php on line 10
>
> I receive the error above when I attempt to send mail via a PHP script.
> From what I have read the PHP mail() function does not support Authenticat
ed
> SMTP, just uses SMTP on the localhost, or that configured in the PHP.ini
> file.
>
> What I was reading suggested to use the PEAR functions. Hm... after lookin
g
> that the functions PEAR provides PEAR may not work on a WIN machine. OR
> maybe I don't understand what I have read. Yep I am learning PHP.
>
> How do I get around this situation?

You may want to try this class that comes with a wrapper function named
smtp_mail(). It emulates the mail() function, except that it makes your
message be routed to a SMTP server of choice authenticating if necessary
like in your case:

http://www.phpclasses.org/mimemessage

You also need these auxiliary classes to make the actual SMTP delivery
and authentication:

http://www.phpclasses.org/smtpclass

http://www.phpclasses.org/sasl




--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

Report this thread to moderator Post Follow-up to this message
Old Post
Manuel Lemos
10-18-04 01:55 AM


Re: SMTP server response: 530 authentication required
"Manuel Lemos" <mlemos@acm.org> wrote in message
news:4172EA00.2030200@acm.org...
> Hello,
>
> You may want to try this class that comes with a wrapper function named
> smtp_mail(). It emulates the mail() function, except that it makes your
> message be routed to a SMTP server of choice authenticating if necessary
>   like in your case:
>
> http://www.phpclasses.org/mimemessage
>
> You also need these auxiliary classes to make the actual SMTP delivery
> and authentication:
>
> http://www.phpclasses.org/smtpclass
>
> http://www.phpclasses.org/sasl

> Regards,
> Manuel Lemos

Oh my god! I went to http://www.phpclasses.org/mimemessage . Never in a
million years would I expect to hear from you!
There are several classes that are available on those pages. I am not sure
which one I should download. Which ones should I download?

I am new to PHP so I find all this to be overwhelming. I am using Windows
2000 Pro SP3. I have successfully installed MYSql, apache & PHP on my
laptop. To learn PHP I am using a book written by Julie Meloni - PHP
fast&easy web development.

Thanks Manuel!



Report this thread to moderator Post Follow-up to this message
Old Post
Terabyte
10-18-04 08:56 AM


Re: SMTP server response: 530 authentication required
Hello,

On 10/17/2004 11:54 PM, Terabyte wrote: 
>
>
> Oh my god! I went to http://www.phpclasses.org/mimemessage . Never in a
> million years would I expect to hear from you!
> There are several classes that are available on those pages. I am not sure
> which one I should download. Which ones should I download?

It is probably easier to download everything in .zip archives using the
download button and unpack all in a single directory. Anyway, you do not
need everything.

From mimemessage:

email_message.php
smtp_message.php
smtp_mail.php
test_smtp_mail.php (this one is just for testing).

From smtpclass:

smtp.php

From sasl:

sasl.php
cram_md5_sasl_client.php
login_sasl_client.php
plain_sasl_client.php (One of these last 3 will do but it depends on
your SMTP server)


> I am new to PHP so I find all this to be overwhelming. I am using Windows

Indeed. If this was simple, PHP would probably have built-in SMTP
authentication support. But your problem is quite common among Windows
users in particular.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

Report this thread to moderator Post Follow-up to this message
Old Post
Manuel Lemos
10-18-04 08:56 AM


Re: SMTP server response: 530 authentication required
"Manuel Lemos" <mlemos@acm.org> wrote in message
news:2tgqftF1t861qU1@uni-berlin.de...
> It is probably easier to download everything in .zip archives using the
> download button and unpack all in a single directory. Anyway, you do not
> need everything.
>
>  From mimemessage:
> email_message.php
> smtp_message.php
> smtp_mail.php
> test_smtp_mail.php (this one is just for testing).
>
>  From smtpclass:
> smtp.php
>
>  From sasl:
> sasl.php
> cram_md5_sasl_client.php
> login_sasl_client.php
> plain_sasl_client.php (One of these last 3 will do but it depends on
> your SMTP server)
> Regards,
> Manuel Lemos

Thank you Manuel for the download outline!
1) I assume that these files are placed in the c:/program files/Apache
Group/apache/htdocs, that is were my PHP scripts are located.
2) I assume that one of the mimemessage files is used to call smtp.php. If
so which one?
3) From sasl -> One of the last three will work with my SMTP server. Do I
choose which one via sasl.php?
3) I noticed that I will need to feel in/customize the PHP file(s) at the
top correct?

I am sorry about all of the questions. As I said earlier I am new to all of
this... I guess I have jumped in head first :)

Thanks Manuel for all of your help!



Report this thread to moderator Post Follow-up to this message
Old Post
Terabyte
10-18-04 08:57 PM


Re: SMTP server response: 530 authentication required
Hello,

On 10/18/2004 01:20 PM, Terabyte wrote: 
>
>
> Thank you Manuel for the download outline!
> 1) I assume that these files are placed in the c:/program files/Apache
> Group/apache/htdocs, that is were my PHP scripts are located.

They should be in your include path, not necessarily in that location.
You may also add a full or relative path prefix in the require/include
statement so you can include them from a different path . It is not wise
to make included files available in a directory accessible via the Web
as it make grant undesired access to anonymous users.


> 2) I assume that one of the mimemessage files is used to call smtp.php. If
> so which one?

The smtp_message.php file contains a class that uses it for performing
the actual SMTP delivery.


> 3) From sasl -> One of the last three will work with my SMTP server. Do I
> choose which one via sasl.php?

No, that is part of the protocolo negotiation with the SMTP server. The
sasl_client_class will include the class file that implements the
authentication mechanism that is supported by your SMTP server.


> 3) I noticed that I will need to feel in/customize the PHP file(s) at the
> top correct?

Just smtp_mail.php to specify the authentication credentials.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

Report this thread to moderator Post Follow-up to this message
Old Post
Manuel Lemos
10-18-04 08:57 PM


Re: SMTP server response: 530 authentication required
Muito obrigado Manuel! Os manuscritos trabalham!



Report this thread to moderator Post Follow-up to this message
Old Post
Terabyte
10-19-04 01:55 AM


RE: SMTP server response: 530 authentication required
On Oct 17, 2004 04:13pm, TERABYTE@ROGERS.COM wrote to ALL:

> The full error is as follows:

> Warning: mail(): SMTP server response: 530 authentication
required - for
> help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in
> c:\program files\apache group\apache\htdocs\send_simpleform.php
on line 10
Your ISP doesn't provide you with a SMTP server and e-mail
account?  Good Grief, what are you using, MSN?  If your ISP is too
lame to provide you with a SMTP server, then run your own... It'd be
the next best thing....

... Platinum Xpress & Wildcat!..... Nice!!!!

Report this thread to moderator Post Follow-up to this message
Old Post
John Guillory
10-23-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:54 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.