homepage Welcome to WebmasterWorld Guest from 54.204.127.191
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Configure PHP for send mail
comdini




msg:4266887
 4:50 pm on Feb 14, 2011 (gmt 0)

My Website is created using with PHP. I've a requirement for generate mail through web. because which file should I edit with SMTP Details.

Regards,
COMDINI

 

rocknbil




msg:4266900
 5:02 pm on Feb 14, 2011 (gmt 0)

Why can't you use the mail()function [us3.php.net]?

comdini




msg:4275402
 5:57 pm on Mar 2, 2011 (gmt 0)

I tried . but it comes a Error that "message sending faild..SMTP Error: Could not authenticate"

but in this Web Server SMTP Server is working perfectly. I tested on IIS & Telnet. On PHP have configure only one Website.

Our Emails running on MS Exchange 2007 Environment. I've provided the SMTP Server & User Authinications also. But it doesn't work.

Please tell me that which files should I edit for Mail configuration.


Regards,
COMDINI

timster




msg:4276404
 3:56 am on Mar 4, 2011 (gmt 0)

How did you provide SMTP user authentication? If you provide a code sample we might spot the problem.

Please tell me that which files should I edit for Mail configuration.

You can check your php.ini file for sendmail configuration. Add appropriate values for auth_username and auth_password.

Probably easier than that is just to use "Mail - PEAR" instead of PHP's builtin mail function. That makes it easier to provide SMTP authentication.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved