Skip to content
Snippets Groups Projects
Commit 67a44315 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix into emailing

parent a0851ba9
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,8 @@ function showlogo()
*/
function get_server_name()
{
global $dolibarr_main_url_root;
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root));
$urlwithroot=$urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
//$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
......
......@@ -139,7 +139,7 @@ if (isset($_POST["boutonp"]) || isset($_POST["boutonp_x"]))
if (! empty($object->mailsonde))
{
include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
$cmailfile=new CMailFile("[".DOL_APPLICATION_TITLE."] ".$langs->trans("Poll").': '.$object->titre, $object->mail_admin, $conf->global->MAIN_MAIL_EMAIL_FROM, $nom." has filled a line.\nou can find your poll at the link:\n".getUrlSondage($numsondage));
$cmailfile=new CMailFile("[".MAIN_APPLICATION_TITLE."] ".$langs->trans("Poll").': '.$object->titre, $object->mail_admin, $conf->global->MAIN_MAIL_EMAIL_FROM, $nom." has filled a line.\nYou can find your poll at the link:\n".getUrlSondage($numsondage));
$result=$cmailfile->sendfile();
if ($result)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment