ish_models 0.0.33.286 → 0.0.33.287
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ish/email_context.rb +4 -1
- data/lib/ish/email_template.rb +24 -14
- data/lib/office/email_conversation.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83d872b9868c1bc820cbdcbadfde298a034010095e4f19910f1851d35cca00fd
|
4
|
+
data.tar.gz: e1fc95e4a71e17c4486389a83ffcf6b1fada942f9e9a71a488f4842c157878b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a44c1b86067b6b62b9d77c0a94f71d60f3264d7549c8e1b848f17e48bef01d0c415871c95886aa0de3b806eca787669c4a87608734f141875591da6d068dc1a
|
7
|
+
data.tar.gz: 960ee95e22f7e124d643d566a4b2052f547f02cefeb67e8c1b7f2a69c2d9f07bc75aaa52a722e276803e87e3a2548ba04868e40b7c9ab7f42ddc272d45e2043d
|
data/lib/ish/email_context.rb
CHANGED
@@ -75,7 +75,10 @@ class ::Ish::EmailContext
|
|
75
75
|
field :lead_id, type: :integer
|
76
76
|
def lead; Lead.find( lead_id ); end
|
77
77
|
def to_email; lead[:email]; end ## @TODO: remove, just use the lead. _vp_ 2023-03-27
|
78
|
-
|
78
|
+
# ## no `to` field b/c that's the lead
|
79
|
+
# field :tos, type: :array, default: []
|
80
|
+
field :cc, type: :string
|
81
|
+
field :ccs, type: :array, default: []
|
79
82
|
|
80
83
|
##
|
81
84
|
## For tracking / utm
|
data/lib/ish/email_template.rb
CHANGED
@@ -29,6 +29,7 @@ class ::Ish::EmailTemplate
|
|
29
29
|
field :config_exe, default: "" ## unused! _vp_ 2023-09-24
|
30
30
|
field :config_json, type: Object, default: '{}'
|
31
31
|
|
32
|
+
DEFAULT_FROM_EMAIL = 'Victor Pudeyev <victor@wasya.co>'
|
32
33
|
FROM_EMAILS = [
|
33
34
|
'Annesque Studio <hello@annesque.studio>',
|
34
35
|
'Annesque Studio <no-reply@annesque.studio>',
|
@@ -45,30 +46,30 @@ class ::Ish::EmailTemplate
|
|
45
46
|
'Oquaney Splicing <hello@oquaney-splicing.com>',
|
46
47
|
'Oquaney Splicing <no-reply@oquaney-splicing.com>',
|
47
48
|
|
48
|
-
'Victor
|
49
|
-
'Victor
|
50
|
-
'Victor
|
49
|
+
'Victor Pudeyev <piousbox@gmail.com>',
|
50
|
+
'Victor Pudeyev <victor@piousbox.com>',
|
51
|
+
'Victor Pudeyev <no-reply@piousbox.com>',
|
51
52
|
'Victor Pudeyev <victor@pudeyev.com>',
|
52
53
|
|
53
|
-
'Sender
|
54
|
-
'Sender
|
54
|
+
'Sender SBS <hello@sender.sbs>',
|
55
|
+
'Sender SBS <no-reply@sender.sbs>',
|
55
56
|
|
56
57
|
'WasyaCo Consulting <admin@wasya.co>',
|
57
|
-
'Alex <alex@wasya.co>',
|
58
|
-
'Bailey <bailey@wasya.co>',
|
59
|
-
'Cameron <cameron@wasya.co>',
|
58
|
+
'Alex WCo <alex@wasya.co>',
|
59
|
+
'Bailey WCo <bailey@wasya.co>',
|
60
|
+
'Cameron WCo <cameron@wasya.co>',
|
60
61
|
'WasyaCo Consulting <hello@wasya.co>',
|
61
|
-
'Jess <jess@wasya.co>',
|
62
|
+
'Jess WCo <jess@wasya.co>',
|
62
63
|
'WasyaCo Consulting <no-reply@wasya.co>',
|
63
|
-
'Victor
|
64
|
+
'Victor Pudeyev <victor@wasya.co>',
|
64
65
|
|
65
66
|
'WasyaCo Consulting <admin@wasyaco.com>',
|
66
|
-
'Alex <alex@wasyaco.com>',
|
67
|
-
'Bailey <bailey@wasyaco.com>',
|
68
|
-
'Cameron <cameron@wasyaco.com>',
|
67
|
+
'Alex WCo <alex@wasyaco.com>',
|
68
|
+
'Bailey WCo <bailey@wasyaco.com>',
|
69
|
+
'Cameron WCo <cameron@wasyaco.com>',
|
69
70
|
'WasyaCo Consulting <hello@wasyaco.com>',
|
70
71
|
'WasyaCo Consulting <no-reply@wasyaco.com>',
|
71
|
-
'Victor <victor@wasyaco.com>',
|
72
|
+
'Victor Pudeyev <victor@wasyaco.com>',
|
72
73
|
|
73
74
|
'Wasya Co Mailer <no-reply@wco.com.de>',
|
74
75
|
'Wasya Co Mailer <wasyacomailer@gmail.com>',
|
@@ -78,6 +79,15 @@ class ::Ish::EmailTemplate
|
|
78
79
|
[ [nil, nil] ] + FROM_EMAILS.map { |i| [i, i] }
|
79
80
|
end
|
80
81
|
|
82
|
+
SIGNATURE = <<~AOL
|
83
|
+
<div>
|
84
|
+
<div><br></div>
|
85
|
+
<div>Regards,</div>
|
86
|
+
<div>-=----- >8 --</div>
|
87
|
+
<div>Victor Pudeyev<br>Director of Engineering<br><a href="mailto:victor@piousbox.com" target="_blank">victor@piousbox.com</a> | <a href="https://tidycal.com/wasya-co/30min" target="_blank">Book a chat</a><br></div>
|
88
|
+
</div><hr /><br /><br /><br />
|
89
|
+
AOL
|
90
|
+
|
81
91
|
## 2023-03-04 _vp_ This works!
|
82
92
|
def get_binding
|
83
93
|
@lead = Lead.where( email: 'stub@wasya.co' ).first
|