#LOCAL("DateError", 0) #WITH_ERROR(#FormError) #LOCAL("SubscribedAddresseesCount",#COUNT(#NewsletterCampaign.SubscribedAddressees))
#IF(#FormError)

{InputError}

{PleaseCorrectErrors} #IF(#FormErrors.Reason.OBJECT_EXISTS)
{ObjectExists} #ENDIF #IF(#FormErrors.Reason.DateInPast) #SET("DateError", 1)
{DateInPast} #ENDIF #IF(#FormErrors.Reason.TLEError)
{TLEError} #ENDIF #IF(#FormErrors.Reason.InvalidSender OR #FormErrors.Reason.TestMailError OR #IsNewsletterError(#Status))
{InvalidSenderError}
{InvalidSenderError2} #ENDIF
#ELSIF(#DEFINED(#INPUT.ChangeAction) AND #INPUT.ChangeAction EQ "SendTest")

{SendTestSent}

#ELSIF(#IsNewsletterError(#Status))

{InputError}

{PleaseCorrectErrors}
{InvalidSenderError}
#ENDIF #LOOP(#Shop.Languages) #ENDLOOP #IF(#SEND_SCHEDULED)

{NewsletterScheduled}

{NewsletterScheduledInfo}
{ShowNewsletterOverview}

#ENDIF #LOCAL("IsSent",#IsNewsletterSent(#Status)) #IF(#IsSent)

{NewsletterAlreadySent}

{NewsletterWasSentOn}: #SentDate[datetime]
#ELSE #IF(#CouponCampaign.ID)

{Notification}

{InsertCouponCode}

  • {InsertCouponCode1}
  • {InsertCouponCode2}

{SendCouponInfo}
  • {SendCouponInfo1}
  • {SendCouponInfo2}


#ENDIF #IF(#Shop.IsTrialShop)

{Notification}

{NewsletterDeactivatedForTrialShop}
#ENDIF #ENDIF
{Alias} {MandatoryStar}
{Subject} {MandatoryStar}
{Name} {MandatoryStar}
{Template}
#LOOP(#System.Child.PageTypes.Child.ShopNewsletter.Child.TemplateTypes.Child.NewsletterDraft.ChildObjects)

{Template}: #NameOrAlias

#InfoText

#NameOrAlias
#ENDLOOP
#IF(#IsHTML AND NOT #IsSent) #ENDIF
#IF(#IsHTML)
#LOCAL("DisableWYSIWYG",0) #IF(#IsSent) #SET("DisableWYSIWYG",1) #ENDIF #SNIPPET("INC-WYSIWYG", "Name,InputName,Value,InsertCompleteURL,Disabled,Head,Size", "NewsletterContent", "Content", #Content, 1,#DisableWYSIWYG,"{Text}","ExtraLarge") #ENDLOCAL
#IF(NOT #IsSent) #IF(#CouponCampaign.ID)

#ENDIF #ENDIF
#ELSE
#ENDIF
{TLEs} {CustomerTLEHelp}

#REM #ENDREM
{SenderName} {MandatoryStar}
{SenderEMail} {MandatoryStar} {DMARCWarning} {Example}: info@mywebsite.com
#REM #ENDREM
{ScheduleDate}
#IF(NOT #IsSent)
{TestEMail} #IF(#NewsletterCampaign.TestEMail AND #NewsletterCampaign.TestEMail NE " ") #NewsletterCampaign.TestEMail {ToChange} #ELSE {TestEMailNotSpecified} {ToChange} #ENDIF
#ENDIF
#REM #ENDREM
{SentDate} #IF(#SentDate)#SentDate[datetime]#ELSE {NotYetSent} #ENDIF
#IF(NOT #IsSent) #IF(#NewsletterCampaign.TestEMail AND #NewsletterCampaign.TestEMail NE " " AND #SenderEMail)
#ELSE
#ENDIF #ENDIF
#REM #ENDREM
#IF(#Shop.FeatureMaxValue.Coupon)
{CouponCampaign}
#ENDIF
#REM #ENDREM
#IF(NOT #IsSent) #ENDIF
#ENDLOCAL #ENDLOCAL #ENDWITH_ERROR #ENDLOCAL #IF(NOT #DELETE) #IF(#FUNCTION("FEATURED_MENU_COUNT", #Shop.Object, "RelatedTopic") > 0)

{RelatedTopics}

#ENDIF #ENDIF