<{* Template: user-welcome-mail.html Description: Welcome email sent when a customer account is created Theme: Delaware *}> <{* variables *}> <{assign var="company_name" value=$settings.company.name}> <{assign var="company_phone" value=$settings.company.phone}> <{assign var="company_email" value=$settings.company.email}> <{assign var="customer_name" value=$customer->getName()|escape}> <{assign var="customer_login_url" value=$customer->getTokenUrl()|escape}> <{capture name="email_subject"}> <{t x=$webshop->getName()|escape}>Welcome to {x}<{/t}> <{/capture}> <{capture name="email_content"}>

<{t x=$customer_name}>Hi {x}<{/t}>

<{t x=$webshop->getName()|escape}>Your account at {x} has been created.<{/t}>

<{if $password}>

<{t}>Your temporary password is:<{/t}>

<{$password|escape}>

<{t}>We recommend changing your password after your first login.<{/t}>

<{/if}>

<{t}>Log in to your account<{/t}>

<{t}>Please get in touch if you have questions, or if we can help in any way.<{/t}>

<{t}>Best regards<{/t}>

<{$company_name}>

<{/capture}> <{assign var="email_subject" value=$settings.emails.user_welcome_mail_subject|default:$smarty.capture.email_subject}> <{assign var="email_content" value=$settings.emails.user_welcome_mail_content|default:$smarty.capture.email_content}> <{* find & replace *}> <{assign var="find" value='||'|explode:"[company_phone]||[company_email]||[customer_name]||[customer_login_url]||[password]"}> <{assign var="repl" value='||'|explode:"$company_phone||$company_email||$customer_name||$customer_login_url||$password"}> <{* view *}> <{if $subject}> <{$email_subject|replace:$find:$repl}> <{else}> <{include file="mails/email.wrapper.start.html"}> <{$email_content|replace:$find:$repl}> <{include file="mails/email.wrapper.end.html"}> <{/if}>