Email PHP output

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
User avatar
micknc
Forum Contributor
Posts: 115
Joined: Thu Jan 24, 2008 11:13 pm

Email PHP output

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Email PHP output

Post by Chris Corbyn »

You could send it as an attachment with swift yes ;)
User avatar
micknc
Forum Contributor
Posts: 115
Joined: Thu Jan 24, 2008 11:13 pm

Re: Email PHP output

Post 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/
Post Reply