How To Configure External Mail Server On Linux In PHP.ini
Is there anyway I can configure PHP email to use external mail server on Linux? I know you can do it on Windows.
I did an experience. I updated php.ini showed below. However I could not receive email.
myServerAddress does have SMTP mail server running. Any comments?
[mail function]
; For Win32 only.
; SMTP = localhost
SMTP = myServerAddress
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i
View Complete Forum Thread with Replies
Related Forum Messages:
Php.ini External Mail Server
I have setup WAMP server on my computer and I want the server to use an external mail server (my webhosts). My computer is running Vista and the mail server I want to use it running Linux. I can't figure it out from the PHP docs.
View Replies !
Mail() On Linux To Use Other Smtp Server
I have written a php site that uses the mail() on windows and i had to state in the php.ini file which smtp server to use. have now migrated this site to a redhat 9 server, but i still want the emails to be sent via the smtp server i stated earlier. this may infact be a sendmail question, im not sure, (perhaps changing sendmail_path in php.ini) but has anyone managed to send email via mail() in php, on a linux box, that uses an external smtp server?
View Replies !
Anyone Know How To Configure Php5 On Debian Linux?
Have loaded Debian linux, and Php5. 1. Don't know how you start and stop the server apachectl and httpd.apache don't seem to be present. 2. Added the elements to httpd.conf that I thought would need to go in there, as I would if I was doing a windows application, and that seemed to complete mess apache up.
View Replies !
Configure Php.ini For MAIL Function
Can you plz help me in configuring PHP.INI file to send mail by php's mail function? I get the following error message: PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:Inetpubwwwroot\_debug_tmp.php on line 9 I am running this code on server and i don't know how to configure SMTP server. This is my PHP.INI file. [mail function] ; For Win32 only. SMTP = 127.0.0.1 smtp_port = 25
View Replies !
Configure Server Date To GMT +8.
how can i configure my server date to GMT +8. from my windows desktop i installed apache, php and mysql. i have configured my desktop to my current timezone which is GMT +8 beijing. but once i print the value of date("Ymh - His"); on my PHP it shows the date that is 8 hour behind my current time. do you know where can i configure it? by the way im using XAMMP as my webserver.
View Replies !
Configure Mail Client To Work With Php.ini File?
I am trying to send email via php. I using window XP home edition. My mail client is outlook express. I configured mail client to send email via my aol email account. mail server information: mail account: imap.aol.com server information: incoming mail: imap.aol.com / port: 143 outgoing mail: smtp.aol.com / port: 587 I changed php.ini file in order to match my email client setting //original setting ;SMTP = localhost ;smtp_port = 25 //new setting SMTP = smtp.aol.com smtp_port = 587 No matter which setting I use, I always got this error message when I test my php file I got following error "Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:Program FilesApache GroupApache2htdocsexerchapter5phpemail.php on line 28" I test my connection to localhost port25 by issuing following command in dos prompt: telnet localhost 25 I got error message: Connecting To localhost...Could not open connection to the host, on port 25: Connect failed <?php $from = "mike <name@aol.com>"; $to = "name@yahoo.com"; $subject = "Agenda for tomorrow's metting"; $message ="In tomorrow's meeting, we will discuss our new marketing campaign and third-quarter sales results."; $headers = "From: $from"; $messageSend = mail($to, $subject, $message, $headers); if($messageSend) { echo "<p>The following message was send successfully:</p><hr />"; echo "<p>from: $from</p>"; echo "<p>to: $to</p>"; echo "<p>subject: $subject;</p>"; echo "<p>message: $message</p>"; } else echo "<p>the message was not send successfully!</p>"; ?>
View Replies !
Configure My Apache Server To Display Thumbnails Of Images
Is there a way to configure my Apache server to display thumbnails of images when it lists a folder's entries? I have thousands of images which I upload to a folder on the server, but when I want to remotely find a particular image, I have to guess it based on the filename. Can this be done in apache, or is there a simple PHP script that can take the contents of a folder then generate and display thumbnails? I don't want a fancy image gallery. I've had a good look around, but all my searches turn up how to set up image galleries etc. which is not what I want.
View Replies !
Can I Execute PHP From External/different Server?
Hopefully there are some experts out there that can help with this - I've done a bit of searching here but haven't found an answer yet. The problem is, the site where I'm hosting a set of html files does not support PHP. I have another host which does support PHP. I need to have my html files located on the server which does not support PHP. Is there some way I can execute my PHP scripts within a regular HTML file? I've seen references to using Javascript for this but no working examples (and none I could make work). Unfortunately I can't get PHP on the site where I need it without redirecting my domain (among other things). If there is a way to execute the PHP remotely, that would be the preference..
View Replies !
Captcha From External Server
Is it somehow possible to insert a captcha field into a form, such that i want the captcha's php file to on another server. The form's processing php file is also another servers.
View Replies !
Require_once From A External Server?
Can I do a include or a require_once from a external server? For example require_one('http://mysite.com/page.php') I am creating a program and don't really want the clients to be able to see my database login information on their server.
View Replies !
Using External SMTP Server
I need some help with an script: // send message if($_POST[submit]) { // check for suspected injection strings foreach($_POST as $name => $value) { filter_string($value); } // check for unexpected newline characters foreach($_POST as $name => $value) { if($name != 'message') filter_string($value); } $_POST = safe_data($_POST, 'display');.
View Replies !
Downloading External Images To Server
I'm trying to write a script that simply downloads the daily Ziggy comic. The image URL for today's comic is http://images.ucomics.com/comics/zi/2007/zi070625.gif and the six digits in the filename are today's date. Code:
View Replies !
Mail() Under Linux
why would this script work fine on my windows box, but not my linux box? both sit on same router. <?PHP ini_set ("SMTP", "smtp.comcast.net"); ini_set ("smtp_port", "25"); mail("xxx@gmail.com", "ha ha test", "this is my email test", 'From: me@here.com'); ?> linux box = debian. PING smtp.comcast.net (63.240.77.77) 56(84) bytes of data. 64 bytes from smtp.comcast.net (63.240.77.77): icmp_seq=1 ttl=48 time=34.1 ms 64 bytes from smtp.comcast.net (63.240.77.77): icmp_seq=2 ttl=48 time=36.7 ms telnet smtp.comcast.net 25 Trying 206.18.177.17... Connected to almailhost.ops.asp.att.net. Escape character is '^]'. 220 comcast.net - Maillennium ESMTP/MULTIBOX alnrmhc13 #31
View Replies !
Linux Php -> Nt Sql Server
How can I connect from a Linux Apache server with PHP 4.0 to a Windows NT SQL Server? On NT this is easy (load the module), but on Linux I didn't see such an option. Also I didn't see anything like --with-mssql in configure. Is it even possible?
View Replies !
Compiling With Oracle Support For External Db Server?
I'm trying to compile PHP as an Apache module with Oracle-oci8 support.. and at the moment I'm not having much luck because 'configure' needs Oracle to be installed on the same machine. Unfortunately, there isn't a local copy of Oracle, and the databases I want to interact with are on another server. Are there any workarounds for this or does Oracle need to be installed on the machine I'm compiling PHP on?
View Replies !
Send Email To An External Smtp Server ?
I am running VBulletin board, the web forum on a linux machine running apache. How to config php so that it can send email thru an external smtp server instead of local sendmail. My external smtp server is running on an NT machine.
View Replies !
Php.ini Mail Config On Linux
I have a problem sending emails, they doesnŽt got sent at all. here is my php.ini: [mail function] ; For Win32 only. ;SMTP = 10.0.0.150 ; For Win32 only. ;sendmail_from = me@localhost.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail.postfix -t -i The mail server that the linux box is running is Postfix. IŽve tried with the central server of the office, that has an SMTP server (10.0.0.150), but without no luck. the strange thing is that mail works if the webserver is a Win2k machine, relaying the email to the ip listed above. am I restricted to sendmail or postfix on linux or may I use an external SMTP server? what could be wrong? IŽll post the mail function, but as IŽve said it works as expected when using a win2k server: PHP Code:
View Replies !
Mail :: Suse Linux 9.3
I've been trying to send email with php mail function in suse linux 9.3 professional from Localhost but I'm not receiving the mail and I'm not getting any error as well.
View Replies !
Mailing To External Server:Sender Domain Must Exist
My server gives this bounced mail only when I try to send it to another server.The mail I send to myself still arives! For some reason this mail works fine, but doesn't arrive? server error: Email adres sender doesn't exists? ... while talking to mail.somehost.com.: >>> MAIL From:<nobody@localhost.localdomain> SIZE=46 <<< 501 <nobody@localhost>... Sender domain must exist 501 someone@somehost.com... Data format error
View Replies !
Windows Server To Linux
I have the code below which worked fine when I was using it on my windows server. However I had a few problem with the windows server then I had to switch to a Linux based server. Once the switch was completed I started having problems with a number of my codes which worked fine previously. I have managed to solve quiet a few of them with the exeption of this one which I cant figure out and was hoping you could help. Code:
View Replies !
Use Different Fonts On Linux Server
A client of mine wants me to use all sorts of different fonts to write some text on the predefined image and to show it to visitors (like a show - visitor would choose a font and then my engine would have to show that as a picture). I have the functions covered (I use imagetfttext for this), so basic functionallity is not the issue, but the fonts are. I have no root acces to the server and thus I can't figure out what fonts are installed (it's a Linux environment). Basically, I would like to know how to find out what fonts are installed (obviously I would need TTF fonts to use here) and if I need new ones how should I go installing them? Also if there is a better way in doing this please let me know.
View Replies !
Ffmpeg In Linux Server
I want to extract a frame from a video using ffmpeg. I used $ffmpeg_snapshot = "ffmpeg -i ../gal_video/test.flv -vcodec png -vframes 1 -an -f rawvideo -ss 00:00:09 ../gal_video/thumbnails/test.png"; shell_exec($ffmpeg_snapshot); My hosting support ffmpeg. But it doesn't work.
View Replies !
Mail Headers For Linux Hosting
Hi, my pages are hosted on a Linux server and I use following headers to send emails with php. $headers = ""; $headers .= "MIME-Version: 1.0"; $headers .= "Return-Path: <email@mydomain.com>"; $headers .= "Content-Type: text/html; charset=utf-8"; $headers .= "Content-Transfer-Encoding: 7bit"; $headers .= "X-Mailer: PHP/" . phpversion() . ""; $headers .= "X-Priority: 3"; $headers .= "X-MSMail-Priority: Normal"; $headers .= "From: My Domain <email@mydomain.com>"; $headers .= "To: $name $surname <$email> "; I read somewhere that is for Windows servers and on Linux servers using a new line feed is enough. Is that right?
View Replies !
External PHP/HTML Loader To A Iframe From A Server Side Php Script
I think I would call what i am trying to do is build a External PHP/HTML Loader where I am laoding a iframe on a web page from a server side PHP script - the action for trigering the event on making the iframe come visable i would like to be done in the server side script and because I do not want any user interaction on trigering that action or alert to happen. Hiding the iframe The only way to hide an iframe that allows both browsers to access its content is b setting the style property width and height to 0px for example like this: <iframe name="myIframe" src="blank.html" style="width:0px;height:0px" frameborder="0"> </iframe> In the example the scr="blank.html" would "blank.php" work also and does the file need to exist on the server of not will it throw a error condition? if so is there a better way to do that? i have also seen src=" " maybe that is a better solution - i just do not know? any comnets on that issue is welcome! Unstead of load a page that contains a javascript alert. I want to trigger the alert by either one of two metords first it could be done by passing something from a php server side script - but what can i do to acpompish that - I do not want to use the GET in the address bar due to the fact that i have a some security issues with that techique and feel quite uncomfertable about the GET Also there are differnces in the way the two browsers use the java script and the alert so by trigger the alert in the server side PHP avoids all that and i think as a lot cleaner for my use this time. A thought might be the following - I could also use some type of techique to test the size of the text contained in the file named in the src= in the iframe properties but not clear at this point what i can do here either? Any ideas or sujestions about how that can be done. I could also use both the server side PHP and the testing of the size of the file would be a shure way of makeing shure the ifrane stay hidden when nothing in the file named in the src= property. The name property in the iframe which in the above example myframe is that the proper way to reference the iframe or should i also set the id= property and why would i have to please explain? In the iframe construct or object above i want to have the scroll bar be active if the text being displayed in larger then the arae on the screen os the scroll bars set be default or do i have to explectly set the property handeling the scroll bars to get them to work? Npw how should i handle the speed of loading a exteranl file in this case a PHP file into the iframe that is the file named in the src= property. what is the impact of just referenceing the php file containing the text that is to be loaded into the iframe directly. It is or coould be a lot of text. Or is it the best policy to load the data in the background to a like hidden DIV or construct or some kind of blob variable or array of some kind something and then dump the text after it is local to the wab page then move it to the iframe? what are you thoughts on that also welcome.
View Replies !
Http Authentication On A Linux Web Server
I've been running the following authentication in php on a linux web server. I'm trying to move it to a web server on a Windows machine running Omnihttpd. It isn't working. Any ideas? <?php if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm="Hardware Review""); Header("HTTP/1.0 401 Unauthorized"); echo "You are not authorized to view this pagen"; exit; } else { if ($PHP_AUTH_USER!="hardware"| |$PHP_AUTH_PW!="Speed0") { Header("HTTP/1.0 401 Unauthorized"); echo "You are not authorized to view this pagen"; exit; } } ?>
View Replies !
Windows PHP Connect Into LINUX Server
I want to built a windows php website---> connect to the linux box--->read all settings value from the .ini files->display it into the php website->user can then change the values->save the .ini file base on the user modification close the file-->for back up reason of settings, also save the values into SQL database. I also need to reboot the linux box after apply changes to the .ini. Anyone knows how to approach this problem? What do I need? Does php have a built in ssh?
View Replies !
Cannot Modify Header On Server (Linux)
I'm really have no idea of this error. I have a script (stafflogin.php) that will redirect to main after login via PHP Code: header("Location: staffloginmain.php"); After I tested in my local machine (WIN XP), I upload it to the server (Linux) but when I login on the server, it prompts me: Warning: Cannot modify header information - headers already sent by (output started at /home/absolute/public_html/stafflogin.php:3) in /home/absolute/public_html/stafflogin.php on line 53
View Replies !
File Permisson Linux Server
I am creating a folder in Linux server through coding. for example mkdir('upload',777); But it's not creating with this file permission , also i try to change that folder permission(upload) through FTP. It's not changing "operation denied " error is coming. But if i create any folder through FTP then i can change the file permission it's working. I have to know How can i create and change filel permission through coding in PHP. I feel setting that folder owner,group,
View Replies !
Connecting MSSQL SERVER From SYBASE At LINUX
I have installed sybase ase on Linux and it is working fine. I have a database on sybase ans I am using PHP3 for accessing the database from the browser. Now I would like to connect the MS-SQLSERVER which is on a NT server in the same network. How to set up the interface file to run both the databases.
View Replies !
Server Wide Scripts In A Linux Environment
I have developed a content management system and every time I want to create some short of server wide repository of the classes I am using. So when I update a bug I don't have to go and edit the code or upload the new file to every virtual site I have on the server. Do you have any ideas of what is the best way to do it ? I am on a Linux OS by the way.
View Replies !
Dynamic Creation Of Graphic On Linux Web Server
I have a small PHP Project - Accept three strings posted from form in a web page - One of the strings will be encoded set of X/Y points defining curves Decode the string to X/Y points - Create Graphic image from the data - Send back graphic as web page to the browser - Also save the original strings in a database and I'd welcome any sample code.
View Replies !
|