Version: current

# Class Newsletter_Email

Email object for sending newsletters.

  Object
  ViewableData implements IteratorAggregate
  Email
  Newsletter_Email

Package: newsletter
Located at newsletter/code/Newsletter.php

## Methods summary

`public` | # `__construct( mixed $nlType )` Create a new email. Create a new email. #### Overrides `Email::__construct`
`public` | # `setTemplate( string $template )` Set template name (without *.ss extension). Set template name (without *.ss extension). #### Parameters $template string $template #### Overrides `Email::setTemplate`
`public` | # `UnsubscribeLink( )`

### Methods inherited from Email

`BaseURL()`, `Bcc()`, `Body()`, `Cc()`, `From()`, `IsEmail()`, `Subject()`, `To()`, `addCustomHeader()`, `attachFile()`, `attachFileFromString()`, `bcc_all_emails_to()`, `cc_all_emails_to()`, `debug()`, `getAdminEmail()`, `getTemplate()`, `is_valid_address()`, `mailer()`, `obfuscate()`, `parseVariables()`, `populateTemplate()`, `renderWith()`, `replyTo()`, `send()`, `sendPlain()`, `send_all_emails_to()`, `setAdminEmail()`, `setBcc()`, `setBody()`, `setBounceHandlerURL()`, `setCc()`, `setFrom()`, `setPlainBody()`, `setSubject()`, `setTo()`, `set_mailer()`, `templateData()`, `validEmailAddress()`

### Methods inherited from ViewableData

`ATT_val()`, `BaseHref()`, `CSSClasses()`, `ColumnBreak()`, `ColumnCalc()`, `ColumnNumber()`, `ColumnPad()`, `ColumnPos()`, `CurrentMember()`, `CurrentPage()`, `Debug()`, `Even()`, `EvenOdd()`, `First()`, `FirstLast()`, `HasPerm()`, `IsAjax()`, `JS_val()`, `Last()`, `Me()`, `Middle()`, `MiddleString()`, `Modulus()`, `MultipleOf()`, `Odd()`, `Pos()`, `RAW_val()`, `SQL_val()`, `ThemeDir()`, `ThemeName()`, `Top()`, `TotalItems()`, `XML_val()`, `__get()`, `__isset()`, `__set()`, `buildCastingCache()`, `cachedCall()`, `castingClass()`, `castingHelper()`, `castingHelperPair()`, `castingObjectCreator()`, `castingObjectCreatorPair()`, `customise()`, `defineMethods()`, `escapeTypeForField()`, `getField()`, `getIterator()`, `getSecurityID()`, `getXMLValues()`, `hasField()`, `hasValue()`, `i18nLocale()`, `iteratorProperties()`, `obj()`, `setCustomisedObj()`, `setField()`

### Methods inherited from Object

`__call()`, `__toString()`, `__wakeup()`, `addMethodsFrom()`, `addStaticVars()`, `addWrapperMethod()`, `add_extension()`, `add_static_var()`, `allMethodNames()`, `cacheToFile()`, `cacheToFileWithArgs()`, `clearCache()`, `combined_static()`, `create()`, `createMethod()`, `create_from_string()`, `exists()`, `extInstance()`, `extend()`, `getCustomClass()`, `getExtensionInstance()`, `getExtensionInstances()`, `get_extensions()`, `get_static()`, `hasExtension()`, `hasMethod()`, `has_extension()`, `invokeWithExtensions()`, `is_a()`, `loadCache()`, `parentClass()`, `parse_class_spec()`, `remove_extension()`, `sanitiseCachename()`, `saveCache()`, `set_stat()`, `set_static()`, `set_uninherited()`, `stat()`, `strong_create()`, `uninherited()`, `uninherited_static()`, `useCustomClass()`

### Magic methods summary

## Properties summary

`protected mixed` | $nlType | #

### Properties inherited from Email

`$admin_email_address`, `$attachments`, `$bcc`, `$bcc_all_emails_to`, `$body`, `$bounceHandlerURL`, `$cc`, `$cc_all_emails_to`, `$customHeaders`, `$from`, `$mailer`, `$parseVariables_done`, `$plaintext_body`, `$send_all_emails_to`, `$ss_template`, `$subject`, `$template_data`, `$to`

### Properties inherited from ViewableData

`$casting`, `$customisedObject`, `$default_cast`, `$failover`, `$iteratorPos`, `$iteratorTotalItems`

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -