Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PHP Mailer Error

Posted on 2008-10-14
5
Medium Priority
?
373 Views
Last Modified: 2013-12-13
I wrote this snippit a out a year ago, and it worked fine.

Revisited this and now it doesn't work. I am getting the following error in my log:

[2008/07/09 02:43:29] [10.0.0.195] Ed Sendmail problem. Language string failed to load: from_failedinfo@drayerpt.com

Any insight?
else{
 $user_email=$row["email"];
 $pw=$row["password"];
 
 logToFile("drayer.log",$username." forgot password. Sent to: ".$user_email);
 
 $mail = new PHPMailer();
 $mail->smtpport = '25';
 $mail->From = "info@drayerpt.com";
 $mail->FromName = "Information";
 $mail->AddAddress($user_email);
 $mail->AddBCC("edmiller@drayerpt.com");
 $mail->AddReplyTo("info@drayerpt.com","Information");
 
 $mail->WordWrap = 50;
 $mail->Subject = "Drayer Physical Therapy Conference password";
 $mail->Body = "Your password is '".$pw."'.\nPlease contact edmiller@drayerpt.com if you are still having issues.";
 
 if(!$mail->Send()){
  logToFile("drayer.log",$username." Sendmail problem. " . $mail->ErrorInfo);
  echo "Message not sent!";
  exit;
 }

Open in new window

0
Comment
Question by:Neil2526
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:codezp
ID: 22715319
Do you have SMTP server installed? to use mail() you need smtp server.

Make sure info@drayerpt.com exists otherwise it will reject it.
0
 

Author Comment

by:Neil2526
ID: 22715380
info@drayerpt.com was not working, so i changed it to my valid email address.

i am still getting that error.

0
 
LVL 4

Expert Comment

by:codezp
ID: 22715446
you have smtp server setup?

try doing telnet smtp.server  25

see if that connects
0
 

Author Comment

by:Neil2526
ID: 22715527
doesn't look like it's connecting:

[root@localhost drayer]# telnet smtp.drayerconference 25
smtp.drayerconference/25: Temporary failure in name resolution


This is odd, I mail was workingfine last year.
0
 
LVL 4

Accepted Solution

by:
codezp earned 1500 total points
ID: 22715542
try same with port 587? does it work?

once you fix smtp your form should work fine.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question