Welcome Guest | Login

Sender email address in emails sent from my rails app

When I send emails from my rails app, using smtp, they come from my server's domain (mydomain@owen.hostingrials.com). I'd like them to come from my own domain (me@mydomain.com). How do I configure that?

Thanks,

Jason

2007-10-12 01:50 PM

Hi Jason, are you using your @from = 'Your name <address@yourdomain.com>' ?

Also, I'd suggest using sendmail

(in environment.rb)

ActionMailer::Base.delivery_method = :sendmail  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.raise_delivery_errors = true  
ActionMailer::Base.default_charset = "utf-8"

2007-10-12 02:25 PM

I am. On further inspection, it works fine when when I send email from my application to a proper email client.  But most of my email's are sent to cell phones using carrier's email-to-sms translations. I send the email to 4151234567@text.att.net, for example.

In that case it picks the sender's name from a different field in the raw email. Possibly the Return-Path. I'll check that out.

Sorry, this may not have been as good of a general forum post as I first thought,

Jason

2007-10-12 03:27 PM

According to this submitted patch the return-path should be able to be set in sendmail OK and the patch for SMTP will likely be coming soon (you can see the code and tweak it yourself if you're in a hurry).

2007-10-12 04:44 PM

I've never frozen my rails. Should I be seeing the behavior of this patch yet?  So far I have not been able to set my return-path,

Jason

2007-10-13 07:42 PM

I have just updated rails and the related packages on the server. Does this help ?

2007-10-13 09:36 PM

You'll need to freeze rails -- just freeze in EDGE

rake rails:freeze:edge

or you can freeze in any version

rake rails:freeze:edge TAG=rel_1-2-5

2007-10-14 06:02 AM

And - of course - you'll need to change the RAILS_GEM_VERSION line in your environment.rb

2007-10-14 06:03 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!