• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Background image in css for email from component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Background image in css for email from component


  • Subject: Background image in css for email from component
  • From: Ken Anderson <email@hidden>
  • Date: Wed, 26 Jun 2013 11:06:31 -0400

Gang,

This is driving me nuts so hopefully someone has an easy answer.

In a component I'm using with ERMailDeliveryHTML I want to grab a background image for the email:

body
{
background-image:url(<webobject name="BackgroundURL"/>);
background-color:#ffffff;
}

BackgroundURL : WOString {
value = backgroundURL;
}

    public String backgroundURL() {
    return WOApplication.application().resourceManager().urlForResourceNamed("emailBackground.png", null, null, null);
    }



I've tried everything including using a method to build the URL by asking WOResourceManager for the URL for the resource.

If I put the image in a WOImage to try and steal the URL, this is what I get:

<img src="" width="800" height="600" />

even though I'm not using direct connect, which is confusing to me.

Is this just because I want to make this work in Development?

Thanks for any thoughts!  It was great to see many of you this past weekend and I hope to see you next year!

Ken


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Background image in css for email from component
      • From: James Cicenia <email@hidden>
  • Prev by Date: Re: WO + MQ
  • Next by Date: Re: Background image in css for email from component
  • Previous by thread: Re: WO + MQ
  • Next by thread: Re: Background image in css for email from component
  • Index(es):
    • Date
    • Thread