Skip to content
Browse files

Added sender header to confirmation

  • Loading branch information...
1 parent 2981563 commit 665b247b59da850ac845275ade78213a32640673 @deepwinter committed
Showing with 4 additions and 0 deletions.
  1. +3 −0 classes/confirmation.php
  2. +1 −0 i18n/en.php
View
3 classes/confirmation.php
@@ -23,6 +23,9 @@ public function __construct($type, $email, $controller, $action, array $argument
}
public function send(){
+ $sender = i18n::get('confirmation.'.$this->type.'.sender');
+ $headers = array();
+ $headers[] = "From: $sender";
mail($this->email, $this->createMessageSubject(), $this->createMessageBody());
}
View
1 i18n/en.php
@@ -1,6 +1,7 @@
<?
$lang = array(
+ 'confirmation.default.sender' => 'Confirmation Sender <confirmation@madeofpeople.org> ',
'confirmation.default.subject' => 'Confirm your information',
'confirmation.default.body' => 'Clink the link to confirm your information <a href=":confirmationLink">:confirmationLink</a>',
'confirmation.example.subject' => 'Example: Confirm your information',

0 comments on commit 665b247

Please sign in to comment.
Something went wrong with that request. Please try again.