How To Send Email With PHP 5-5.5.9 Smtp Send( ) Function On Ubuntu 14.04 -
i want send e-mail on ubuntu 14.04 smtp php. can't send e-mail because smtp-->send
function doesn't work. decided install pear mail packages. when ı want install php pear mail packages on terminal error occurs.
for example error occurs below when ı entered sudo pear install mail_mime
command terminal.
downloading mail_mime-1.8.9.tgz ... starting download mail_mime-1.8.9.tgz (33,796 bytes) .........done: 33,796 bytes not extract package.xml file "/tmp/pear/install/mail_mime-1.8.9.tgz" download of "pear/mail_mime" succeeded, not valid package archive error: cannot download "pear/mail_mime" download failed install failed
because of errors decided upgrade pear in system.i entered "pear upgrade" command error occurs below..
pear/pear dependency package "pear/xml_util" downloaded version 1.2.3 not recommended version 1.2.1, may compatible, use --force install pear/xml_util cannot installed, conflicts installed packages no valid packages found upgrade failed
i executed "pear clear-cache, pear update-channels" commands before " pear upgrade" command. commands executed "pear upgrade" didn't work because of errors above.
$mail = @$smtp->send(.. , .., ..);
function doesn't work. mail isn't sended.this send()
function worked 1.9.4 version of pear, 5.3.10 version of php , ubuntu 12.04. doesn't work 1.9.4 version of pear,5.5.9 php , ubuntu 14.04.
i added "sendmail_path"
part php.ini
file.but again couldn't install pear mail packages on terminal.
you can't install pear mail package on ubuntu 14.04. because pear didn't upload version ubuntu 14.04. can use swift mail package instead of smtp mail package php in ubuntu 14.04.
Comments
Post a Comment