7
Quote:
Can you give me a little more information before I can help you on this? Is this an email that you are trying to send out or a PM?
Nevertheless I will give you some more information...
As you know Liaise is a module where you can create easily forms. You can set your own fields, required or not etc. etc.
If the user who entered or answered the fields pushes the send button, the admin (in my settings!) wil receive this form with entered answers. But, I want that the user, read person who submitted the form gets a replica/copy of that submitted form.
A guy named Matt got it working on his site and I contacted him. He nicely sended me his files and I installed it all. But unfortunately it didn't work out properly. So I digged into the code to see what needed to be changed to get it working. Some pieces I needed to left out to get it working properly.
And yes....All nessecary changes needed to be done within: include/form_execute.php
Prox line 279, the changes are taken place.......
$xoopsMailer->assign("MSG", implode("n", $msg));
//INSERT SHINE CONFIRMATION MAIL
$xoopsMailer->assign("MSG2", sprintf(_LIAISE_MSG_SUBJECT, $myts->stripSlashesGPC($form->getVar('form_title'))));
// END INSERT SHINE CONFIRMATION MAIL
if( count($err) < 1 ){
if( !$xoopsMailer->send(true) ){
$err[] = $xoopsMailer->getErrors();
}
}
//INSERT SHINE CONFIRMATION MAIL
if( empty($err) && $xoopsMailer->isMail && isset($reply_mail) ){
$xoopsMailer->multimailer->ClearReplyTos();
$xoopsMailer->multimailer->ClearAttachments();
//$formTitle=getVar('form_title');
//$body=$formTitle;
$body=" Dit is een automatische verzonden bevestigings Email naar aanleiding van het door u ingestuurde formulier op Kunstpodium.com. Gelieve niet op deze Email te antwoorden.nU hebt onderstaand formulier ingestuurd.nn";
$formTitle=sprintf(_LIAISE_MSG_SUBJECT, $myts->stripSlashesGPC($form->getVar('form_title')));
$body.="Form: ";
$body.=$formTitle;
//$body.="";
$body.=implode("",$msg);
$body.=" nnIndien u een geldig Emailadres hebt ingevuld zult u binnen 14 dagen een antwoord ontvangen.n Met vriendelijke groetnn Administratorn www.kunstpodium.comn";
//$body .= $myts;
$xoopsMailer->sendMail($reply_mail, "Kunstpodium bevestigings Email", $body, $xoopsMailer->headers);
}
// END INSERT SHINE CONFIRMATION MAIL
As you can see the start text within the replica/copy to sender email is hardcoded (I prefer to realise it with a separate template, but don't know enough how to realise this. Therefore.....hardcoded.
As I understand your oneline code, will solve the
[bold] issue? And I can leave my added piece of code in this line also?:
$msg[$ele_id] = "SLASHn ".$myts->stripSlashesGPC($ele_caption).": ";
Last and least......
Quote:What this will do is send out your emails as html rather than just plain text
What happens if the person has the setting no HTML email within his outlook, but just plain text?
How does the replica/copy email looks if he/she opens it?
Catz, in advance,.......thanks for your kind help!
Grtz., Shine
Happyieieieyyeeeaa,.........2008