• Inv3rno
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

Hi everyone,

I have a problem to sucessfully send a visualforce email within an image as background.

Everything is ok with other image in the template, using the correct syntax:

 

<apex:image id="Logo" value="https://c.cs16.content.force.com/servlet/servlet.ImageServer?id=015f0000000ADiz&oid=00Df0000001PSvt" height="120" width="120"/>

However there is no way to use that syntax into an attribute, neither into the css part.
Here what I am trying:

 

body
{
background-image:url('<apex:image id="Logo" value="https://c.cs16.content.force.com/servlet/servlet.ImageServer?id=015f0000000ADiz&oid=00Df0000001PSvt" height="120" width="120"/>');
background-repeat:no-repeat;
background-position:right top;
}

 

I have tryed with a static img, like:

 

                background-image:url('{!URLFOR($Resource.Logo)}');

it works fine on the preview but when I send the email the image is not displayed.

 

Any suggestion ?

Thanks

 

 

Hi guys,

there is any way to promote a standard field to mandatory ??

Thanks

Hi everyone,

I have a problem to sucessfully send a visualforce email within an image as background.

Everything is ok with other image in the template, using the correct syntax:

 

<apex:image id="Logo" value="https://c.cs16.content.force.com/servlet/servlet.ImageServer?id=015f0000000ADiz&oid=00Df0000001PSvt" height="120" width="120"/>

However there is no way to use that syntax into an attribute, neither into the css part.
Here what I am trying:

 

body
{
background-image:url('<apex:image id="Logo" value="https://c.cs16.content.force.com/servlet/servlet.ImageServer?id=015f0000000ADiz&oid=00Df0000001PSvt" height="120" width="120"/>');
background-repeat:no-repeat;
background-position:right top;
}

 

I have tryed with a static img, like:

 

                background-image:url('{!URLFOR($Resource.Logo)}');

it works fine on the preview but when I send the email the image is not displayed.

 

Any suggestion ?

Thanks

 

 

I am using a static resource which is our company's logo in a visualforce email.  I get the image to show up when previewing from the app but not when the email is delivered.  I noticed another post that indicates you may need to construct the url for the image in a different way (like in a controller class).  Any ideas?

 

<apex:image value="{!URLFOR($Resource.ZayoLogo)}"/>

 

 

  • December 14, 2009
  • Like
  • 0