Forum OpenACS Q&A: Web email function - attach a voice file

Hi:

Would OACS web email function support voice file attachment with email content? If so, is there any web site using this function now?

Thanks a lot.
Winny

Collapse
Posted by Rainer Hahnekamp on
For attachments take a look at acs_mail_lite::complex_send. There you have the parameter file_ids where you can define your attached files.
I think there is still a bug if you use complex_send together with smtp...
Collapse
Posted by Malte Sussdorff on
It's not a bug, you just can't :). Complex send does not use the deliver mail functionality but directly calls the sendmail procedure as I was to lazy figuring out how make file attachments work with SMTP. Probably it would just work if you use the deliver functionality as the mime encoding of the body happens earlier, but at the time of coding I did not need it. So if someone is willing to test and get the deliver function with complex_send to work, this is highly appreciated.
Hi, we (Learn@WU) are already using the complex_send with smtp to attach files. So I think it is not impossible. Perhaps we should commit the code.
Yes, please do (commit the code).