$email->FromName = 'Fax Delivery Receipt-Error' $subjmail="Ricevuta trasmissione fax a ".$lineedatifax."\n" $testomail= "Fax occupato o numero errato" $lineedatifax = file("/var/spool/mail2fax/wip/datifax.txt") $email->AddAttachment($file, basename($file) ) $filesattach = glob('/var/spool/mail2fax/wip/*') $email->FromName = 'Fax Delivery Receipt' We have to send an email to IMAP email account with only 1 pdf attach, and in the subject only the fax number: a Fax Delivery Receipt via email will be send to the sender.Ītt.: In this post I used FFA: but you can use instead SpanDSP and should be the same (I’m sure…), althought I’ve not tested ! We can use the very simple script below, that we can run automatically every 10 min using cron.Ītt.: In this script we are using an IMAP email account and the PHPmailer library. We have an asterisk pbx with Fax for Asterisk module from Digium installed correctly (or SpanDSP), and we want to implement in a very simple and fast way an email2fax procedure. The serious name is email to fax gateway, but we prefer to call it “email2fax in poor man style”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |