Enter a valid email address or use a token e-mail address such as [node:author:mail].

Created on 5 May 2023, over 1 year ago
Updated 13 May 2023, over 1 year ago

Problem/Motivation

When I upgrade from 7.x-1.0 to 7.x-1.2 I can no longer use the token [node:field_attendee_email] for the email address when using mimemail with VBO. I reinstalled 7.x-1.0 and it works again. The error message I get is "Enter a valid email address or use a token e-mail address such as [node:author:mail]".

Steps to reproduce

1. Install Drupal 7, Views, Vbo and Mimemail 7.x-1.0
2. Create a view with a list of users (including an email field) and add a vbo field.
3. Set the action to send HTML E-mail
4. Enter the user field token into the recipient field
5. Try sending an email and it works
6. Upgrade to Mimemail 7.x-1.2 and try sending again, the view errors with invalid email address

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Postponed: needs info

Version

1.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom billywardrop

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @billywardrop
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    Well the reason it fails is because the token is expected to contain :mail (like the example of [node:author:mail] given in the error message). Your token doesn't have that :mail part.

    The code that looks at the token and generates that error message hasn't changed since 2011 - that's twelve years. I suspect your version of 7.x-1.0 is not a clean install and has some patches.

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia
Production build 0.71.5 2024