Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
Email templates are stripping any html
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 10/14/13 22:06 
Hi guys,

I posted in the previous post, i need to know very urgent a work around and understand why the email templates are being sent out is striping all the HTML code and leaving just text.

Please let me know

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 10/14/13 23:40 

Douglas:
Is your email client setup to receive HTML emails?



_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 10/15/13 00:10 
Yes of course we have tried on Outlook, gmail , hotmail yahoo and more. can you check your jr5 is it working? does it allow you to embed HTML?

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 10/15/13 00:46 
Newsletters are sent with html, and that is working.

What are doing which isn't working?


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 10/15/13 00:53 
HI, yeah i think that works, but if you go directly to a email template, lets say jrUser templates and embed any html inside such as <a> <img> manually.

and you will see the system will strip the html code

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 10/15/13 01:29 
Yes, they are plain text.

Just write your links and they will be made clickable by your email reader, no need for a tags. I don't think you'll be able to use images though.


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 10/15/13 02:09 
Hey Dont understand just make links? shouldnt it be an a tag

<a href="#">TEXT HERE </a>


what i realised it striping the tags

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 10/15/13 02:12 
Try just writing the link:
http://yourlink/here

It shouldn't be an a tag because they are plain text emails.


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 10/15/13 04:14 
is that correct?? so we cannot embed any html code inside? what happens if we want to put a image??

I don't think this is right

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 10/15/13 04:23 
If you are sending an image you are doing something custom, so take a look at the email functions to see what you can do.

The actual mailer function accepts 'send_as_html' = true; so try adding that to your jrCore_send_email function in the options array and see if that works.

If you are not doing something custom, you are sending plain text emails and can't use html.


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
adanhash



Joined: 08 Apr 2007
Posts: 224

Posted: 10/16/13 01:52 
Hi,
I tried this

$_rp['mode']='user_started_alert';

$_option['send_as_htm']=true;
//send mail to artist
list($sub,$msg) = jrCore_parse_email_templates('MYMODULE','UPDATE',$_rp,$_option);
jrCore_send_email('myemail@gmail.com',$sub,$msg);

still not working

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 10/16/13 02:51 
Then you will have to adjust it until you can get it to work.

There is no 4th parameter for jrCore_parse_email_templates, you'll need to look at the functions yourself if you can't read what is written above.

Also 'send_as_htm' is not the same as 'send_as_html' - you can't just make things up in php and hope that it will work for you. It won't.


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.