Skip to content

Instance variable @email conflicts with email param #2

Description

@brazenbraden

Had an email was supposed to be sent to my system which included a user email address as content in the email however setting the instance variable @email = user.email and then sending that to apostle via mail('contact-form', email: 'system@mywesbite.com') resulted in the email being sent to user.email instead.

IMO instance variables should not clobber the core mail params (or at least a note be made in the rails integration documentation regarding reserved variable names).

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