Hi there,

I'm getting this error when trying to send a HTML email using the module.

Message could not be sent: invalid data format/type (Code: 1300) field 'campaign_id' is of length 67 bytes, but needs to be of max length 64

Could you give any advice on how to resolve?

Thanks
Ad

CommentFileSizeAuthor
#3 field_campaign_id_is-2713099-3.patch559 byteszaporylie
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agiddens created an issue. See original summary.

zaporylie’s picture

Thanks for feedback!

Could you tell us more about your setup? Which module tries to send that message?
What is campaign_id/key for the message you're trying to send? You can find that information in watchdog.

zaporylie’s picture

Status: Active » Needs review
FileSize
559 bytes

Anyway - here's a patch. If you could test it and give us some feedback, that would be great.

boinkster’s picture

I tested this patch and it solved the issue for me. It came up when Commerce sent an order notification (through Rules):

Message could not be sent: invalid data format/type (Code: 1300) field 'campaign_id' is of length 95 bytes, but needs to be of max length 64

Mail key: rules_rules_action_mail_to_users_of_role_commerce_message_commerce_order_notification_e_mail2_6

  • zaporylie committed f855691 on 7.x-1.x
    Issue #2713099 by zaporylie, agiddens, boinkster: field 'campaign_id' is...
zaporylie’s picture

Component: Miscellaneous » Code
Status: Needs review » Fixed
Issue tags: +7.x-1.0 release blocker

agiddens, boinkster - thanks for helping with this one.

Patch has been committed and pushed to 7.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.