kim
asked 10 years ago

Hi there…
Loving the plugin so far…well done and thank you!
My question is regarding the email notifications…when the show up in my email all I see is html code. Anything I can do on my end to fix this?
thanks in advance…
Β 

David Robles
replied 10 years ago

I tried this and it worked for me: Replace this code in notification.php
original code:
//From email
$from_email = get_option( ‘dwqa_subscrible_from_address’ );
if( $from_email ) {
$headers = “From: ” . $from_email . “\r\n”;
}
new code:
//From email
$from_email = get_option( ‘dwqa_subscrible_from_address’ );
if( $from_email ) {
$headers .= “From: ” . $from_email . “\r\n”;
}

Guru
replied 10 years ago

whats new! both codes are identical.

David Robles
replied 10 years ago

Hi Guru, there is a little DOT that makes the difference in "$headers .=" where original was "$headers =". Otherwise $headers value would be incomplete, I think. I ain't a PHP expert though.
Then again, I don't know if that is the fix, but it worked for me.

Guru
replied 10 years ago

Ah, I completely missed the dot. And you are absolutely right it was the dot(.)

You are a genius πŸ™‚

well wisher
replied 10 years ago

a dot can make a difference thanks @drobles25 (David) for the solution

well wisher
replied 10 years ago

the problem has been fixed in version 1.2.4 i suppose update to get it working πŸ™‚

5 Answers
well wisher
answered 10 years ago

Hi can u please add a screen shot here

kim
answered 10 years ago

Sure. Β this is the notification email i receive:
 

Guru
answered 10 years ago

Hi Kim,
Have you got any other plugins for managing emails/newsletter. It seems more like a mime type mismatch.
You will have to possibly deactivate all the plugins before activating DWQA plugin, to see if this solves the problem. If yes, then selectively activate the plugins and checking if the notifications are working fine.Β 
Hope this helps.
 
 

well wisher
answered 10 years ago

can you please tell which email client program are you using to veiw your emails ?

well wisher
replied 10 years ago

ok i tested this problem and found that its not only you who is facing the problem @kimann @designwall please check into the issue coz mails are showing code instead of showing html mails

well wisher
replied 10 years ago

@hung @dominic can you please help and sort this issue out thanks

well wisher
answered 10 years ago

Hi guys @guru @kimann this is related to solving the email problem which i think is from the plugin side and developers may like to have a look at this and solve the issue as early as possible : http://stackoverflow.com/questions/5188605/gmail-displays-plain-text-email-instead-html http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html

kim gorgo
replied 10 years ago

@wellwisher thank you for getting back to me. I clicked the stackoverflow button but have no idea what they are suggesting I do? something about changing the html and plain text? Can you please advise? thank you!

kim gorgo
replied 10 years ago

below is the html i get in my emails (in many different email clients i tested) can you show me what I should do?

Think With Your Heart

Howdy KimAnn,

Avatar of Annick

Annick has commented on your followed answer at “How does the Q&A Coaching Circle work?“:

Hi Lauren, why we get so little information about the first wave?

Think With Your Heart – inspiring visionary leadership thru purposeful living

well wisher
replied 10 years ago

Hi @kimann there is nothing you or i can do in solving the problem those links i pasted was actually for the developers of the dwqa plugin coz as explained in the stackoverflow question, the ordering of the html code and plain text in the notification mail may be creating the problem to show the notifications properly and showing the code instead of the html page/ntification in gmail or any other standard email client
lets hope that developer gets notice of this problem soon and solve the issue as soon as possible

kim gorgo
replied 10 years ago

yes here’s hoping! I really like the design and format of the email notifications so I am really looking forward to them working.
thanks!

well wisher
replied 10 years ago

that makes two of us and your welcome πŸ™‚

well wisher
replied 10 years ago

Hi @kim did you had any luck and got this problem resolved by yourself ?

Mike Burgess
replied 10 years ago

I am also seeing the same problem with notification emails. Any solutions yet?

well wisher
replied 10 years ago

nope !!!

kim gorgo
replied 10 years ago

no no resolve. i’m waiting for a solution from DW.

Mike Burgess
replied 10 years ago

I am sure they will get here soon. I see that their notifications are not just HTML code πŸ™‚

well wisher
replied 10 years ago

i think adding a small line
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
in the starting to each of the notification templates may resolve the problem will try that tomorrow if any one of you gives it a try and it resolves the issue please do inform others as well by commenting over here

Mike
replied 10 years ago

I will give it a go but in the source for the notification email I received for your comment Well Wisher there was no such line, nor was it there previous to the last upgrade when emails were good.

I also have a conflict with Wishlist Member (according to support) which blanks out the 'Visual' view of the emails in admin. This was resolved before the last upgrade and then came back again.

Mike
replied 10 years ago

Just tested the line in notification emails.

No difference as I expected.

well wisher
replied 10 years ago

the reason i was thinking that adding that line would solve the problem was that its just a meta tag that could make it double sure that the email client knows that the content it is recieving is the html type though you can find the same line specified in the notifications.php

Mike
replied 10 years ago

Still no word from DW support. Can only assume they are working on this in silence. I am not complaining of course, but my boss is 😐

well wisher
replied 10 years ago

try this




before divs and this after closing divs

Guru
replied 10 years ago

Hi wellwisher, does not work!

well wisher
replied 10 years ago

thats not a good news for all of us

Guru
answered 10 years ago

There was an update this morning 1.2.3 but it does not address the issue of email notifications unfortunately. Is any one looking into this???

well wisher
replied 10 years ago

yaa i updated to latest version but the problem is still there i was trying to patch it with the only answer i found possible for the failure but had no luck as you can see from answers above i hope the problem is solved soon,btw are you also facing the same problem @guru

Guru
replied 10 years ago

yes indeed. the problem is every where I think. Its not limited to afew users. This started with 1.2.1

Guru
replied 10 years ago

sorry not 1.2.1 its 1.2.2

Guru
answered 10 years ago

Update: After testing with the code I found out that the issue has emerged since 1.2.2 actually. And if you replace the notifications.php from 1.2.1 to your new 1.2.2/1.2.3 and you don’t set where the emails are being sent from, the notifications are actually working fine.

Guru
replied 10 years ago

Amendment: Every thing works on 1.2.2/1.2.3 as long as you don’t specify where the emails are coming from (in which case they will be from [email protected]) This is just a temporary fix.

Now the DW team can look into it and please fix the issue ASAP.

Cheers Big Ears!

Guru
replied 10 years ago

Also when you signup to post a question. Your credentials are sent via the wordpress @ domain . com) email which I guess should also be set from the settings page that we set for notifications.

well wisher
replied 10 years ago

Hi guru thanks for your time investigating the matter,ok now that we know the problem is due to the from input field its great as we can find the solution to the problem,and i think most of the user are not aware of the fact that the notifications are getting messed up as they would have installed the plugin and switched of the admin notifications

Mike
replied 10 years ago

Thanks Guru. A short term fix is better than none until DW support gets back to us.

Mike
replied 10 years ago

Still no word back on a proper fix for this issue?

Guru
answered 10 years ago

We haven’t heard frm the dw team acknowledged this issue. Can someone plz provide some feedback?

Mike
replied 10 years ago

New version released that fixes email issues – Version 1.2.4

Guru
replied 10 years ago

Thanks for the update. Yes, indeed it fixes the issue, and the solution was a missing dot (.) πŸ™‚

Mike
replied 10 years ago

I CORRECT THAT. The new version fixes the ‘new question’ notification but not the ‘comment notification’ email which I find is still coming through in HTML format.

Anyone else with this issue?

Guru
replied 10 years ago

Mike DW have still missed on (.) dot

Please search for

$headers = “From: ” . $from_email . “\r\n”;

and replace all with:

$headers .= “From: ” . $from_email . “\r\n”;

I only found one missed dot in notifications.php file in 1.2.4

Hope you don’t fine more than one.

Mike
replied 10 years ago

Thanks Guru. Only found the one and worked a treat. I hope they remember it in the next update. Much appreciated.

Powered by DW Question & Answer Pro