• 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
Re: Background image in css for email from component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Background image in css for email from component


  • Subject: Re: Background image in css for email from component
  • From: Ken Anderson <email@hidden>
  • Date: Wed, 26 Jun 2013 16:50:29 -0400

So, this code:

String str = WOApplication.application().resourceManager().urlForResourceNamed("emailBackground.png", null, null, null);
String absoluteUrl = ERXResourceManager._completeURLForResource(str, null, this.context());

returns this:

http://127.0.0.1/WebObjects/FitnotixService.woa/WebServerResources/emailBackground.png

but that URL doesn't work - this one does:

http://127.0.0.1/WebObjects/FitnotixService.woa/Contents/WebServerResources/emailBackground.png

sigh...


On Jun 26, 2013, at 4:46 PM, Johnny Miller <email@hidden> wrote:

And you are using urlForResourceNamed?

On Jun 26, 2013, at 10:40 AM, Ken Anderson <email@hidden> wrote:

The host isn't the problem.  The URL I'm getting back doesn't have "Contents" in the middle…

On Jun 26, 2013, at 4:18 PM, Johnny Miller <email@hidden> wrote:

I would have a property like:

myhost=http://127.0.0.1/

and then in my properties.deployment I would have

myhost=http://www.mydomain.com/

And then prepend that to my url.

HTH,

Johnny


On Jun 26, 2013, at 10:04 AM, Ken Anderson <email@hidden> wrote:

Thanks Johnny…  but until I can find resources I'm still stuck…

But I will certainly try a different approach.

Ken


On Jun 26, 2013, at 3:55 PM, Johnny Miller <email@hidden> wrote:

Also: http://www.campaignmonitor.com/css/

What a surprise?  Outlook doesn't support background images!  IDK if that influences your design though.

But if it were me I would try using an absolutely positioned image and put your content in a z-index above it.

On Jun 26, 2013, at 9:35 AM, Ken Anderson <email@hidden> wrote:

Well, Apple Mail does, and so do the other clients I've tested.

Any idea why my resources are so screwy?


On Jun 26, 2013, at 3:34 PM, Johnny Miller <email@hidden> wrote:

Hi Ken,

I believe most mail clients don't support CSS background images.

Aloha,
Mr. Johnny Miller
Web Development Manager
Kahalawai Media Company
Lahaina, HI 96761
tel: (808) 661-7962 | mobile: (808) 283-0791
website | e-mail
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
References: 
 >Background image in css for email from component (From: Ken Anderson <email@hidden>)
 >Re: Background image in css for email from component (From: James Cicenia <email@hidden>)
 >Re: Background image in css for email from component (From: Fabian Peters <email@hidden>)
 >Re: Background image in css for email from component (From: email@hidden)
 >Re: Background image in css for email from component (From: Ken Anderson <email@hidden>)
 >Re: Background image in css for email from component (From: Johnny Miller <email@hidden>)
 >Re: Background image in css for email from component (From: Ken Anderson <email@hidden>)
 >Re: Background image in css for email from component (From: Johnny Miller <email@hidden>)
 >Re: Background image in css for email from component (From: Ken Anderson <email@hidden>)
 >Re: Background image in css for email from component (From: Johnny Miller <email@hidden>)
 >Re: Background image in css for email from component (From: Ken Anderson <email@hidden>)
 >Re: Background image in css for email from component (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: Handling of "value" binding on ERXSubmitButton changed
  • Next by Date: Maven
  • Previous by thread: Re: Background image in css for email from component
  • Next by thread: Re: Background image in css for email from component
  • Index(es):
    • Date
    • Thread