Skip to content

Set an SMTP username different from admin_email #878

Open

Description

@NetRelay

It would be useful to be able to define something like:

$CONF['admin_smtp_username'] = 'abcdxyz';

for all cases where the username is not the same as the sender email (admin_email).

For example, in my case I need to use an AWS SES SMTP account for sending, and the username consists of alphanumeric characters that do not match the verified identity of the sender domain.

Is there any way to work around this? Thanks! :-)

Activity

  1. DavidGoodwin commented on Jan 10, 2025

    @DavidGoodwin
    Member

    Is the solution literally to change this line

    fputs($fh, base64_encode($from) . "\r\n");
    to not be 'from' but some other value?

    in which case i think you'll just need another parameter to be passed into that function (and corresponding config setting, which presumably would default to whatever $from is unless the config setting is populated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions