English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm using a remote web server for my website. How do I change the web server's SMTP variable in php.ini so that I can use other SMTP server to send e-mails.

Or can I create an "external" php.ini in my root directory? (Just like config.inc in phpMyAdmin)

2006-11-24 16:28:24 · 3 answers · asked by syuf_fyq 1 in Computers & Internet Programming & Design

3 answers

What are you trying to accomplish? The SMTP variable in php.ini is used only on Windows (and, since your server is probably running Linux or FreeBSD, changing it is not going to make any difference). On Unix, PHP does not use SMTP; it communicates to the local mail transfer agent (MTA) directly.

If you want to send mail via SMTP from a Unix-based installation, you need to use a third-party library that uses SMTP. Take a look at phpMailer:

http://phpmailer.sf.net/

__________

2006-11-27 04:43:48 · answer #1 · answered by NC 7 · 0 0

that's surely extremely straight forward. If there became no host, and easily 2 doors left, of direction, the hot odds will be 50/50 (like in a coin toss, the previous turn has 0 result on the subsequent turn- inspite of the actuality that if it got here up heads 20 circumstances, the percentages are nevertheless 50/50). i do not care about 33% and 66% and what number doors there have been. If at any element in time, there are purely 2 doors left and also you %. a million, your odds all day lengthy are 50/50 IF THERE are not the different VARIABLES. in this certain case, there is one further and particularly substantial variable at play- THE HOST. Predicated upon the concept the host knows precisely the position the vehicle is, there's a statistically substantial danger that it will be contained in the hosts perfect interest to have the participant change. understanding that the participant has the triumphing hand, the host is therefor stimulated to have him substitute doors (substitute his "unique determination.") If his "unique determination" became incorrect, hostile to this, it will be contained in the hosts pastimes to allow him to save his unique determination of doors. hence, he purely can provide him a decision that statistical analyze has shown, the participant is in all probability to settle for and will advance the percentages of the host. playing is amazingly a lot a technology and contained in the longer time period, the abode quite somewhat continually wins. that's like in a coin toss, if the different human being chooses heads and also you height and note that's heads, you would say, "are you sensible?" that's truly no longer rocket technology yet an exciting theory to imagine about on a moist day. it is also a impressive thanks to make sure the movie because it supplies you comparison and irony to the plot yet I digress- getting somewhat off topic!

2016-11-29 10:50:11 · answer #2 · answered by Anonymous · 0 0

Instead of modifying the SMTP settings in the php.ini file, you can use

ini_set("smtp" , "servername");

in your code before using the mail() function.

2006-11-24 16:39:12 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers