Skip to content

Commit

Permalink
[IM] de-inexify peering manager - fixes #180
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Nov 27, 2014
1 parent 0070874 commit 272648b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 5 additions & 2 deletions application/controllers/PeeringManagerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function peeringRequestAction()
if( $bccOk )
{
$mail = new Zend_Mail();
$mail->setFrom( '[email protected]', $this->getCustomer()->getName() . ' Peering Team' )
$mail->setFrom( $this->_options['identity']['mailer']['email'], $this->getCustomer()->getName() . ' Peering Team' )
->setReplyTo( $this->getCustomer()->getPeeringemail(), $this->getCustomer()->getName() . ' Peering Team' )
->setSubject( $f->getValue( 'subject' ) )
->setBodyText( $f->getValue( 'message' ) );
Expand Down Expand Up @@ -345,7 +345,10 @@ public function peeringRequestAction()
else
{
$f->getElement( 'bcc' )->setValue( $this->getUser()->getEmail() );
$f->getElement( 'subject' )->setValue( "[INEX] Peering Request from {$this->getCustomer()->getName()} (ASN{$this->getCustomer()->getAutsys()})" );
$f->getElement( 'subject' )->setValue(
"[" . $this->_options['identity']['orgname'] . "] Peering Request from "
. $this->getCustomer()->getName() . " (ASN{$this->getCustomer()->getAutsys()})"
);
$f->getElement( 'message' )->setValue( $this->view->render( 'peering-manager/peering-request-message.phtml' ) );
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Dear {$peer->getName()} Peering Team,

We are {$user->getCustomer()->getName()} ({$user->getCustomer()->getCorpwww()}) and we are fellow members of INEX, Ireland's IXP.
We are {$user->getCustomer()->getName()} ({$user->getCustomer()->getCorpwww()}) and we are fellow members of {$options.identity.orgname} ({$options.identity.location.city}, {$options.identity.location.country}).

We would like to arrange peering session(s) with you on the following interface(s):

Expand Down Expand Up @@ -50,7 +50,5 @@ The {$user->getCustomer()->getName()} Peering Team


--

INEX (https://www.inex.ie/) is Ireland's IXP. This email was composed with the assistance of INEX's Peering Manager which is part of your member area at: {genUrl}.


This email was composed with the assistance of the {$options.identity.orgname} Peering Manager which is part of your members' area at: {genUrl}.

0 comments on commit 272648b

Please sign in to comment.