Img not showing in email page source
# ask-stanley-ai
r
Img not showing in email page source
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the issue of images not showing in the email page source could be due to a few reasons: 1. The image is not set to be available without login. You can check this by going to the file in the file cabinet and ensuring that the "Available without Login" checkbox is checked. 2. The URL used to source the image might be incorrect. Sometimes, NetSuite templates replace special characters and break the link. You should check what is actually saved in the template. The URL should be pulled directly from the image in the file cabinet. 3. If you're using the
file.url
method, it might not give the full path. In this case, you would need to hardcode the URL. 4. There might be a bug in Marketing Email Templates with including images. With NetSuite's recent change to include the account ID in the NetSuite URL, you may need to update your Email Template to include updated File Cabinet URL references. The URL should be in the format:
https://<accountId>.<http://app.netsuite.com/core/media/media.nl?id=<imageid>&c=<accountId|app.netsuite.com/core/media/media.nl?id=<imageid>&c=<accountId>>
5. The email client settings might be blocking images. For example, in Outlook, there's a setting to block images. Here's a code snippet from the conversation that loads an email template:
Copy code
javascript
var email = file.load({
    id : //Template ID
}).getContents()
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852141738
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833364904
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813355744
Please provide your feedback on this answer.