Displaying 5 results from an estimated 5 matches for "from_email".
2006 Jul 14
7
Form validation - keepin correct fields displayed on refresh
All,
I''m finally doing my first real form in Rails - the model object that
I''m entering information for has 8 validations so far.
If I type in good values for all the fields but one, I get the pretty
validation, and the nice field highlighting, but all of the fields are
cleared, forcing me to retype all of that info. That is a big drag.
Is there a standard way to get the
2006 Jul 12
1
validate method not getting called?
Here''s a snippet of my model:
validates_presence_of :from_name, :from_email, :reply_name,
:reply_email, :eSubject
protected
def validate
puts "Calling: #{target_list_ids}"
errors.add_to_base("You must choose at least one target list for
this job") if self.target_list_ids.nil?
end
It appears that the validates_presence_of are being call...
2006 May 05
1
ActionMailer with attachments, body is blank
...9;'t recognize "@mycontent" (the variable
holding the text of my mailer). However, if @ma is empty, it sees
@mycontent just fine. Suggestions?
Here is my mailer class:
class MarketingMailer < ActionMailer::Base
def standard_mailer
(_firstname,recipient,_subject,from_name,from_email,_content,_mailer_id,
_recipient_id,sent_at = Time.now)
@mailer = Mailer.find(_mailer_id)
@ma = @mailer.mailerattachments
@subject = _subject
@recipients = recipient
@from = from_name + " <" + from_email + ">"
@sent_on = sent_at
@heade...
2008 Jan 18
0
ApnaCircle Invite for Online Social and Professional Networking Site
...462&campaignid=8639
7. http://myMailGenie.com/v3/editprofile.aspx?cclientid=2462&cemailid=r-help at stat.math.ethz.ch
8. http://myMailGenie.com/v3/unsubscribe.aspx?email_id=r-help at stat.math.ethz.ch&client_id=2462&rep_id=16174
9. http://myMailGenie.com/v3/tell_friend.aspx?from_email=r-help at stat.math.ethz.ch&client_id=2462&signOff_id=noreply at apnacircle.com&campaign_id=8639&datesent=1/18/2008&rep_id=16174&affiliatename=myMailGenie.com
10. file://localhost/tmp/tmpkwC75z.html
11. http://myMailGenie.com/
2006 Jul 05
1
TMail + Receing mail and extract attachments
...dy.base64_decode
filename = part.disposition_param(''filename'')
puts part_type
puts "----- Separator -----"
puts part_body
puts "----- Separator ---"
puts filename
end
end
#~ #ticket = Ticket.new
#~ #ticket.from_email = email.from[0]
email.attachments.each do |attachment|
puts attachment
end
#mail.base64_decode
#new.receive(mail)
end
end
>>
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/vendor/tmail
/stringio.rb:125:in `gets'': undefined method `index'' for...