Setting Up Mail Server
I am setting up a webpage which needs scripts to access Merak Mail server. i need these scripts to create and delete accounts and domains in the mail server. I know the commands to do what i want, thing is i don't know how to implement these commands in php.
basicaly when a user comes to my site, i want them to fill in any email address, and there pop mail settings. and whatever they enter in i want that information to be created in merak. what i need to know is how can i do this with php.
----creates a user in Merak Mail server-----
Lets add a new user with the name John Doe, alias john, mailbox john and password secret into the domain icewarp.com. You do not need to specify the domain name if it is a primary domain.
users -a -ujohn@icewarp.com -mjohn -psecret -n"John Doe"
-------------------------------------------------------
the above command creates the user... but how with php can i implement this.?
i have a basic understanding of programming and know this is a very simple script but i don't know where to start.
View Complete Forum Thread with Replies
Related Forum Messages:
Setting Up SMTP Server And Mail()
I've never seen a clear and useful post about setting up an SMTP server and getting the mail function to work properly. Some info about my system: Windows XP Home (SP2) Apache 2.0.XX PHP 5 MySQL 4.1 ActivePerl 5.8.7 (If anyone knows how to set this up with apache, please send me a pm, thanks) I'd really like if someone could post a few links or someinfo on how to set up php's mail stuff From what responses I've gotten in the past, I think I need an SMTP server installed on my computer, when I googled, the only results that I seemed to get were servers I would have to pay for. I'd also like to know about configuring PHP's mail functions (php.ini options) so that it will work corectly.....
View Replies !
Setting Up Mercury Mail Server
Has anyone successfully set up Mecury Mail to run on Win XP Pro (localhost)? I set up a new mail account on outlook express for it (newuser/newuser@localhost/wampp) - but I still can't send out mail from within php scripts.
View Replies !
Setting Up PHP To Use Mail ( )
I am trying to run this code and I keep on getting the error message : 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 FilesSOFTXAMPPxampphtdocs egister.php on line 96 Any ideas, guys? #########SEND A REGISTRATION CONFIRMATION E-MAIL########## if ($adduser) { $recipient = "'".$_POST['email']."'"; $subject = "Registartion Confirmation"; $mailheaders = "From: Express PC Sales <xxx@hotmail.com> "; $msg = "Thank you for registering at Express PC Sales. Your Account is now active. <br><br> If you DID NOT register on our site, please reply back and your account will be removed from our system."; mail($recipient, $subject, $msg, $mailheaders); }?> Btw, I m doing this from localhost AND the FROM e-mail must be xxx@hotmail.com.
View Replies !
Setting Up Mail With PHP
I am using a PHP template for a classifieds site. I edited the config file, and it will not send verification emails, and if I try to send an email to a poster, that email does not arrive either. Here are the snippets of the config file that I think are the most relevant. What format should I put the email address in? What part of the system is actually sending the email (i know, i am new at this, please forgive me) the text you see are the placeholders given. // Site email address $site_email = "site@localhost"; // From address to use for mails sent using the contact form $contactmail_from = "forward@localhost";
View Replies !
Mail: Setting Up SMTP
I want to set it up so my php will use for the mail() function a email address I have on a different server... how can this be done? I must enter password and the URL?
View Replies !
Setting Server Variables
I'm trying to work on a project that involves adding functionality to a website. They have it segmented so that most pages don't require any authentication but one directory (used for all intranet pages) uses a .htaccess file to authenticate users through an LDAP server. From there, all the pages in that directory look for $_SERVER['REMOTE_USER'] to get the username and populate the page with the proper information. The problem is that I'm not allowed to use their development environment, including the LDAP server. I got their site up and running on my local box (sans LDAP) and thought that maybe I could work around the authentication by deleting the .htaccess file and creating a fake login page that simply asks for a username and populates $_SERVER['REMOTE_USER']. This doesn't work at all. After populating it and redirecting to another page, $_SERVER['REMOTE_USER'] does not appear to be populated. So, I guess my question is can I set $_SERVER variables, does this seem like it should work, or do I have to try and set up an LDAP server?
View Replies !
Setting Up Testing Server
I have set up a testing server on my local machine running PHP MySQL and Apache. I also allow access to it from external machines and here is my problem. If you type in the ip address into the browser everything works fine but if you try to access one of the sub-directories eg. 123.456.7.8/mydirectory it doesn't work?
View Replies !
Setting Up A Testing Server
I hope I'm posting this in the correct forum. At home I have a desktop and a laptop. I have installed a wireless network with a modem/router. There are four LAN ports on the router, and I have been given an old desktop which I fancy connecting to the network. I would like to install LAMP on the machine, and use it to test php and mysql applicatoins that I build (and perhaps as a file server also).
View Replies !
Setting Up Php On Apache Server
I am trying to teach myself a thing or two about web servers and other such things. I currently have been refering to this site http://www.webmasterstop.com/48-3.html , I followed the instructions to the T and am having a problem with the php aspect of it. This is the error i am getting. Not Found The requested URL /php/php.exe/phpinfo.php was not found on this server. Apache/2.0.55 (Win32) Server at localhost Port 80 i should be getting a php info page. You may have to refer to the listed site to see exactly what i am trying to accomplish.
View Replies !
Setting Up A LAMP Server
Can anyone point me to a good article about setting up a LAMP server that would cover the following points: - use of packet managers for and against -directory structure -Backup and recovery policys -upgrade and patch management
View Replies !
Mail() Is Not Setting Up Headers Correctly
mail() is not placing the headers data in the headers section of the message, but instead in the body. I took the code straight out of the php.net manual. What do I need to do to signify that this is HTML email to the client yet not have header codes showing up in the body? (Also Eudora is not reading the From header, when I click reply the To: is blank...) To: erik@domain.com Subject: Erik, your Password Request Content-type: text/html; charset=iso-8859-1 From: Management <support@domain.com> ....
View Replies !
Setting Include_path On Shared Server
My shared host used to have Php configured such that I could place a php.ini file into any directory on my site and that was the php.ini file that the Php cgi would use when it ran scripts. Since upgrading to Php5.1 that is no longer possible (not allowed in Php5.1 (?) ). Anyway, ... this was a very handy way for me to set the include path so that I could keep files with sensitive data (e.g., database usernames, passwords) out of the site's public path. My hosting service has actually rolled back to Php5.0 so that I could continue doing as I had been ... with the caveat that they will ultimately have to go with 5.1. So, I have a set of questions. 1. Is there another way that I can set the include path globally for my site? (Adding them to htaccess throws a 500 server error.) 2. How much security is really gained by moving sensitive include files out of the site path (my include files all use the .php extension)? Should I even be that concerned about this capability? 3. Would I gain the same security if I changed my current include files (which I would have to put back into the public site path) to do nothing but set include_path outside the public site and then include a new, secondary file which actually contains the sensitive data? 4. Does anyone know why I *can* use local php.ini files in 5.01 and not in 5.1?
View Replies !
Setting Up A Test Server Locally?
in the right direction to setting up a local server or whatever it's called on my computer so that I can test sites locally, before uploading them onto the internet? I've no idea where to start... just heard bits about it. It'd just be helpfull to test my code, before putting it out for people to see.
View Replies !
Setting Up 5 (Wamp) Server Looking For Suggestions.
We are setting up our own ISP (server) with Windows 2003 Standard Edition, Ms SQL 2005 and Wamp and our consulting company is setting up the hardware (and 2003 server software along with MS SQL 2005) and I am going to setup WAMP on it (with PHP5) and was looking for feedback on the PHP5 settings. Has anyone setup a 'true server' like this? I have my personal machine with WAMP and PHP5 but it is not hosted on the Internet only our Intranet, so I am safe with the standard settings and not concerned about security or speed.
View Replies !
Mail Function Max File Size Setting
Ok, i'm sending large attatchments via the mail function. On one of my hosts, I don't have a problem sending emails larger than 20 megs...On the other host, it fails at around 7megs. Does anyone know what this could be?
View Replies !
Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get: Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7 <?php ini_set("SMTP","rlwatkins.com"); ini_set("sendmail_from","hunter@rlwatkins.com"); mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com"); ?> what is wrong with this, how do i set it so that i can send to something other than localhost?
View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows : mail("User <user@example.com>",$subject, "", $headers); I get this error : Warning: mail() [function.mail]: SMTP server response: 501 Syntax error, parameters in command "RCPT TO:<User <user@example.com>>" unrecognized or missing in It seems to add it's own <> characters. If I run the same script under Linux it works fine !?
View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it : Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2 what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:
View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows: [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 then in my php script: <?php mail("joecool@hotmail.com", "Testing", "Line 1 Line 2 Line 3", "From: tom@hotmail.com") or die("email error"); ?> i have also run mercury mail but i keep getting this error: Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2 on all tutorials that i went, the mail function is written this way what is wrong?
View Replies !
SMTP Server Response: 503 This Mail Server Requires Authentication
I get this any time I try to send an email to someone that IS NOT in the domain of the company: Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in corpevent.php on line 21 I have it setup like this (I removed the email address domain...but its correct in the code): // INI Settings // ini_set(sendmail_from,"info@domain.com"); ini_set(SMTP,"mail.domain.com"); ini_set(smtp_port,"25"); $headersĀ = "MIME-Version: 1.0"; $headers .= "Content-type: text/html; charset=iso-8859-1"; $headers .= "From: info@domain.com"; $to = $_POST['txtEmail']; mail($to,"Your Email",$theEmail,$headers); Why am I not allowed to send an email to anyone that doesn't have a "domain.com" at the end of the email?
View Replies !
Does Setting Session.gc_maxlifetime Affect All Sessions On Server?
Before I extend the users session timeout, with ini_set("session.gc_maxlifetime",86400*2); // buy the user 48 hours to make a decision, I wanted to know if this idea is going to affect all users/session on the server or just the "current user session?" There isn't a user/pass combo to get in my site. Once the cart is started, this script is invoked. When this site is released to the client, I don't want him coming back to me one day to say his site is down because of an indefinite memory full thing.
View Replies !
Setting Up Some Database Integration With Our MSSQL 2005 Server
I know that this is a little off in regards to php and MySQL but I have an SQL programmer helping me with setting up some database integration with our MSSQL 2005 server and he wrote some stored procedures that I am not able to get a successfull query from. I went to these three sites looking for examples......
View Replies !
Easiest Linux Distro For Setting Up A LAMP Server?
I've been trying to set up a LAMP server for experimental purpose. Our production environment is WAMP (Windows Apache2 MSSQL PHP) but out of curiosity I would like to see if we can operate our site with free software only. I have precise little time for this though, so I'm looking for something that installs everything with just a few clicks. I tried Debian, but even through I added PHP4 in dselect, it wasn't working in Apache. The server environment is going to be a VMWare virtual computer, so I would prefer a distro that doesn't automatically install a GUI.
View Replies !
Trouble Setting Mail() Return Path - Defaults To Apache?
I am having some difficulty in setting the Return-Path header in our mail() script. When I analyze the headers of a test message it always comes up as: Return-Path: <apache@mydomain.com> Here is the header setup in our mail() script. Domains and email addresses have been altered: $headers = "From: Name <'mail@mail.com'>"; $headers .= "Reply-To: Name <'mail@mail.com'>"; $headers .= "Return-Path: Name <'mail@mail.com'>"; $headers .= "Message-ID: <".$now."TheSystem@".$_SERVER['SERVER_NAME'].">"; $headers .= "X-Mailer: PHP v".phpversion()"; Is it possibly a setting in php.ini that is restricting the mail function headers to be changed?
View Replies !
CURL - Setting Up A Cron Job To Auto Transfer Things To Another Server
As I'm becoming more familiar with curl, I was wondering one thing. I like to transfer data via curl and will be setting up a cron job to auto transfer things to another server, as a backup. Are there any issues that would cause the transfer to slow down, or cause problems - IF - there's a lot of data to transfer? I know this is a broad question, because I'm just looking for any possible hiccups when I initiate the curl statements. Hiccups that I may not know about, or understand. Anything that may involve timeouts, or the like. I don't expect any particular answer, but I'd like any thoughts that may help me keep my data flowing smoothly.
View Replies !
Get Mail From Mail Server And Process It
i have created a table in my database. the table consist of columns named clientName, problem and problemDesc. When a client email a message to my mail server(hanwei@test.com), the script will grep the mail from my mail server and process it. I want the informations in From:, Header: and Message: to be automatically inserted into the table that i have created. Code:
View Replies !
Mail Server - Use My Page Login For The Mail Login User Is Stored In $_SESSION
I have a problem and no time to google it and i hope someone will guide me. I have a linux server (slack10) php/mysql and a website where you can create accounts and login. i need to install a mail server with a web interface, i need to have a script that creates automaticly an email account when my page creates an account and a way to use my page login for the mail login user is stored in $_SESSION and the mail will be shown in iframe any sugestions?
View Replies !
Mail From Mail Server
I have created mail server script in php. i try to access my mail from my website cpanel i am getting only newly received messages, but my requirement is to access all the messages both old and newly received messages.
View Replies !
How To Use PHP To POP A Mail Server
I have this email address where I get some email coming from a form on a website to which I do not have control. Is it possible to use PHP to pop my mail server for the emails? I would like to be able to drop the email data into a database.
View Replies !
Mail Server
Is it possible to use my ISP's mail server to send outgoing email through PHP or do I need an actual mail server installed on the system? I use my home PC for PHP development but I don't have a mail server installed on the machine itself as I just use my ISP's incoming/outgoing mail servers for e-mail.
View Replies !
Set Up PHP To Use Separate Mail Server
I've gotten myself compeltely stumped here. I'm running RedHat/Apache on some remote servers, and I've been pulling what little hair I have left out of my head because I can't get the web servers to send mail, using PHP, to the email server specifically configured for such a purpose. I have the email server IP, and name (for example, mail.mydomain.com), and I've tried configuring both web servers' php.ini file, to no avail. Can anyone assist me in this? Using the web servers as mail servers is not an option; the email *must* go through the email server.
View Replies !
Connect To Mail Server
I got this script from a tutorial somewhere, its for conecting to a mail server and reading a list of the messages there. but for some reason it wont work. at all. the page just stays blank. (white). PHP Code:
View Replies !
Server Usage With Mail
If I am going to make a blast email function using mail, to select from a mysql database a chunk of around 3000 rows and then email them all, what kind of drain on the server is that? Is there a recommended way of doing this?
View Replies !
Simple Mail Server
I would like to set up a very simple but reliable/capable mail server on my Linux Web server or on an alternate server so I can run PHP e-mail scripts on certain web pages. What is a good choice for a mail server that can perform this function? Preferably one that ships with Redhat 7 as I already have the CDs.
View Replies !
How To Create Mail Server
i am using php4 & mysql 3.22 with apache and linux. i can able to read the mails using the IMAP functions that is not prob. my question:how will i create a new mail account for my users.
View Replies !
Mail Server Authentication
There seems to be a lot of white noise in trying to understand SMTP that requires authentication when searching the newsgroups via Google Groups or searching the PHP.net website. The PHP fsockopen API's notes on php.net provide the routine to connect, unauthenticated, to send messages. But if you need authentication, people want you to download their class or check the PEAR. Some websites even want your email address or some registration process to check out the file, but I don't play that game. Anyway, these methods will work, but here's the short of it... After the HELO initial acknowledgement, do the following. (Translate the pseudocode to PHP.) 1. Send "AUTH LOGIN " 2. Did you get message 334 back? If not, then server doesn't support authentication. Break. 3. Send base64_encode($user) 4. Did you get message 334 back? If not, then server doesn't support that username. Break. 5. Send base64_encode($pass) 6. Did you get 235 back? If not, then server doesn't support that password. Break. 7. Proceed now with MAIL FROM, RCPT TO, DATA, etc.
View Replies !
Specify Server In Mail Function?
I am running a PHP script on my machine that's running mySQL. But this machine can't send mail. My script just uses the PHP mail function. I have to specify username, password, and server to be able to get into the mail server. Can the PHP mail function take those parameters somehow?
View Replies !
How Send SMS And MMS From Mail Server?
Does anyone know anything about sending SMS or MMS from my server (so, users could be texted that their order had been dispatched)? I don't know where to start looking... do I need something particular installed or will it work with my normal mail server?
View Replies !
Using Different Server To Send Mail..
My mail server has been blocked by a couple free e-mail providers namely Hotmail because my boss sent out an e-mail from the server to 3,000+ e-mails. Now I'm coming up with a solution so that we can continue to send e-mail to our users and new users. I've set up a new domain on a different server but I'm trying to figure out the best way to send mail from the new server. My site sends out e-mails during user registration and few other functions. How should I send the info to the new server so that it will send out e-mails? For example, the website is SOMEDOMAIN.com, our new server set up soley for sending mail is SOME-DOMAIN.com. I'm thinking of adding a record to the database on SOME-DOMAIN.com any time an e-mail needs to be sent. But then how do I remotely call the script to actually send the mail. I can pass some info through the URL but should I use cURL to access the script?
View Replies !
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 !
Formmail As Mail Server
some applications require mail server to send out email . I do not have a mail server installed. is it possible to use the formmail that we have ?
View Replies !
Remote Mail Server
I am trying to send a mailout using a php script hosted on my server to connect to a seperate mail server. The server uses pop3 and is QuickMail Server 2. Can anyone explain what PHP script I use to connect to the mail server. I am currently using the mail() function but this is simply sending from my development machine.
View Replies !
Mail From A Microsoft Server
I am writing a script for a Win2000 server, it needs to be able to send email, but the server doesn't have an email server on it, is there a sendmail or qmail for windows? does anybody have any suggestions on how to make this work?
View Replies !
|