Page 1 of 1

Email PHP output

Posted: Fri Feb 15, 2008 2:15 pm
by micknc
I have been trying to email the output of a php file and I was directed to Swift Mailer. Will it do the following:

I have a php file that converts a table to xls for downloading. I would like to be able to email the resulting xls but it is pretty dynamic table so downloading it first and then sending it is just not an option. Currently I just send the link to people and have them download it for themselves but I would like to just attach it for them.

What do you think? Will it do it?

Re: Email PHP output

Posted: Fri Feb 15, 2008 4:40 pm
by Chris Corbyn
You could send it as an attachment with swift yes ;)

Re: Email PHP output

Posted: Sun Feb 17, 2008 9:34 pm
by micknc
In case someone stumbles on here looking for the same solution I thought I would let you know where I finally found some direction.

Here is a little tutorial that really got me to be able to attach the output of my page. It is written for phpmailer but I used it with swift mailer with very little effort.

Enjoy.

http://www.beginnercode.com/index.php/ ... hpmailer/