RT# 73964 - Changed global config send-to-domain to email-to-voice_domain
authorChristopher Burger <burgerc@freeside.biz>
Tue, 22 Aug 2017 14:36:04 +0000 (10:36 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Tue, 22 Aug 2017 14:36:04 +0000 (10:36 -0400)
FS/FS/Conf.pm
FS/FS/cust_main_Mixin.pm
FS/FS/part_event/Action/notice_to_emailtovoice.pm
httemplate/misc/email-customers.html

index 02e65f5..bddeee9 100644 (file)
@@ -898,7 +898,7 @@ my $validate_email = sub { $_[0] =~
   },
 
   {
   },
 
   {
-    'key'         => 'send-to-domain',
+    'key'         => 'email-to-voice_domain',
     'section'     => 'email_to_voice_services',
     'description' => 'The Domain to send email to voice to',
     'type'        => 'text',
     'section'     => 'email_to_voice_services',
     'description' => 'The Domain to send email to voice to',
     'type'        => 'text',
index 5f9a3d6..1ef5387 100644 (file)
@@ -398,7 +398,7 @@ sub email_search_result {
   my($class, $param) = @_;
 
   my $conf = FS::Conf->new;
   my($class, $param) = @_;
 
   my $conf = FS::Conf->new;
-  my $send_to_domain = $conf->config('send-to-domain');
+  my $send_to_domain = $conf->config('email-to-voice_domain');
 
   my $msgnum = $param->{msgnum};
   my $from = delete $param->{from};
 
   my $msgnum = $param->{msgnum};
   my $from = delete $param->{from};
index ae766e8..a3a5e98 100644 (file)
@@ -23,7 +23,7 @@ sub eventtable_hashref {
 sub option_fields {
 
   #my $conf = new FS::Conf;
 sub option_fields {
 
   #my $conf = new FS::Conf;
-  #my $to_domain = $conf->config('send-to-domain');
+  #my $to_domain = $conf->config('email-to-voice_domain');
 
 (
     'to_name'   => { 'label'            => 'Address To',
 
 (
     'to_name'   => { 'label'            => 'Address To',
@@ -33,7 +33,7 @@ sub option_fields {
                                              'fax'     => 'Fax #',
                                              'daytime' => 'Day Time #',
                                            },
                                              'fax'     => 'Fax #',
                                              'daytime' => 'Day Time #',
                                            },
-                     'post_field_label' => "@" , #. $to_domain ,
+                     'post_field_label' => "@", # . $to_domain ,
                    },
 
     'msgnum'    => { 'label'    => 'Template',
                    },
 
     'msgnum'    => { 'label'    => 'Template',
@@ -53,7 +53,7 @@ sub do_action {
   my( $self, $object ) = @_;
 
   my $conf = new FS::Conf;
   my( $self, $object ) = @_;
 
   my $conf = new FS::Conf;
-  my $to_domain = $conf->config('send-to-domain')
+  my $to_domain = $conf->config('email-to-voice_domain')
     or die "Can't send notice with out send-to-domain, being set in global config \n";
 
   my $cust_main = $self->cust_main($object);
     or die "Can't send notice with out send-to-domain, being set in global config \n";
 
   my $cust_main = $self->cust_main($object);
index 5083fcd..fe637ab 100644 (file)
@@ -272,7 +272,7 @@ die "access denied"
 my $conf = FS::Conf->new;
 my @no_search_fields = qw( table from subject html_body text_body popup url );
 
 my $conf = FS::Conf->new;
 my @no_search_fields = qw( table from subject html_body text_body popup url );
 
-my $send_to_domain = $conf->config('send-to-domain');
+my $send_to_domain = $conf->config('email-to-voice_domain');
 
 my $form_action = $opt{'form_action'} || 'email-customers.html';
 my $process_url = $opt{'process_url'} || 'process/email-customers.html';
 
 my $form_action = $opt{'form_action'} || 'email-customers.html';
 my $process_url = $opt{'process_url'} || 'process/email-customers.html';