XFileSharing Pro - html in email messages ?

Message
Author
ChenB
Posts: 26
Joined: Apr 23, 2012 10:48 am

html in email messages ?

#1 Postby ChenB » May 12, 2012 11:02 am

hey ,
i want to add html to registration_email.html
but it turn to text :\
i searched in the forum and google and nothing :\

note :
i try to add <img src="http://domain.com/logo.jpg">

stdio
Posts: 65
Joined: Mar 27, 2012 4:05 pm

#2 Postby stdio » May 12, 2012 11:10 am

Maybe try with <img src="<TMPL_VAR site_url>/image.gif">

ChenB
Posts: 26
Joined: Apr 23, 2012 10:48 am

#3 Postby ChenB » May 12, 2012 11:31 am

when i open the massage i see it in text and not the picture

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#4 Postby ankurs » May 12, 2012 11:57 am

ChenB wrote:when i open the massage i see it in text and not the picture
you need to change it to html email, so modify the type

http://www.cyberciti.biz/faq/how-do-i-s ... from-perl/

ChenB
Posts: 26
Joined: Apr 23, 2012 10:48 am

#5 Postby ChenB » May 12, 2012 1:03 pm

i know but !!!

Code: Select all

$ses->SendMail($user->{usr_email},$c->{email_from},"$c->{site_name} registration confirmation",$t->output);
the SendMail is in the session.pm and it's encrypted
so i use this ..

Code: Select all

    my $msg = MIME::Lite->new(
                 From     =>'$c->{email_from}',
                 To       =>'$user->{usr_email}',
                 Subject  =>'$c->{site_name} registration confirmation',
                 Type    =>'multipart/related'
                 );
    $msg->attach(Type => 'text/html',
                 Data => ,$t->output
                 );

    $msg->send();
the admin didnt really think about the future :\