Hallo,
Ik heb een (PHP)form en na het invullen krijgt de invuller een mailtje met daarin een bedanktekst. Zowel Engels als Nederlands, maar dit moet ook in het Japans. hoe doe ik dit? Ik vermoed dat het verstuurd moet worden als 'HTML message', maar hoe en waar voer ik deze 'html' message en waar voer ik de Japanse reply tekst dan in?
Bij voorbaat dank!
stukje code:
// If necesarry, send a message to the end-user as well.
if(CC_FB_AUTO_REPLY)
{
$form_user_msg = parseMessage('Geachte [Name],
Het formulier is met succes verzonden. Bedankt voor uw interesse. Wij nemen zo spoedig
mogelijk contact met u op.
The contact form has been sent succesfully. Thank you for your interest. We will contact you
as soon as possible.
Met vriendelijke groet,
Connect Japan
', $preferences);
$form_user_subject = parseMessage(CC_FB_AUTO_REPLY_SUBJECT, $preferences);
if(CC_FB_AUTO_REPLY_FORM_RESULTS)
{
$form_user_msg = CC_FB_AUTO_REPLY_POSITION == 'top' ?
"$form_user_msg\n\n$user_email_response" :
"$user_email_response\n\n$form_user_msg";
}
// Get all the headers without the From: portion
// so that we can do something fancy if the first
// attempt to send the message fails
$headers_without_from =
"Reply-To: $mail_to" . CC_FB_SENDMAIL_EOL .
"Return-Path: $mail_to" . CC_FB_SENDMAIL_EOL .
'Message-ID: <' . time() . "-$mail_to>" .
CC_FB_SENDMAIL_EOL .
'X-Mailer: PHP v' . phpversion() . CC_FB_SENDMAIL_EOL .
$headers;
mail($_POST['eM'],$form_user_subject,
"$form_user_msg$unreg",
"From: $mail_to" . CC_FB_SENDMAIL_EOL .
$headers_without_from) ||
mail($_POST['eM'],$form_user_subject,
"$form_user_msg$unreg",
"From: {$_SERVER['SERVER_NAME']} Form " .
"<forms@{$_SERVER['SERVER_NAME']}>" . CC_FB_SENDMAIL_EOL .
$headers_without_from);
}
}
1.883 views