Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29980

Images aren't displaying when being sent through Amazon SES in a template created with grapesjs

$
0
0

My team and I built a web application that sends emails among other tasks. We are implementing a framework called grapesjs to build templates which are then emailed to recipients in the body of an email. The templates are being sent perfectly. They look great. EXCEPT the images are missing. In some cases, they are missing and others, the hash is present instead of the picture itself. Why aren't my images displaying? I've tested this in Gmail. When I click "show original", download it, and open it in Outlook, it displays the image(s).

See above

sendEmail() {
            this.dialog.open(DialogOverviewExampleDialog, {
        width: '250px'
    });
    let candidateEmails = (<HTMLInputElement>document.getElementById("emailList")).value
    let subject = this.sendForm.get('subjectForm').value
    console.log(this.selectedTemplateName)
    this.templateService.getTemplate(this.selectedTemplateName).subscribe((templateData : any) => {
        console.log(templateData.Body)
        console.log(templateData.Body.data)
        let body = importTemplate(templateData.Body.data).toString();
        console.log(body)
        this.candidateService.sendEmailWithoutPositions(candidateEmails, subject, body).subscribe(() => {
            this.router.navigate(['/send_email']);
        });
    })
}

No error messages, no image(s)


Viewing all articles
Browse latest Browse all 29980

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>