#IF(#DEFINED(#AcceptedOn))
{AppointmentConfirmation}
#IF(#SEND_MAIL_FAILED)
{Notification}
{SEND_MAIL_FAILED}
#ELSIF(#DEFINED(#Address) AND #Address.EMail AND #Shop.Child.MailTypes.Child.AppointmentAccepted.IsActive)
{AppointmentConfirmationMailSent}
#ENDIF
#ELSE
{AppointmentReservation}
#IF(#SEND_MAIL_FAILED)
{Notification}
{SEND_MAIL_FAILED}
#ELSIF(#DEFINED(#Address) AND #Address.EMail AND #Shop.Child.MailTypes.Child.AppointmentAccepted.IsActive)
{AppointmentReservationMailSent}
#ENDIF
#IF(#Shop.AcceptWithReservationText)
#Shop.AcceptWithReservationText[0]
#ELSE
{Notification}
{AcceptWithReservationText}
#ENDIF
#ENDIF