My php code for sending email using php mailer is
$email=new PHPMailer();
$email->isSMTP();
$email->SMTPDebug = 0;
$email->SMTPAuth = true;
$email->SMTPSecure=$smtpsecure;
$email->Host=$host;
$email->Port=$port;
$email->isHTML(true);
$email->Username=$sender;
$email->Password=$password;
$email->setFrom($sender);
$email->addAddress($recver);
$email->addAttachment($filename);
$email->send();
in this I want to take all details from database like sender,receiver,host,port,securetype
I like to use different emails to send mails like gmail,yahoo,outlook etc,
so i need to fetch ths smtp configuration from database
I all the above code is not working by putting smtp configurations directly it working fine,but while fetching from database not working
</div>