public function __construct($content, $subject, $type, $link = null, $image = null)
{
//
- $this->content = preg_replace('/<img/', '<img width="600"', $content);
$this->subject = $subject;
$this->link = $link;
$this->image = $image;
+
$this->emailView = Arr::get($this->viewMap, $type ?? 0);
+
+ $this->content = $this->emailView === 'batch-pdf' ?
+ (Html2Markdown::convert($content)) :
+ preg_replace('/<img/', '<img width="600"', $content);
+
if($this->emailView === null) {
throw new \InvalidArgumentException('Invalid email type !');
}