Change outgoing email to user profile.

peterx - February 7, 2009 - 03:32
Project:Webmail Plus
Version:6.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

The outgoing email is one address for the whole site. Most of my sites need the email to be the user's email address. I made the following change to compose. It should be some sort of config option.

From:

<?php
$mail
->Username   = $_webmail_plus_config->smtp_username;
$mail->Password   = $_webmail_plus_config->smtp_password;
?>

To:

<?php
$mail_api_server_info
= mail_api_server_configuration($_webmail_plus_config->domain);
$mail->Username   = $user->name . $mail_api_server_info->login_suffix;
$mail->Password   = _webmail_plus_get_user_password($user);
?>

 
 

Drupal is a registered trademark of Dries Buytaert.