Mail in HTML format ?

johnyqdesigns3019

New Member
YetiShare User
Sep 21, 2013
12
0
0
uploads sent by email are in text format, how do we enable HTML format?

-----Current mail in text format-------
Copies of your urls, which completed uploading on 24/09/2013 02:07:56 are below:

http://domainname.com/rN/1996_Ford_IndigoConcept1.jpg

Regards,
domainname.com | some text.....
------------------------------------------------------------------------------------------------------------

I would like to enable HTML URL's for the links

ANY SUGGESTIONS, PLZ ? ? ?
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Open _updateFileOptions.ajax.php

Edit the following:
Code:
$defaultContent .= "Copies of your urls, which completed uploading on [[[UPDATE_COMPLETED_DATE_TIME]]] are below:<br/><br/>";
$defaultContent .= "[[[FILE_URLS]]]<br/><br/>";
$defaultContent .= "Regards,<br/>";
$defaultContent .= "[[[SITE_NAME]]] Admin";
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
You can't make them html using the email template, some email clients will automatically make them clickable though. You can mod the code so they're always in html.

[del]Open _updateFileOptions.ajax.php.
On line 63 (after $subject = t('...'); ) add:

Code:
foreach($fullUrls AS $k=>$fullUrl)
{
$fullUrls[$k] = '<a href="'.$fullUrl.'">'.$fullUrl.'</a>';
}
[/del]
DELETED, better way below...

It's untested but it should get you pointing in the right direction if it doesn't immediately work.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Actually, a neater option would be replace line 55 in _updateFileOptions.ajax.php with this:

Code:
$fullUrls[] = '<a href="'.$file->getFullShortUrl().'">'.$file->getFullShortUrl().'</a>';
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
I would suggest trying to learn the basics of html and php if you really want to run a successful website.

Code:
$defaultContent .= "[[[SITE_NAME]]] Admin";
$defaultContent .= "<br/><br/>advert code here";