If select formatting for message field and send invite mail in html I got "array" instead body message. This patch check if body field has format.

Comments

cosolom’s picture

StatusFileSize
new1.92 KB
lisa.rae’s picture

Version: 7.x-4.0-beta2 » 7.x-4.x-dev
Status: Needs review » Needs work

Please submit patch on the current dev branch for version 7.x-4.x.

vulfox’s picture

So was this working?

ckng’s picture

Title: Send invite by email when using formatting for body field and HTML mail » Empty email when body field using input format
Priority: Critical » Normal
Status: Needs work » Needs review
StatusFileSize
new1.95 KB

Fixed double assignments

$mail_body = isset($body['format']) ? $body['value'] : $mail_body = $body;

to

$email_body_text = isset($email_body['format']) ? $email_body['value'] : $email_body;

Renamed variable names.

ckng’s picture

Status: Needs review » Fixed

Fixed in dev. Thanks for the code.

  • ckng authored 77be3d9 on 7.x-4.x
    Issue #2299981 by cosolom, ckng: Empty email when body field using input...
noman_297’s picture

@ckng
I have installed dev version of invite when i send an invitation to an email,the body field send the tokens in body like
[invite:inviter:name] has invited you to join [site:name] at [site:url].

To become a member of [site:name], click the link below or paste it into the
address bar of your browser.

[invite:invite-accept-link]

it does not send proper link,subject is fine.only in body field replacement pattern not working.Please help me out.THanks

ckng’s picture

@noman_297,
If you are using custom body field with input format, ensure "Apply token replacements" is checked under admin/structure/invite-types/manage/invite_by_email

noman_297’s picture

Thanks for response but there is no checkbox available only replacement pattern is there.however that checkbox is available admin/config/people/invite/by_mail here and it is checked.
I sort out it by going to text format and selecting plain text and there enable replace pattern checkbox that works for me.

ckng’s picture

Try latest dev, beta2 is dated, a lot has changed since.

noman_297’s picture

I have installed dev version,now the problem is in email [invite:invite-accept-link] token coming.In front end of site (in invites) it shows accept link and works fine but in email token coming instead of link.Also email is coming to junk folder.I am really happy with your response so far.Thanks plz guide me i have used mandrill api for my mailsystem.

ckng’s picture

Then check your input format or the mail system setup. If it works on the page it should work on email.

noman_297’s picture

@ckng i am still having the issue on invite page it shows properly but in email i receive token instead of accept link.Also email goes to junk folder,any help will be appreciated.

noman_297’s picture

Please some one help me its urgent need for my site,I am using MIME as my mail system,subject is fine only in body fields certain tokens not working like Inviter name,accept link.

ckng’s picture

@norman_297, please open a new support issue. Your problem is clearly not related to this issue.

noman_297’s picture

i have opened another issue.please comment there.

Status: Fixed » Closed (fixed)

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