Search

Sara Trice

Just a programmin', bellydancin', cake bakin' kinda girl

Category

Uncategorized

Copying all Devise emails to Salesforce

I’ve had the “joy” of working with Salesforce.com in the last year or so. When users receive emails from my application, the sales department wants to know about it, including anything that Devise sends (account confirmations, password resets, etc.).

Setting this up is fairly simple. I’m using Devise 3.1.1 in this instance.

First, create a custom mailer:

rails generate mailer CustomDeviseMailer

Then, to config/initializers/devise.rb, add this line:

config.mailer = "CustomUserMailer"

Finally, change app/mailers/custom_devise_mailer.rb to look like this:

class CustomDeviseMailer < Devise::Mailer
  def headers_for(action, opts)
    if Rails.env.production?
      salesforce_bcc_email = "(your Email to Salesforce address)"
    else
      salesforce_bcc_email = "salesforce_bcc_email@mailinator.com"
    end

    super.merge!({bcc: salesforce_bcc_email})
  end
end

If you need to know where your Salesforce BCC email is:

  1. login to Salesforce
  2. In the top bar click your name, choose “Setup” from the menu
  3. Under “Personal Setup” in the left sidebar, click “Email”
  4. Under the email menu you just expanded, click “My Email to Salesforce”
  5. On that page it’s highlighted with a bright yellow box

Kudos to this StackOverflow question for getting me all fixed up in Devise 3.

Advertisements

Women’s Olympic Foil 2012

Congrats to Italy for sweeping Women’s Foil! And congrats to Lee Keifer for making it to 5th – further than any woman from the US has since 1956!

Standings: http://en.wikipedia.org/wiki/Fencing_at_the_2012_Summer_Olympics_%E2%80%93_Women’s_foil

Yes, I’m schilling, what of it?

Ok, technically I’m not schilling because I’m not even pretending I’m not involved.

Luke and I are paying for the bulk of our wedding costs… and we’re coming up a bit short. If you’re interested in buying any of Luke’s music, now would be the helpful time to do it. “WHAT A RIPOFF! VOLUME 2”, an odds-and-ends compilation was just released, as well as the “GREATEST HITS VOLUME 1” 2-CD. Also, he’s always looking for more work as a caricature artist & cartoonist – he’s for hire at parties as well as for individual caricatures/cartoons for gifts, as well as promo art.

I’m pretty much booked for website work for now, but I’ll be available after the wedding for more freelance.

Ready for Zombies.

Remember my last post about how I was starting an herb garden, about two months ago, and I wasn’t expecting anything to actually grow?

my-herbs-2010-05-21-23-44-50

 

Stuff grew! The big foof of green you see on the left is parsley; I had to separate it out from the others so they didn’t hog all the sun. The rest in the tray is oregano, basil, tarragon, and catnip. The plant in the soda bottle bottom behind the parsley is a marigold I got from the UU church’s earth day service. Thinking tomorrow will be a good day for planting outside.

1,2,3, There are zombies on the lawn…

Seedling starter tray: $4
Seedling soil: $4
Seeds: $6

Being prepared for zombies on my lawn: Priceless.

Well, here’s yet again another attempt at me starting an herb garden. Difference this time is that I actually have land to plant on. Yay, home ownership! I’ve got parsley, catnip, oregano, thyme, tarragon, and basil. Any tips from you green thumbs out there? ‘Cause generally anything I plant dies pretty horribly. Black thumbs run in my family. I know I need to keep them watered, but not too watered or I’ll get root rot. When should I water them? Every other day? Every second day? I have them at a west-facing window so they’ll get some sunlight filtered through the pine tree back there every day.

Any useful advice appreciated!

Ebay auction for MarsCon Dementia Track

This is my 3rd re-listing of this item. I’ve dropped the starting bid to $35. If this doesn’t work, I give up.

I’m auctioning off a white 1000 thread count king-size sheet set, proceeds to go to the MarsCon Dementia Track Fund Raiser. If you are local to Chicago I can deliver. 🙂
http://bid-url.com/h06fdu

Recycling Christmas Trees in Villa Park, Illinois

This isn’t posted anywhere on the web so I thought I’d toss it up on here:

If you live in Villa Park, IL and want to recycle your christmas tree, just leave it out on the curb anytime during the first 2 weeks of January (bare – not in a bag). Waste Management will pick it up and take it to be recycled.

I wish

…for an end to world hunger, but that’s a long-term goal.

If you were wondering, here’s my Amazon Wish List for the short term.
My Amazon.com Wish List

(And I like used books just fine.)

Wow.

I’m blown away. President Obama. My pessimism wouldn’t let me believe it until McCain conceded.

Not only that, but we’re well on our way to a Democratic Senate and House. I have to admit that makes me a bit nervous. We’re going to have to still be vigilant, as citizens, to make sure the laws we pass are what the American people need, and not what the party needs to stay in power. Remember what absolute power does, kids.

Also, most of the states were won by Obama by 10-20%-ish. That means that right now, there’s a lot of Republicans out there that have been terrified by this campaign, and they’re still wide-eyed and hair-triggered now. We have a lot of work to do to make sure this country isn’t torn apart by fear.

McCain gave his eloquent and heartfelt concession speech and it was the John McCain I respected in the past. I didn’t respect his campaign. It was dirty and divisive, and I don’t think he was steering the ship. Now, he can be Senator McCain, a dedicated Senator and advisor like he has proven himself to be, without the millstone of the GOP around his neck. Be mavericky, Mr. McCain. I can’t wait.

I can’t say I’m not pleased as punch that useless woman isn’t going to be in Washington. Go back to Alaska, Mrs. Palin, and stay there. And while you’re there, try and do some good, or at least, don’t make it any worse.

I know I still sound like a pessimist. But I really am surprised by the American people, by the system, that it is not truly corrupted, it is not decrepit, it is not lost. Maybe, just maybe, we can.

Create a free website or blog at WordPress.com.

Up ↑