| ... | ... |
@@ -50,7 +50,7 @@ function sendemail($to_name,$to_email,$from_name,$from_email,$subject,$message,$ |
| 50 | 50 |
$subject = descript(strip_tags($subject)); |
| 51 | 51 |
$message = descript($message); |
| 52 | 52 |
// End paranoia |
| 53 |
- |
|
| 53 |
+ |
|
| 54 | 54 |
// Try to determine the right $type setting |
| 55 | 55 |
if(strpos($message, "<br>") || strpos($message, "</p>") || strpos($message, "<br />") || strpos($message, "<br>") || strpos($message, "<a href")) $type = "html"; |
| 56 | 56 |
|
| ... | ... |
@@ -100,7 +100,7 @@ function sendemail($to_name,$to_email,$from_name,$from_email,$subject,$message,$ |
| 100 | 100 |
$mail->ErrorInfo; |
| 101 | 101 |
$mail->ClearAllRecipients(); |
| 102 | 102 |
$mail->ClearReplyTos(); |
| 103 |
- return false; |
|
| 103 |
+ return $mail->ErrorInfo; |
|
| 104 | 104 |
} else {
|
| 105 | 105 |
$mail->ClearAllRecipients(); |
| 106 | 106 |
$mail->ClearReplyTos(); |
| ... | ... |
@@ -4,7 +4,7 @@ |
| 4 | 4 |
|
| 5 | 5 |
|
| 6 | 6 |
// Defines the doc type. Most people will not need to change this. |
| 7 |
-define ("_DOCTYPE", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
|
|
| 7 |
+define ("_DOCTYPE", "<!doctype html>");
|
|
| 8 | 8 |
|
| 9 | 9 |
// Your alphabet list. If you need other than single characters be sure to enclose the character entity in quotes. For example: "Œ" |
| 10 | 10 |
define ("_OTHER", "Other");
|