Mail Authentication

This is a discussion on Mail Authentication within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Is there a way to post authentication settings with the mail() function for sending emails out through a server that ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2004
bvh
 
Posts: n/a
Default Mail Authentication

Is there a way to post authentication settings with the mail()
function for sending emails out through a server that requires login?
Reply With Quote
  #2 (permalink)  
Old 10-23-2004
Manuel Lemos
 
Posts: n/a
Default Re: Mail Authentication

Hello,

On 10/22/2004 07:13 PM, bvh wrote:
> Is there a way to post authentication settings with the mail()
> function for sending emails out through a server that requires login?


No, the mail() function does not support setting the authentication.

You mayu want to use this class that comes with a wrapper function named
smtp_mail() that works exactly like the mail() function but lets you set
the SMTP authentication credentials, so you can solve your problem with
minimal changes in your scripts (just change mail() calls to smtp_mail() ).

http://www.phpclasses.org/mimemessage

You also need these other classes for the actual SMTP delivery and to
perform SMTP 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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:08 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0