#LOCAL("MessageSent", 0) #IF(#FormError AND #FormErrors.Form.ContactForm.ErrorCount) #LOOP(#FormErrors.Reasons) #IF(#Reason EQ "MailTypeNotActivated")

{InputError}

{MailTypeNotActivated}

#ELSIF(#Reason EQ "SendMailFailed")

{Notification}

{SEND_MAIL_FAILED}

#ELSIF(#Reason EQ "SentContactMessage") #SET("MessageSent", 1)

{SentContactMessage}

#LOCAL("Target", #Shop.Categories)#IF(#DEFINED(#Target)){GoToHomePage}#ENDIF#ENDLOCAL #ELSIF(#Reason EQ "SentContactMessageWithCopy") #SET("MessageSent", 1)

{SentContactMessageWithCopy}

#LOCAL("Target", #Shop.Categories)#IF(#DEFINED(#Target)){GoToHomePage}#ENDIF#ENDLOCAL #ENDIF #ENDLOOP #ENDIF #IF(#MessageSent NEQ 0) {SendRequest}

{YourRequest}
{Sender}#IF(NOT #CustomerName) {MandatoryStar}#ENDIF
#IF(#CustomerName) #CustomerName #ELSE #ENDIF
{Phone}
{PhoneInfo}
{Email}#IF(NOT #CustomerEMail) {MandatoryStar}#ENDIF
#IF(#CustomerEMail) #CustomerEMail #ELSE #ENDIF
#LOCAL("ErrorMessageSentContact", 0) #IF(#DEFINED(#ErrorMessage) AND (#ErrorMessage EQ "SentContactMessage" OR #ErrorMessage EQ "SentContactMessageWithCopy"))#SET("ErrorMessageSentContact", 1)#ENDIF
{Subject} {MandatoryStar}
{Message} {MandatoryStar}
#IF(#CustomerEMail AND #Session.User AND NOT(#Session.User.IsAnonymous))
{Copy}
#ENDIF #IF(#Shop.AcceptPrivacyPolicy)
#INCLUDE("INC-PrivacyPolicyNote")
#ENDIF #ENDLOCAL
#ENDIF #ENDLOCAL