No attachment is being sent after uploading a file for a specific account e-mail. The problem is found in the function "account_settings_email_attachment_mail_attachment" which uses wrong parameters for the $attachment array.

Currently the 'filecontent' parameters is being filled with the $filepath variable. This parameter should not contain the path to the file but the contents of the file. Another solution is changing the 'filecontent' parameter to 'filepath'.

I will supply both fixes in two seperate patches.

Comments

ericmulder1980’s picture

StatusFileSize
new519 bytes

Attached patch renames the 'filecontent' parameter to 'filepath'.

ericmulder1980’s picture

StatusFileSize
new541 bytes

Attached patch fills the 'filecontent' argument with the actual content of the file.

arijits.drush’s picture

Status: Active » Needs review
arijits.drush’s picture

Status: Needs review » Closed (fixed)