Solved

PHP Mailer Error

Posted on 2008-10-14
5
353 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 500 total points
ID: 22715542
try same with port 587? does it work?

once you fix smtp your form should work fine.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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