Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
email merge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hgomersall
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2002
Posts: 135
Location: Cambridge, UK

PostPosted: Mon Feb 02, 2004 2:13 pm    Post subject: email merge Reply with quote

I would like to be able to send out emails from my machine with content that is based on a PostgreSQL back end. It is actually a set of accounts, which contains billing information (list of transactions etc), from Gnucash.

Are there any free packages that would let me perform this task? If not, how might I do it?

Thanks
Henry
Back to top
View user's profile Send private message
db_404
Guru
Guru


Joined: 05 Dec 2002
Posts: 336

PostPosted: Mon Feb 02, 2004 6:00 pm    Post subject: Reply with quote

If it comes to it, that doesn't sound too hard to do with a quick Python (Perl/Ruby etc..etc..etc..) script.

You'd just have a template doc, merge the data into the document, and send via your scripting languages smtp api.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Feb 02, 2004 9:14 pm    Post subject: Reply with quote

Heck it's even easier then that.

get data from db
process it into a file
cat file into sendmail which is a compatibility binary between all MTA's such as Postfix, Qmail, Exim, Sendmail, Courier and so on and address to a user.
Wash rinse repeat.
write script to process bounces. I suggest going with maildir format as it makes this step eaiser.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum