Any PHP / Exchange Experts Here (about Mail Relaying) ?
My IIS / PHP / MySQL and Exchange are on the same box. To allow PHP to send
mail I need to add my servers IP to the "Granted" list for the SMTP Virtual
Server in Exchange, however, this opens me up for spam relaying.
If I remove the IP, PHP generated mail no longer goes out (either using
mail() or PHPMailer). Is there any combination that I can use to stop my
server from relaying AND allow my PHP mail to go out ?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Relaying Denied Using Mail()
The ISP I am on is using a mail server that has POP before SMTP activated. This means whenever a mail goes out it has to supply a valid username and password for that mailbox in-order for it to let the email be sent. I can do it using ASP and JMail but how do I get vBB to work with this?
Mail()Relaying Denied. Proper Authentication Required
when sending an email from the mail() function I get this message: mail(): SMTP server response: 550 5.7.1 <test@test.com>... Relaying denied. Proper authentication required I did set the php.ini values like this: SMTP = mail.myserver.com ; for Win32 only smtp_port = 25 sendmail_from= webmaster@myserver.com; for Win32 only I am coding on a "localhost" machine and I believed that connecting to a mail server like it's done above would work. what's wrong ? How to set authentication for letting my server accept my mail ?
Mail() With Ms Win Nt And Exchange.
I am trying to get the mail() to work with a Windows NT 4.0 server, running PHP3. I receive the following error: HTTP Error 405 405 Method Not Allowed The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting. Code:
Mail() Funtion And Exchange
I get an "unknown error" when attempting to use the mail() function to send email in a PHP script of mine. I'm guessing that this problem has something to do with the fact that my host is running NT with Exchange server. At this point I'm not sure that Exchange is actually up and running yet. If this is that case, merely getting exchange up and running may fix the problem. If that's not the case does anyone know what sort of finessing exchange needs for the mail() function to work properly? I can't seem to find any literature on PHP and NT. Perhaps I just don't know enough about how NT works to get things straight in my head (e.g. what would the equivilant, on an NT machine, of popen("/usr/sbin/sendmail -t", "w") be? )
Mail() And Exchange 2003
I work for a small college in Virginia and we were running Imail up until December. During the Christmas break we migrated to Exchange 2003 and we are running GFI Mail Security and GFI Mail Essentials and it is running on a Server 2003 box. We have all of our web applications housed on a Red Hat 9 box. Since students have came back and started using our applications, we've noticed the mail() function is no longer sending mail. It doesn't seem to give us an error or anything. Just doesn't pass mail to our users even if they use an outside email address such as Hotmail or Yahoo. I looked around and found out that Exchange doesn't have some of the functionality with SMTP and other Internet protocols so is there a way I can get my email forms to work again?
Mail() And Exchange Server Questions
I am trying to send mail externally from my SMTP server(exchange 2000) using mail() function. I have no problem if I send to a internal address (christopher.seidel@jerovsek.si), however if I try to sent to a external address (chrisseidel@hotmail.com) I recieve Warning: Server Error, do I need to authinicate to the exchange server who I am so I can send external e-mail, or is this a different problem? *****************Source code************** <html> <? $header = "From: URL Reply-To: URL"; $to = "someone@hotmail.com"; $message = "lots of text 12345678910"; $subject = "Blah Blah"; $send_result = mail( $to, $subject, $message, $header ); ?> </html> *****************configuration************** PHP4.04 Exchange 2000 IIS 5.0
Mail() And Exchange Server Questions
I am trying to send mail externally from my SMTP server(exchange 2000) using mail() function. I have no problem if I send to a internal address (christopher.seidel@jerovsek.si), however if I try to sent to a external address (chrisseidel@hotmail.com) I recieve Warning: Server Error, do I need to authinicate to the exchange server who I am so I can send external e-mail, or is this a different problem?
Sending A Mail Through Exchange Server
I want to send mail through PHP using the MS Exchange server. My php.ini file looks like this (for the MAIL functions) ------- [mail function] ; For Win32 only. SMTP = exchgserver.test.com smtp_port = 25 ; For Win32 only. sendmail_from = thegoodboy@test.com ------- The following extensions have been loaded as well. extension=php_imap.dll extension=php_ldap.dll After making these changes there were no errors/warnings. But I'm unable to send any mails. What are the other changes that i should do to send mails?
PHP5 Experts In This Ng
I have just recently (~ 3wks) playing around with PHP. I come from an OOP background (mostly C++) so I have taken to PHP5 like a duck to water. However, I have a number of nagging questions that I have not yet manage to resolve (all the websites I have visited seem to assume I already know the answers - or could it be that PHP is so loosely held together that it lets one get away without a proper architecture for an application (is "application" the correct term for a bunch of PHP scripts running server side or is there another term?) Question 1: =========== Is there any such thing as a PHP application (or are PHP solutions just a bunch of "loosely coupled" scripts thrown together)? Question 2: ============= Assuming there IS such a thing as a PHP application, how does one go about putting one together?. In the C++ world, there is the concept of libraries, in Java there are packages, In .Net there are assemblies. i). How do PHP solutions logically partition functionality?. Writing extensions in C seems to be one way to go, but apart from that being overkill, I my ISP may not even allow me to load my extension. There must be a simpler way to partition logic surely ?. Question 3: ============== I have seen a few examples that seem to partition functionality by splitting objects into various files (a bit like the use of header files in C/C++), along with a liberal showering of calls to include() in the code - however, unlike header files, the files "included" contain not just the class definitions etc, but also (more critically), the implementation (i.e. any business logic that may show how your system may be compromised). i). Is it possible to have your "header" files (i.e. class implementation source code) stored in a directory location that is hidden in some way - the main goal is to thwart any hacker who may simply look at your include() method calls, casually navigate to the appropriate directories and peruse your source code at his/her leisure. ii). There are potential issues about using include(). a). I remember reading somewhere that you have a performance hit (I/O bottleneck) every time you call include b). There are potential security issues - You can't use include() if you use a function called something like basedir() (or something - sorry, I don't remember the function name). But this function allows one to restrict users from accessing files above the parent of a specified directory. Any (informed) feedback on this will be much appreciated. I would be very pleased to get informed feedback on this last question (Q3) in particular because the thought of having code that shows a hacker how authentication or licensing (for example) is implemented at the server side does not bear thinking about. I look forward to hearing from the PHP5 gurus in this ng.
Exchange, Com And Php
I have a problem with access to Outlook (with Exchange Server) through com in php. I have SBS2003, IIS 6.0 and PHP 4.3.4. The script with only: $outlook = new COM("Outlook.Application"); echo $outlook->version(); is executing 30 seconds and stops. There's no error's but instrance of Outlook starts as IUSER. I put privaledges to Public Folder (in Exchange Server) and even I create Mail Account for IUSER but it nothing changes. I think the problem is with privaledges becouse word and other MS Office applications works thourgh com.
Exchange Rate
anyone know of a source I could query from a php doc for up to date reliable exchange rates? I don't want to have to continually update manually.
LDAP/Exchange Authentication
Anyone know how to authenticate via LDAP onto an Exchange Server and retrieve an email address for the user logged in? I can connect, bind but my ldap_search() fails miserably and I can't find much help on the Net anywhere.
PHP Banner Exchange Scripts?
Does anyone know if theres any PHP banner/link exchange kits out there? I have seen plenty of CGI and ASP versions but not PHP. Anyone seen any?
PHP Webdav/ Exchange Question
I have been working on a php application interfacing with exchange, my application works with PROPFIND but when I do a search I get an error 400, can anyone point out to me why, I do a METHOD SEARCH, my code is below: My query is well formed and works, so my header request may be incorrect? HTTP_REQUEST_METHOD_SEARCH=SEARCH $req = &new HTTP_Request($url); if (is_string($username)) { $req->setBasicAuth($username, @$password); } if ($method!=HTTP_REQUEST_METHOD_SEARCH) { $req->setMethod($method); $req->addHeader("Depth", "1"); $req->addHeader("Translate", "f"); } else { $req->setMethod($method); // $req->addHeader("Depth", "1"); // $req->addHeader("Translate", "f"); } $req->addHeader("Content-Type", "text/xml"); $req->addRawPostData($query); $req->sendRequest(); if (PEAR::isError($req->sendRequest())) { echo "ERROR:".$req->getMessage(); } $responsecode=$req->getResponseCode();
Creating The Stock Exchange
How would you go about creating a Simulation Stock Exchange? I basicly just want, a few companies(made up), and they all have a starting rate of $2.00 , and some how code it so it increases or decreases at a maximum of $2 difference, and is updated say every 10 minutes. and would you need a database for this to work?
Need A Good Banner Exchange Program
I need a good banner exchange program that allows me to approve members and give them the ability to list diffrent sized banners anyone know of any good free or cheap ones?
No Formmail Results Via Exchange Server
I have formmail.php set up on a site to process a short form and include an attachment (a resume). I receive my copy of the form results with the attachment just fine, but my client is not receiving his copy. My client uses Exchange Server, so his mailbox is not set up on our webhost, but I created a temporary box to test the form, had it forward to my email address and received those results too. I then sent a test email directly to the address specified in the form and they DID receive the email. Seems like the results are being filtered out somewhere along the line - possibly because of the attachment - however the results are not appearing in the Exchange Server spam folder.
Multiple Page Link Exchange
I am in need of a PHP Link Exchange script (preferably free) that is not for single pages. The use of this script will be for having 4 pages on the website - the home page with paid links for $1, and then 3 other pages for free link exchange (Free Links Page 1, ...2... and so on) If you know of a script out there then please post a link to it here. It would be a huge help to me and I greatly appreciate it. I saw one almost a year ago on the HotScripts Most Poplar page, but cannot remmeber it nor find it in HotScripts now.
Is This Code Looking Good To Exchange PHP Session ID Between Flash And PHP
Can some Flash guru tell me if this Flash code is OK to set / retrieve a cookie for exchange with PHP? stop(); var ses:string; //create the local Shared Object myLocalSO = sharedobject.getLocal("hookie" ); if(_root.destroy) { myLocalSO.data.name = "destroyed"; } else { //if cookie already exists then get ses from cookie if (myLocalSO.data.name.length == 32) { ses = myLocalSO.data.name; getURL("index.php", "_self", "GET"); } //if cookie does not exist then make it else { myLocalSO.data.name = _root.PHPSESSID; } ses = myLocalSO.data.name; getURL("voter.php", "_self", "POST"); }
IMAP - Flags Not Being Applied To MS Exchange Emails
I'm using the PEAR IMAP implementation to read emails from an MS Exchange 2003 Server, so I can store them in a MySQL database. I can see from the communication (below) between the PHP program and the server that the commands are being accepted and confirmed. The message (2) starts as 'not seen' and then gets marked as 'seen'. C: A00015 FETCH 2 FLAGS S: * 2 FETCH (FLAGS ()) S: A00015 OK FETCH completed. Message 2 is unread...<br> C: A00016 STORE 2 FLAGS (Seen) S: * 2 FETCH (FLAGS (Seen)) S: A00016 OK STORE completed. C: A00017 STORE 2 +FLAGS (Seen) S: * 2 FETCH (FLAGS (Seen)) S: A00017 OK STORE completed. C: A00018 FETCH 2 FLAGS S: * 2 FETCH (FLAGS (Seen)) S: A00018 OK FETCH completed. Message 2 marked as read<br> When I reconnect and examine the email, it shows as unread again. Is there some kind of 'UPDATE' or 'APPLY' command I need to use with Exchange?
Displaying Currency Exchange Rates On A Page For Product Price
i want to display the price of a product on my site in multiple currencies that is constantly updated to keep in line with exchange rate fluctuations can anyone tell me how i could get access to basic exchange rate data automatically for my site? (just a few major currencies)
Oscommerce Help For Oscommerce Experts
I am new to oscommerce , i acually have some items to sell on internet in a preexisiting mySQL database. I was looking at oscommerce, i wanted to know that can i configure oscommerce so that it can get the products and categories info from mine pre-exisiting database.
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?
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:
Open User's Default E-mail Application To Generate An E-mail?
I want to be able to open up an user's default e-mail application and populate the to:, subject: , body:. I tried using the html <a href="maito:you@your.com?subject=Test&body=It worked">E-mail me</a> but it limits you to the length of the body. I want the user to be able to view the e-mail, add any other comments, and send it. Is this possible?
Sending HTML Mail To Outlook Express With Mail()
I'm sending out an HTML mailer using the mail() function in PHP. I'm appending all of the headers to the message. This message displays correctly in Hotmail, Outlook 2000, and even Mac's OSX mail client. But, for some reason, Outlook Expess (on Win XP & OSX) displays the HTML code and doesn't render it. If, however, the recipient copies the HTML code and composes a new HTML message in Outlook Express, it gets sent correctly. This particular user is also getting other HTML mailers that display correctly, so I know that the client is capable of accepting HTML mail. I'm led to believe that PHP's mail() headers are not being interpreted correctly. In fact, they appear as the first 3 lines in the body of the message when viewed in Outlook Express. OK, here are some samples to tie this all together: First, the mail() code I'm using: PHP Code:
Emails Blocked By Certain Mail Hosts? (mail() Function)
I'm using mail($address,$subjectheading,$message,"From: me@mysite.com") to send emails from my site. For the most part, it works okay (for example, I receive the mail in my Yahoo box). But when I check my university email, the message is not delivered. I thought maybe it was because I had included my web address in the subject heading and that it was being filtered out, but I removed that from the subject and it still fails to get through. I'm making a wedding site for some friends now and they want to be able to email everyone on their guest list at once, but I'm afraid the same will happen to some of these addresses as well. Any comments/suggestions on what may be blocking the mail and how I can get around it? I'm not trying to send out any kind of mass ad mailings or anything. Just to people on a mailing list for this site.
Php Mail() Function Doesn't Send To Pop3 Mail Address
I'm writing a registration script for een webhosting company but the mail() function i used works only for hotmail addresses and not for pop3 email accounts, it also works for other not pop3 email accounts, does any one know what i should do to make this work. I used the same method before on an other server and there it worked perfectly.
Sending Mail In Omni HTTPd With Mail()
Whenever I try and use the mail function I get a "Failed to Connect" error. I'm running PHP4.0, Omni Httpd 2.06 on Win98. Is there something else I have to do to enable email? I know if worked before on PWS, but I switched because I couldn't get PHP4 to run under PWS. Any help is greatly appreciated.
Why Does Mail() Only Send Messages To Some E-mail Addresses?
I've got a form that I use to collect information and store it in a MySQL database and use PHP to send a mail() message confirming registration. When I use my work e-mail address, I never receive the message, but when I use my home e-mail address, I get it right away. What am I doing wrong?
PEAR, Mail Queue And Mail Mime
I have some trouble with my application. It is written with PEAR, SMARTY .... I should send an email to me and with Bcc to 50's else adresses. But it send it just to me. I am on an easyPhP server. Here is my code $mail_queue =& new Mail_Queue($db_options, $mail_options); $from = 'my@email.org' $from_name = "MY"; $replyTo = "my@email.org"; $message = stripslashes($msg); $from_params = empty($from_name) ? '"'.$from_name.'" <'.$from.'>' : '<'.$from.'>' $hdrs = array( 'From' =$from_params, 'Reply-To'=$replyTo, 'To' =$from, 'Bcc' =$liste, 'Subject' =$sujet ); $mime =& new Mail_mime(); $mime->setTXTBody($msg); $mime->addAttachment($pdf, $attach_type); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $seconds_to_send = 1; $delete_after_send = true; $id_user = 7; $mail_queue->put('','My Organisation',$from, 'my@email.org', $hdrs, $body, $seconds_to_send, $delete_after_send, $id_user); $liste follow this pattern "titi@tito.fr<titi@tito.fr>, tita@tito.fr<tita@tito.fr>,titz@tito.fr<titz@tito.fr>, tite@tito.fr<tite@tito.fr>," How can I do to send My emails to the Bcc's addresses too ?
Mail Form Not Sending Mail - Server2003
I am trying to test a simple feedback form. I have php 5.0.3.3 on my dev Windows server 2003. SMTP is working fine, as we all use it to send mail from. PHP works fine as well, but I just cant get mail sent by php, although no errors are reported. Do I understand it correctly that this simple script should send me a mail? This is just to test that it works. <?php mail('me@whatever.com', 'My Subject', 'message'); header( "Location: http://webserver/message_sent.htm" ); ?> Okay, the " Location: http://webserver/message_sent.htm" comes up fine, and "<?php phpinfo() ?>" also works fine. SMTP allows relay from my subnet and does not need authentication.
Mail() / Sendmail Sending Mail As Spam
Wondering if anybody knows why when sending mail through my local sendmail program using the PHP mail() function; emails either do not reach the destination, or register as spam? Prime example is: h0tm@il addresses never receive the email, gmail addresses consider the email to be spam, and my workplace receive the email about 1 hour after the program finishes. Could it be a problem with my ISP? I am using Fedora Core 6, PHP 5 and Apache 2. Or test it yourself.. just fill out the form with some rubbish and it should send an email saying you've registered.. maybe you can figure out where I am going wrong by looking at the headers? http://aaronweb.no-ip.com:6969/?p=2
PHP Mail() Function Failing To Send Mail
Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host environment, 2 jails. Our problem: While we can send email from the command line just fine in one of the jails, we cannot use the php mail() command to send email using sendmail at all. The function, when executed, does absolutely nothing. No error, no reports to the maillog, nothing. I've read somewhere that it's "not possible" to send mail using the php mail() function within a freebsd jail, but i'm nearly certain we have it working this way on another server, but can't seem to figure out the issue.
Sending Mail To Hotmail Using The Mail() Function
I have been doing some research into how to send mail to a Hotmail address using the mail() function provided in PHP, in previous posts I may have been wrong in mentioning that you need to add your mail server to the hotmail PostMaster website using Smart Network Data Services (SNDS), after doing some research I have found that in order to send e-mail to a Hotmail address you need to add/ask your host to add an SPF record to your domain. What is SPF? Well, SPF is a protocol used to eliminate forged e-mails, much like SSL certificates help eliminate phising websites. Microsoft use the SPF record against the SenderID Framework that they have in place. How do I go about obtaining an SPF Record? Easy! use the Microsoft wizard found at: http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/ to generate a unique SPF record for your domain, then add it to your DNS server, or ask your web host to do this. I manage my own DNS server, how do I add an SPF record to a domain? To begin, open the DNS MMC from the Administrative Tools menu of your Windows Server 2003 system. Next, find the domain that will host the SPF DNS lookup record. Highlight the folder for the domain, and select Other New Records from the Action menu. You can also access this menu by right-clicking the domain folder. The resource Record Type dialog box will be displayed. From the Select a Resource Record Type area of the screen, scroll down the list and select Text (TXT) from the list. Click Create Record. This will bring up the New Resource Record dialog box to appear. This is where you paste the SPF record generated by the above website ---------------------------------------------------------------------------------------------------------------------------------- I hope this helps, I have tried it myself and e-mails went straight to my inbox (not junk mail). Would also appreciate feedback if this works for other providers such as Yahoo! etc as I have not tried it with them Give me your feedback on how it works for you, also if it works possibly make this thread sticky as I'm sure it will resolve many problems for people out there who are denying access to people who have public email addresses.
Mail(): Could Not Execute Mail Delivery Program
I have been sending mails from ym server for ages but all of a sudden i get "Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /home/needsite/public_html/includes.php on line 8" I dont think iv changed anything... any ideas?
Mail() Function Doesn't Seem To Be Sending MAIL FROM: Properly
I'm trying to send an email using the mail() function. I've carefully made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP server and also to set my From: address. I'm still getting a "Relaying not explicitly allowed: fakeemail@fakedomain.com" response from the server however, when I try and set a recipient who is outside of my own domain. This makes my think that the From: address is somehow not getting sent to my server properly or that I'm pointing at the wrong server. The confounding thing is that it was working for a while and I don't think I changed anything and it just stopped. I'm running these PHP pages for a client off of one of those cheap hosting services, I think it's called 1dollarhost.com or something, although I can't remember at the moment. Has anyone else had trouble with this or found a solution?
Mail Download From Yahoo Mail With PHP
I want to get mail from yahoo mail by PHP. actualy, i want to create an application which one will save mail data (mail receive time, mail sender information etc.)from yahoo mail and save that data to mySql database automaticly. have u any PHP function which one will direct connect with yahoo mail server and save that data to my mySql Database.
Mail() Returns False But Mail Is Sent
I'm doing a bit of work for a guy and on his system the mail() function always returns false, but the mail is sent. Anyone come across this? Any ideas what is causing it and how to fix it? -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine.
Sending Mail Otherthan Mail()
My server admin has blocked the mail() due to some spam problems. I need to send emails using php. Can anyone guide me to the best method of sending emails using php without using mail(). If there is any tweak to be done at the server level I will be able to convince the admin. The server has linux Enterprice edition 3 with php 4.3.11 and cpanel/whm.
HTML Mail With Mail(). (Bad Formatting It Says)
I'm trying to send a HTML-mail with mail(), and I'm using the function can be seen here: http://www.webmasterworld.com/forum88/3288-1-10.htm The script is working on some clients but not on everyone. The fault I get from the headers in the sent mails is: "X-Mail-Format-Warning: Bad RFC2822 header formatting " I'm kinda new to this stuff with multipart-MIME emails, and would appreciate some help.
Active Directory / Exchange / Active Directory.
I'm creating an Intranet module for a client (Forum, files upload...etc...etc). This client already has a huge server running on WIN2000 + IIS 4 + Exchange + Microsoft Active directory + proxy and finally PHP 4.03 + MySql. Problem #1 : All passwords are changed every weeks, so I want to be able to import users/pass from Microsoft exchange .... Does anyone have an idea to do such thing with PHP ? Problem #2: I would like that the user logged from the firm's network do not have to log. again when connecting the module. So, is it possible to do such thing ?
|