Estou usando essa:
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
$mail_copies,
$mail_tp_copies,
$mail_port,
$mail_tp_connection,
$mail_attachments);
em :
$mail_attachments = array( // List of attached files (located on the web server)
'../_lib/pdf/odc/'.[glo_nome_xml_odc]
);
e estou tendo o seguinte retorno:
Fatal error: Uncaught exception ‘Swift_IoException’ with message ‘Unable to open file for reading […/_lib/pdf/odc/OC-2015-07-278]’ in C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\prod\third\swift\classes\Swift\ByteStream\FileByteStream.php:136 Stack trace: #0 C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\prod\third\swift\classes\Swift\ByteStream\FileByteStream.php(80): Swift_ByteStream_FileByteStream->_getReadHandle() #1 C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\ContentEncoder\Base64ContentEncoder.php(41): Swift_ByteStream_FileByteStream->read(8190) #2 C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\SimpleMimeEntity.php(526): Swift_Mime_ContentEncoder_Base64ContentEncoder->encodeByteStream(Object(Swift_ByteStream_FileByteStream), Object(Swift_Transport_StreamBuffer), 0, 78) #3 C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\prod\third\swift\classes\Swift\Mime\SimpleMimeEntity.php(548): Swift_Mime_SimpleMimeEntity-> in C:\Program Files (x86)\NetMake\v8\wwwroot\scriptcase\prod\third\swift\classes\Swift\Transport\StreamBuffer.php on line 177
Está achando o caminho com o nome do arquivo certinho…mas nao anexa…