Jump to content

jane

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by jane

  1. Thank you very much. Today, strange enough. All the php mail() went through with the original free SMTP server. I did not change anything, except once in a while Mcafee did some automatic upgrades.The only exception is in <?php$to="someone@yahoo.com";$subject=$_REQUEST["subject"];$email=$_REQUEST["email"];$message=$_REQUEST["message"];mail($to, $subject, $message, "From: $email");echo "Mail sent";?>$to and $email cannot be exactly the same email address, like both are someone@yahoo.com. If both are the same, the mail still went through without error, just I cannot receive the self-mailed mail in my yahoo account. If one is a@yahoo.com, another is b@yahoo.com or b@comcast.net, the mail would go through, and I could get all the mails in my yahoo account.

  2. The technical support at Softstack asked me to try their First SMTP Server. I tried but still got the same error. I open the cmd window,typed "telnet localhost 25", it came out: "220 Welcome to ESMTP Server".typed "mail from sb@yahoo.com, came out "250 Ok"typed "rcpt to sb@yahoo.com, came out "250 Ok"typed "data", came out "354 Enter mail, end with "." on a line by itself"typed "subject: test email This is just a test." came out "250 Ok"typed "quit", came out "221 Closing transmission channel Connection to host lost"The mail() did work previously after I installed SMTP server, now it does not work. Between then and now, I upgraded the McaFee Security Center, upgrade IE from 6 to 7 beta. But I am now only using firefox browser since it's faster. I doubt the problem might come from Mcafee. But how to resolve it? Thank you very much.

  3. I tried your suggestion, still failed with the same error message. The mail() did work after I installed SMTP free server. Now it does not work. I forgot what I have done between then and now. I just sent an email reporting my problem to the softstack link you gave me. Hope the problem would be resolved soon.Thank you very much.

    OK. Try opening the Free SMTP Server application, and in the status bar on the bottom you should see it say "Waiting for connections on port #25". When you see that, try your PHP application and see if it still fails.If you're still having problems, you can try contacting softstack here:http://www.softstack.com/contact.htmlTell them about the issues you are having and what you've already tried. Maybe copy and paste the address of this thread. They might have some more information, and it looks like they do offer technical support for this product.You said that it was working before, and now it doesn't work. What changed between then and now?
  4. Thanks.In cmd, after I typed "telnet localhost 25", I got "220 localhost". So the computer accepts connection at port 25. In php.ini, I searched SMTP, and found the line as "SMTP = localhost".

  5. I used the following code to get email from an html form.<?php$to="someone@yahoo.com";$subject=$_REQUEST["subject"];$email=$_REQUEST["email"];$message=$_REQUEST["message"];mail($to, $subject, $message, "From: $email");echo "Mail sent";?>It came out the 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 E:\Documents and Settings\My Documents\My Web Pages\phpfile.php on line 160I came across this problem before. Then I downloaded a free SMTP server from www.softstack.com, and the mail went through. Now, I came up with the same problem again. I turned on the free SMTP, it still did not work. I don't have a commercial web server, all my files are under localhost. I downloaded the php, apache, and mysql from wamp5. So do I need to check some .ini file for this? Or is it better to use asp for sending email?Thank you very much.

  6. The %20 does not work. Yes. If I put the image file to the same directory as my html file under my virtual host, the image is shown properly. Now I am clear!!! When I opened the html file through open->file->browse, I can see the image even if it's just <img src="E:\directory\file.html">. That's why I always saw the picture when I first learned html. Then I began to learn php. I installed php, apache, mysql on my machine. Today, I wanted to incorporate my previous html file with php to make it more dynamic. But this time, I opened the file through http:\\localhost\file.html, but I could not see the image.So when I opened the http:\\localhost\file.html, I actually accessed it through online, although only I can access the file. So in this way, I cannot use <img src="E:\directory\file.html">. Instead, I should upload the file to the directory under my virtual host.Thank you so much for your help.

  7. The image file IMG_1575.jpg is shown properly if I include it using <img src="IMG_1575.jpg" width="300 height="200" />. But if I include it with <img src="E:\My Documents\My Pictures\IMG_1575.JPG" width="300" height="200" />, the image is not shown in the browser. It's blank. How to resolve this? How to include a file on my local computer with direct path?Any input is GREATLY appreciated.

×
×
  • Create New...