Go Back   Web Server Hosting Forum by BODHost > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-15-07, 07:56
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default Mail Configuration Options in PHP

Name - SMTP
Default - "localhost"
Descruption - Windows OS - DNS/IP of SMTP Server
Changeable - PHP_INI_ALL

Name - smtp_port
Default - "25"
Description - Windows OS - SMTP Port No.
Changeable - PHP_INI_ALL

Name - sendmail_from
Default - NULL
Description - Windows OS - From Address to be mentioned
Changeable - PHP_INI_ALL

Name - sendmail_path
Default - NULL
Description - Unix OS - Location of sendmail program
Changeable - PHP_INI_SYSTEM
Reply With Quote
  #2 (permalink)  
Old 06-15-07, 08:12
BOD Member
 
Join Date: May 2007
Posts: 81
Default jazz

Do this Configuration can be used with Linux OS.
Reply With Quote
  #3 (permalink)  
Old 06-15-07, 08:28
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Question christina

can you show me what is PHP Accelerator and how it functions.
Reply With Quote
  #4 (permalink)  
Old 06-15-07, 08:49
BOD Member
 
Join Date: Nov 2005
Posts: 131
Thumbs up Hi

I think he is right because,
For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary.
Reply With Quote
  #5 (permalink)  
Old 06-15-07, 08:59
Moderator
 
Join Date: Oct 2005
Posts: 346
Post Here's a short explanation of the configuration directives.

SMTP string

Used under Windows only: host name or IP address of the SMTP server PHP should use for mail sent with the mail() function.
smtp_port int

Used under Windows only: Number of the port to connect to the server specified with the SMTP setting when sending mail with mail(); defaults to 25. Only available since PHP 4.3.0.
sendmail_from string

Which "From:" mail address should be used in mail sent from PHP under Windows. This directive also sets the "Return-Path:" header.
sendmail_path string

Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail. configure does an honest attempt of locating this one for you and set a default, but if it fails, you can set it here.

Systems not using sendmail should set this directive to the sendmail wrapper/replacement their mail system offers, if any. For example, » Qmail users can normally set it to /var/qmail/bin/sendmail or /var/qmail/bin/qmail-inject.

qmail-inject does not require any option to process mail correctly.

This directive works also under Windows. If set, smtp, smtp_port and sendmail_from are ignored and the specified command is executed.
Reply With Quote
  #6 (permalink)  
Old 06-15-07, 09:29
BOD Member
 
Join Date: Mar 2006
Location: Scotland
Posts: 201
Thumbs up Thanks!

I really appreciate your posting,
because this configuration helps me a lot.keep on posting like this informations.
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.