public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Switched back to proper email domain for return addresses
Michael Hartl (author)
Tue May 13 11:21:28 -0700 2008
commit  ab2d05492b97caac5d9032338ac01bc5b1ff36de
tree    c38e7af1faf55f037bff5e7be5172328b3c5908d
parent  292658c0d3ece68ff48ebd51614d32d1facadeaf
...
10
11
12
13
 
14
15
16
17
18
19
20
 
21
22
23
24
25
26
27
 
28
29
30
...
34
35
36
37
 
38
39
40
...
45
46
47
48
 
49
50
51
...
55
56
57
58
 
59
60
61
...
10
11
12
 
13
14
15
16
17
18
19
 
20
21
22
23
24
25
26
 
27
28
29
30
...
34
35
36
 
37
38
39
40
...
45
46
47
 
48
49
50
51
...
55
56
57
 
58
59
60
61
0
@@ -10,21 +10,21 @@
0
   end
0
   
0
   def password_reminder(person)
0
- from "Password reminder <password-reminder@#{server}>"
0
+ from "Password reminder <password-reminder@#{domain}>"
0
     recipients person.email
0
     subject formatted_subject("Password reminder")
0
     body "domain" => server, "person" => person
0
   end
0
   
0
   def message_notification(message)
0
- from "Message notification <message@#{server}>"
0
+ from "Message notification <message@#{domain}>"
0
     recipients message.recipient.email
0
     subject formatted_subject("New message")
0
     body "domain" => server, "message" => message
0
   end
0
   
0
   def connection_request(connection)
0
- from "Contact request <connection@#{server}>"
0
+ from "Contact request <connection@#{domain}>"
0
     recipients connection.contact.email
0
     subject formatted_subject("New contact request")
0
     body "domain" => server,
0
@@ -34,7 +34,7 @@
0
   end
0
   
0
   def blog_comment_notification(comment)
0
- from "Comment notification <comment@#{server}>"
0
+ from "Comment notification <comment@#{domain}>"
0
     recipients comment.commented_person.email
0
     subject formatted_subject("New blog comment")
0
     body "domain" => server, "comment" => comment,
0
@@ -45,7 +45,7 @@
0
   end
0
   
0
   def wall_comment_notification(comment)
0
- from "Comment notification <comment@#{server}>"
0
+ from "Comment notification <comment@#{domain}>"
0
     recipients comment.commented_person.email
0
     subject formatted_subject("New wall comment")
0
     body "domain" => server, "comment" => comment,
0
@@ -55,7 +55,7 @@
0
   end
0
   
0
   def email_verification(ev)
0
- from "Email verification <email@#{server}>"
0
+ from "Email verification <email@#{domain}>"
0
     recipients ev.person.email
0
     subject formatted_subject("Email verification")
0
     body "server_name" => server,
...
5
6
7
 
8
9
10
...
14
15
16
17
 
18
19
20
...
33
34
35
36
 
37
38
39
...
133
134
135
136
 
137
138
139
...
5
6
7
8
9
10
11
...
15
16
17
 
18
19
20
21
...
34
35
36
 
37
38
39
40
...
134
135
136
 
137
138
139
140
0
@@ -5,6 +5,7 @@
0
   before(:each) do
0
     @preferences = preferences(:one)
0
     @server = @preferences.server_name
0
+ @domain = @preferences.domain
0
   end
0
   
0
   describe "password reminder" do
0
@@ -14,7 +15,7 @@
0
      end
0
    
0
      it "should have the right sender" do
0
- @email.from.first.should == "password-reminder@#{@server}"
0
+ @email.from.first.should == "password-reminder@#{@domain}"
0
      end
0
    
0
      it "should have the right recipient" do
0
@@ -33,7 +34,7 @@
0
      end
0
    
0
      it "should have the right sender" do
0
- @email.from.first.should == "message@#{@server}"
0
+ @email.from.first.should == "message@#{@domain}"
0
      end
0
    
0
      it "should have the right recipient" do
0
@@ -133,7 +134,7 @@
0
      end
0
      
0
      it "should have a link to the recipient's preferences" do
0
- prefs_url = "#{@server}/people/#{@recipient.to_param}/edit"
0
+ prefs_url = "http://#{@server}/people/#{@recipient.to_param}/edit"
0
        @email.body.should =~ /#{prefs_url}/
0
      end
0
    end

Comments

    No one has commented yet.