Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Send Mail ON Windows Server WITH No Response


I made a script to send email with php . It worked perfectly on Linux server.. Now I tried to run it on Windows server and there is no response... I've tried

//send_mail() is a funstion which works and returns true if mail is sent...

I checked and on Windows server it returned false on linux returned true.




View Complete Forum Thread with Replies

Related Forum Messages:
Send Mail() Thru A Windows 2003 Server
I'm stuck trying to convert my L.A.M.P. scripting over to a Windows 2003 Server with MySQL/PHP, because the powers that make the decisions didn't bother consulting with me first. It wasn't my choice of server, trust me. I've found various articles on the topic and worked out most of the configuration changes (.ini, etc.) necessary to make things work for the most part. I havn't been able to find a working solution for sending mail() thru PHP. I've tried setting the SMTP and sendmail_from settings in the PHP INI.

ini_set('SMTP', 'smtp.domainname.com');
ini_set('sendmail_from', 'info@domainname.com');

View Replies !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

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: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

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 !
PHP Warning: Mail(): SMTP Server Response: 550
I'm writing a form for my boss with a mailing option. He gave me the SMTP to use. However, I get the error:

PHP Warning: mail(): SMTP server response: 550 <blba@hotmail.com>... Relaying denied in C:websitesendMail.php on line 85

I showed him the error, he cheked the mail at the server, everything was working fine !
How can I AT LEAST check if my mailing works ? (can i use m html smtp ? How can i get it ?)

View Replies !
Warning: Mail(): SMTP Server Response: 451
I am trying to work through some of the Wellington and Thomson book on PHP and MySQL - I am trying to process a mail feedback form and I get the following error:

Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in C:Documents and SettingsRLaneMy DocumentsWeb SitesLocalhostInDevelopmentWellingtonSource4processfeedback.php on line 14 ....

View Replies !
SMTP Server Response: 550 5.7.1 Unable To Relay For Any E-mail.
I am trying to use the mail() function, and I keep get the following error that says

SMTP server response: 550 5.7.1 Unable to relay for any e-mail.

I added the IP of the webserver in Exchange to allow relaying, but still I get this error. Does anyone know how to go about fixing this and allow an e-mail to be sent?

View Replies !
Warning: Mail(): SMTP Server Response: 505 5.7.3 Must Issue A STARTTLS Command First
While using mail() function in PHP I am getting thjis error

Warning: mail(): SMTP server response: 505 5.7.3 Must issue a STARTTLS command first

I have used ini_set("SMTP","mail.subdomain.mydomain.");


But when I used this with the IP address of the MailServer (MS-Exchange server) it works. Any comments on this.

View Replies !
Send Mail From Windows Without Access To Php.ini?
I've found example on how to send email using PHP on Windows 2000. However they
all say to set the outgoing SMTP server address in the php.ini file in the
Windows system directory.

That's a problem for me because I intend to upload this to my hosting company's
server, where I do not have access to the system directory. Each user on this
system has their own virtual mail server.

Is there a way to specify the mail server in the script itself?

View Replies !
Send Mail In A Web In A Web Form On A Windows XP Machine
I am trying to send mail in a web in a web form on a Windows XP machine and I receive this.....

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:wampwwwsendmail.php on line 24

Here are my settings..

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = you@yourdomaim

We don't use a mail server through our ISP at work.  We have our own mail server behind a proxy server. I am not sure how I configure this.  Would I use my company email serve to test this?

View Replies !
E-mail From Linux Server But Not Windows Server
The following one-liner sends mail from a Linux server but not from their Windows server.

mail ("admin@mydomain.com", "Subject", "body");

What do I need to check / change, please?

View Replies !
Sending Mail From Windows Server
i trying to send a mail using php scripts from windows server i used the following code for that:

<?php

$from="info@mysite.com";
$to      = "ajiths4u@gmail.com";
$subject = 'Invitation';
$message = 'hello ';
$headers = 'From: info@mysite.com' . "
" .
   'Reply-To: info@mysite.com' . "
" .
   'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

and i also change  my php.ini (smtp name & sendmail_from )but its  not working in windows server.

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 !
New Server - PEAR Won't Send Mail
I have just set up a new Fedora server. All my scripts are running great but i cannot get pear to send emails for the life of me.

I am using the same script from my previous server and it does not work even though it give no errors and says it sends the mail. Here is the script. Is there anything else I need to do on the server to make sure it will send correctly? Code:

View Replies !
Mail() Php Function Not Working In Windows Server 2003
I tried the mail() php function and it ends up with error message. I tried different tests with port configuration and Smtp server, though it ended up in error.

Error: Code: Original - Code Warning: 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 fileseasyphp1-7wwwmailerman.php on line 19 Warning: 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 fileseasyphp1-7wwwmailerman.php on line 19.

View Replies !
Mail Script Wont Work On A Windows Server
Would anyone know why my mail script wont work on a windows server. I have tested the script on my own server (Linux) and all works fine but as soon as i put it on my clients server(Windows 2003) it stops sending the mail.

View Replies !
How To Send E-mail Using Post Server Sendmail.
Anyone know how to send e-mail using PHP, that I can be sure that every e-mail user will get it?

Now I'm using mail ( ) function and some people can't get this mails, because of security settings of their post system.

My PHP server is based on FreeBSD, and Apache. My post server is sendmail.

View Replies !
How To Send Mail Using Googlemail SMTP Server ?
how I can send mail through a php script, using my googlemail account..

View Replies !
Use Any Other Smtp Server And Port To Send My Mail
I cant send a simple mail from my pc. I dont know smtp server name and port of my ISP. Cant I use any other smtp server and port to send my mail. Wud u pls tell me the name as well as the port of such smtp server. What is the name n port of yahoo.

View Replies !
Enforce The Server To Accept The Mail In Its Inbox Rather Than To Send It To The Junk?
In one mail server the php mail function sends the mail to the junk.
Can we enforce the server to accept the mail in its inbox rather than to send
it to the junk?I found that hotmail sends the email to the junk folder most frequently
but gmail and yahoomail deliver it to the inbox.

View Replies !
My Hosting Company Uses Php Cdo 4 Mail Server? How I Send Email Using Feed.htm
When i enquire my hosting company about feedback.html  they said they are using smtp server is installed with php cdo,  how do i send my feedback.html form message to an email address.

View Replies !
SMTP Server - Create A Php Script Thazt Send An Mail
i'm trynig to create a php script thazt send an mail does someone know how to set the smtp server

smtpserver=smtp1 and it is remote server not on my machine.
Itried but i've got this[color=blue][color=green]
>>Failed to connect to mailserver at "localhost" port 25, verify your[/color][/color]
"SMTP" >>and "smtp_port" setting in php.ini or use ini_set()

View Replies !
Send Header Info To A Page, Retrieve Response And Send That As Header
I am sending a header to page.html from sender.php using fgets(). I am then trying to retrieve that page's response, and set that as a header in sender.php in order to set any cookies etc.... that page.html might want to set. Right now I am using the following code:

View Replies !
Send XML HTTP POST Request And To Manipulate The Response.
I looking for a way to either create an XML document and have it read by php OR create within a php file an XML document and send the request via HTTP POST, but also to recieve the request and be able to manipulate the data, at which I can access any XML Tag.

Someone told me that the XML Parser function can do this. If this is correct, it also requires Expat to be installed and complied. Well the thing is I tried that and I got a whold bunch of bareword errors. I'm running FreeBSD/Apache/unix system

View Replies !
Headers - Send The Correct Response Codes For My Pages.
I got headed down this road of server headers, and I believe that I'm doing everything right to send the correct response codes for my pages. I've created dynamic pages that, when the database content gets updated for a page, I'll execute a touch(myfile.php) on the appropriate php page. Then, in the php page I have this code

<?php
$filename = 'myfile.php'
$if_modified_since = preg_replace('/;.*$/', '', $HTTP_IF_MODIFIED_SINCE);
$mtime = filemtime($filename);
$gmdate_mod = gmdate('D, d M Y H:i:s', $mtime) . ' GMT'
if ($if_modified_since == $gmdate_mod) {
header("HTTP/1.0 304 Not Modified");
// added cache-control
header("Cache-Control: max-age header");
exit();
}
else {
header("Last-Modified: $gmdate_mod");
} ....................

View Replies !
Check For Server Response
I have a few websites and i am working on a little php script that will notify me by email if one of the websites is down.

Now i'm not so familiar with this aspect of php so can someone please give me a few pointers in the right direction?

View Replies !
Server Response Slowing Down
I have a private website created using HTML/PHP. Within this site, there is
a page that has a form (question.php), which is populated depending on the
question number that has been posted to it.

When the form is submitted, the data is posted back to the same page
(question.php), and the code within the page saves the posted data, and
displays the next question, and so it goes on...

While the page loads almost instantly for the first 15 or so questions, the
server response gets gradually slower, to the point where the page takes
about 30 secs to start loading after about 18 questions.

I'm trying to understand what may be causing the lag... It doesn't seem to
be the loading of the page that's taking the time, it's the response time
from the server before the page starts loading that seems to increase.

The page does use MySQL tables, but all are well indexed, and as I say, you
can load the page about 15 times, before any noticeable delay starts to
happen.

(I've put the complete site on 2 different servers - 1 on a shared hosting
account, and 1 on completely different managed server, and the same thing
happens on both servers!?).

View Replies !
SMTP Server Response
When I submitted an email address into the part of this script that you use when you forgot your password. I entered the address and submitted and got this Warning:

Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in C:Inetpubwwwroothttphomeclasses
otification.php on line 49

I believe Line 49 is: // echo "em h:" . $this->email_headers;

Here's part of the page code: Code:

}
/**
* send email
*
* @param string $to
* @param string $subject
* @param string $message
*/
function send_email($to,$subject,$message) {

//echo "em h:" . $this->email_headers;
$result = mail($to,$subject,$message,$this->email_headers);
if ($result == false ) { return false; } else { return true;}

}

View Replies !
SMTP Server Response: 554
Warning: mail(): SMTP server response: 554 <jan@DOMAIN_NAME.com>: Recipient address rejected: Relay access denied in e:domainsvvathq.co.ukuserhtdocs
ewdownload_form.php on line 58

first time i've ever encoutered such error when using mail() funtion in php..

did some research. found some threads here on phpbuilder and somewhere else regarding this.. but they all seem to be talking about ini settings, smtp, etc,etc.. complicated stuff. Code:

View Replies !
XML Response From A Server Into A Text File
I written the following code to write a XML response from a server into a text file...
I can't seem to pre-empt the Content Length of the response... How do I tell how much to read of the response to get it exact? BTW I checked the FAQ's and did a search but couldn't find the answer to my question PHP Code:

View Replies !
Echo Server Response Time?
is there a way I can display the speed at which a server returns any data? for example, I would to display: this server returned the result in : .... secs I was just wondering if this is possible.

View Replies !
Using CURL To Save Server Response
I am trying to use cURL to automatically fill in an insurance form and write the output to an external file.

The insurance form consists of multiple forms. The code is basically the same on every page. POSTFIELDS is the only variable I am changing.

At the moment I am copy and pasting the session_id to each form, before running it. What would be the best way to pass it between the forms automatically? ....

View Replies !
Simple User Authorization Mail Response
I have a user authorization section for a site and it worked fine for a while. The user would sign up and then the script would send an email to the administrator so they could approve the membership and then activate the account.

Like I said it worked great for a while then it just stopped sending the emails to the administrator.

View Replies !
SMTP Server Response: 503 5.5.2 Need Rcpt Command
I m getting this error message in my application. previously it wasnt there
 
Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in C:Program ......

View Replies !
SMTP Server Response: 550 5.7.1 Unable To Relay
does anyone know what this means? SMTP server response: 550 5.7.1 Unable to relay
trying to configure my smtp server.

View Replies !
PHP Socket_create , Problem With Response (proxy Server Creating)
I'm trying to write simple proxy server, I get header but I can't send a response, I'm trying to fix it for 3 days with no result. I tried to use socket_sendto() but there was an error (I think PHP BUG) .I don't have any more ideas how to solve it.

code: ....

View Replies !
Get The Mail Function To Send Mail After Processing My Forms Locally
I am using an Apple Mac Book Pro computer on which I am running MAMP (Macintosh, Apache, Mysql, PHP) I can not get the mail function to send mail after processing my forms locally. I checked the php.ini file to see what could be the problem and I believe I have it configured properly.

View Replies !
Mail Function :: Send Form In HTML Mail
I am trying to use the PHP mail function to repopulate the information that has been filled out on a form and send the form out in an html email the same way that it looked when the individual filled it out. The problem I am having is with the Radio buttons and repopulating them. Code:

View Replies !
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.

View Replies !
How To Send To Printer On Windows XP?
I've just written a script that processes a Postscript file before sending it to the printer. I'm doing this with a printer port redirection using Redmon to execute the PHP script with c:phpphp.exe -c MyScript.exe. The postscript comes in as STDIN to the script from the printer driver.

Everything is fine except one thing. I simply can't work out how to send the modified Postscript data to the printer! Any help, please?

I have a Windows XP machine with PHP and Apache, and a HP 5100 LaserJet printed (PCL and PS) on a JetDirect wireless server card.

This means that on the Windows command line I can do this:

lpr -S 192.168.1.4 -P HPLaserJet5100 filename

as well as print from within applications by the normal method.

However, I can't work out what PHP commands I should use to send a file, or a PHP string var (containing the entire Postscript data), to the printer! I can't pipe data in an lpr command, can I? I tried printer_open() printer_write(), etc, but that just made the printer print the Postscript as raw text without interpreting it! How do I communicate properly with the printer?

View Replies !
Passing A Value (eg Id) From A Apache Server To A Windows Server
I am trying to pass an Id from one server to another. The case is like this I have two scripts one in php and the other in asp. I am trying to combine the both together by passing an Id from php script to an asp script. The problems come on the client side because the information is on two different servers. Is there a way around this? Can this be accomplished?

View Replies !
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?

View Replies !
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.

View Replies !
Send Out The Most Basic E-mail Using PHP And The Mail() Function.
im trying to send out the most basic e-mail using PHP and the mail() function.
the problem i have is that it will always return true but the message is never received and im not sure if its even sent. heres my code....

      $email = "jonathangilmartin@yahoo.co.uk";
      $subject = "Subject!";
      $body = "whatever you want to email";
      $from = "From: Jon <john@beach.es>";
      $p5 = '-f john@beach.es';
if(mail($to,$subj,$mesg,$from,$p5)){
echo " sent ok ";
}
else {
echo " failed ";
}

I think the problem I have could be due to the server I am hosting the site on, but dont quote me on this as im not sure. The site is hosted on my university server, ive now graduated so I cannot ask the support team if any ports are blocked. Does anyone know a way of testing a servers ports, if this is even necessary of course !

can anyone explain the typical server requirements to send e-mail using PHP, i assume port 25 must be open and the server must accept SMTP. Forgive me for asking a dumb question but I take it that i cannot test the mail() function from my testing apache server installed on my local PC ?

Also you will have noticed that i have a yahoo e-mail address, would i have to make any changes to my account to get this working ?? its only a standard free e-mail account.

View Replies !
Mail() Code Doesn't Seem To Send Any Mail
mail($toemail, "Greetings card from $from", $message, "FROM:Website Name<noreply@ourdomain.com>") or die("MAIL NOT SENT");

This code doesn't seem to send any mail - any ideas? Also are there any more advanced features that can be added to validate if the email is sent or not?

View Replies !
Mail Function Send Mail And Attachement
i can send mail and attachement in php with "mail function "

$s = mail($to,$subject,$cont, $headers);

View Replies !
Using The Mail() Command To Send Out An E-mail Message.
I am using the mail() command to send out an e-mail message. But, I am getting different results between two different clients. I am curious if this is a PHP problem, or just a problem with the way the clients are interpreting the headers. Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved