$mail->AddEmbeddedImage('img/2u_cs_mini.jpg', 'logo_2u');
and on the <img> tag inside your actual html mail body put src='cid:logo_2u'
$mail->AddEmbeddedImage('img/2u_cs_mini.jpg', 'logo_2u');
and on the <img> tag inside your actual html mail body put src='cid:logo_2u'
I was storing HTML email to MySql DB
but for some weird reason all the email stored successfully but on retrieval only half was being displayed
after a lot of struggling, finally i figured out that data type in mysql table for that field was TEXT which stores only 65000 chars
I counted email content and it was 92056 chars
changed the data type to LONGTEXT and everything works like a charm
You need to execute system level commands
Backup :
php Syntax
$command = “mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]“;
Restore :
$command = “mysql -u [username] -p [password] [databasename] < [backupfile.sql]“;
system($commmand);
originally from http://superuser.com/questions/156189/how-to-convert-word-doc-to-pdf-in-linux
|
|
Alternative 1)
Then navigate to System > Administration > Printing and create a new printer, set it as a PDF file printer, and name it as “pdf”. Then run:
Now you’ll find your .pdf file in ~/PDF. Alternative 2)
|
also check
http://wvware.sourceforge.net/
and
http://www.abisource.com/
a nice javascript trick to quickly remove unwanted divs, images etc from a webpage and print nice and clean page
its simpler and easier than you think
place your dump at some location
and type the command as below at command prompt
$ sudo apt-get install antiword |
You can use dpkg to know more about antiword after installing it
$ dpkg -s antiword
source:http://joysofprogramming.com/install-antiword-ubuntu/
On CentOS
http://www.indianwebportal.com/install-xpdflibxp-antiword-linux
How to install xpdf , libXp and antiword on Linux (Centos or Redhat 32 Bit ) server
cd /usr/local/src/
Dowload following RPM’s files under the /usr/local/src/ directrory.
wget http://mit.edu/zacheiss/dev/rhlinux/redhat-7.1-updates/SRPMS/xpdf-0.92-4.71.0.src.rpm
wget ftp://ftp.univie.ac.at/systems/linux/fedora/core/6/i386/os/Fedora/RPMS/libXp-1.0.0-8.i386.rpm
wget http://dag.wieers.com/rpm/packages/antiword/antiword-0.37-3.el5.rf.i386.rpm
http://dag.wieers.com/rpm/packages/antiword/?N=A
Then
rpm -ivh xpdf-0.92-4.71.0.src.rpm
rpm -ivh libXp-1.0.0-8.i386.rpm
rpm -ivh antiword-0.37-3.el5.rf.i386.rpm
Then you can check it
root@server [/usr/local/src]# which xpdf
/usr/local/bin/xpdf
root@server [/usr/local/src]# which antiword
/usr/bin/antiword