[svn r12053] include mail.conf.php here to avoid using this library without the mail configuration variables

skala
Eric Marguin 18 years ago
parent 713a929ddd
commit 32fef54069
  1. 2
      main/inc/lib/mail.lib.inc.php

@ -1,5 +1,6 @@
<?php
require(api_get_path(INCLUDE_PATH).'lib/phpmailer/class.phpmailer.php');
require_once(api_get_path(INCLUDE_PATH).'/conf/mail.conf.php');
//regular expression to test for valid email address
$regexp = "^[0-9a-z_\.-]+@(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z][0-9a-z-]*[0-9a-z]\.)+[a-z]{2,3})$";
@ -59,7 +60,6 @@ function api_mail($recipient_name, $recipient_email, $subject, $message, $sender
//$mail->ConfirmReadingTo = $platform_email['SMTP_FROM_EMAIL']; //Disposition-Notification
}
if ($sender_name!="")
{
$mail->FromName = $sender_name;

Loading…
Cancel
Save