Advertisement

07.02.2008 at 05:16AM PDT, ID: 23533227
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Sending emails from Web Form

Asked by MOTO4 in WebApplications, Macromedia Dreamweaver

Tags: , ,

Hello,

I have set up on an xp pro, Dreamweaver 8, installed apache,php & Mysql using xampp, all function ok so far. However now I am trying to follow the lesson 5 for newlands website by writing code to send mail and I am not having any look.
PHP code in training from source book is as follows
<?php
$to = "yourname@yourserver.com";
$subject = "This is the message subject";
$body = "This is the message body";
$headers = "From: yourname@yourserver.com\n";
mail($to,$subject,$body,$headers);
?>
$to was changed to myname@myisp also $headers
then mail($to, changed to smtp.myisp

Have tried editing the sendmail.ini & the php.ini to point to my normal email settings but this is the error I get
Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini.
Extract for ini
[sendmail]
; you must change mail.mydomain.com to your smtp server

smtp_server=smtp.myisp.co.uk
; if your smtp server requires authentication, modify the following two lines

auth_username="my account name"
auth_password="password"

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

pop3_server="pop3.myisp.co.uk"
pop3_username="my account name"
pop3_password="password"

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

;hostname=localhost

PHP.ini EXTRACT
[mail function]
; For Win32 only.
SMTP = smtp.myisp.co.uk
smtp_port = 25

; For Win32 only.
sendmail_from = me@myisp.co.uk

I would be very grateful if you would guide me through the process of what is set wrong

Thank you
Start Free Trial
[+][-]07.02.2008 at 05:24AM PDT, ID: 21915535

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: WebApplications, Macromedia Dreamweaver
Tags: Dreamweaver,xampp & php, Internet Explorer, Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
Sign Up Now!
Solution Provided By: logudotcom
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.02.2008 at 06:41AM PDT, ID: 21916225

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 09:04PM PDT, ID: 21922607

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.28.2008 at 06:10AM PDT, ID: 22102710

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628