sc_mail_send

hy, this is script that works, but if i change the name of attachment in pdf not work:

Ex. 1:
sc_mail_send(‘smtp.meuserver.com.br’, ‘usr’, ‘pw’, ‘from@netmake.com.br’, ‘to@netmake.com.br’, ‘Test Email Subject’, ‘Message’, ‘H’, ‘abc@cop.com.br;zxy@cop.com.br’, ‘H’, ‘’, ‘’, ‘c:/test/arq.txt’);

i want load a file in local, and change c:/test/arq.txt with c:/test/test.pdf

Hello,

Try to send, using a real pdf file.
Maybe it’s corrupted when you change a txt file to pdf file forced.

Regards,

hy, i use this script and works fine, but i want change for use a file of my pc in local not server,thanks…bye…

{

$testo=‘Con la presente inviamo in allegato Fattura, cordiali saluti, Hotel xxx-xxx-xxxx(no)-Tel xxxxx’;

sc_mail_send(‘mail.xxxxxxx’, ‘xxx@xxxx.it’, ‘xxxxx’, ‘x@virgilio.it’, [email], ‘xxxx’, $testo, ‘H’, ‘x@virgilio.it’, ‘H’, ‘’, ‘’,’/var/www/vhosts/xxxx.it/httpdocs/scriptcase/tmp/fattura.pdf’, );

}