Form: ist whatever email you want it to be... the from field is the senders
address. So it could be you address or
no-reply-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org or similar. But
it would be good advise if you ensure ownership over the used domain or at
least the used email address.
--
send by Samsung Galaxy Tab with Overcome Mod
Am 09.10.2011 10:22 schrieb "gmsfirst gmsfirst"
<gmsfirst-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> I have installed sendmail .
>
> I have read this =>
> http://guides.rubyonrails.org/action_mailer_basics.html
>
> I need to do =>
>
> rails generate mailer UserMailer
>
> app/mailers/user_mailer.rb =>
>
> class UserMailer < ActionMailer::Base
> default :from =>
"notifications-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org"
>
> def welcome_email(user)
> @user = user
> @url = "http://example.com/login"
> mail(:to => user.email, :subject => "Welcome to My Awesome
Site")
> end
> end
>
> What will be the email address of :from => .. ?
>
> I need to send email to @yahoo.com, @gmail.com and in any domain like
> abc-ZinrceJXdQlUhl+GOn+dtA@public.gmane.org
>
> How can i do this ?
>
> It will be helpful if someone can reply with explaination ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.