Skip to content

Instantly share code, notes, and snippets.

@nicohofmann
Created September 24, 2012 15:55
Show Gist options
  • Save nicohofmann/3776688 to your computer and use it in GitHub Desktop.
Save nicohofmann/3776688 to your computer and use it in GitHub Desktop.
lotus_smtp.php
<?php
class lotus_smtp extends rcube_plugin
{
public $task = 'mail|settings';
public function init()
{
$this->add_hook('smtp_connect', array($this, 'lotus_smtp_overwrite'));
}
public function lotus_smtp_overwrite ($args)
{
file_put_contents('/tmp/smtp.log', 'lotus_smtp_overwrite called' . "\n");
$args['smtp_server'] = 'localhost';
$args['smtp_port'] = 25;
$args['smtp_user'] = 'info@domain.tld';
$args['smtp_pass'] = 's';
$args['smtp_auth_type'] = '';
$args['smtp_helo_host'] = '';
return $args;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment