Best practice for bulk multi-part mail


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Best practice for bulk multi-part mail
# 1  
Old 12-22-2006
Best practice for bulk multi-part mail

Hi, I am currently building a PHP/MySQL database that handles our offices newsletters. Now everything works great in the alpha with only a few names in the list, but I anticipate that once we fill it up (around 10,000) that this will not work from the PHP. I already have the script echo the emails to a database where I plan to have a cron perl script grab the info and send it to the Mail Transport Agent in chuncks. Now, I am completely new to perl, and it's been awhile since I did any work in unix, so go easy on me. Here are my questions if anyone can help.

I've seen some shell scripts that can send emails pretty easy, but they don't appear to be able to adjust the header information. I need to change, the From, and send as a multi-part text/plain text/html. Is there something I am missing?
Why is it so much harder to cron a php script than perl script for this? (Is it because the shells understand perl better?)
What is the best Perl package for sending multi-part emails? Quickly?
What is the best (free) MTA To use?

Thanks for the time,
_Stephen
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Multi head/multi window hello world

I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
Discussion started by: advorak
2 Replies

2. Shell Programming and Scripting

How to zip or rm the multi part named files?

Hello There, There are more than 1000 files in my log folder and i want to zip it to relase the space. But my method throwing syntax error due to the multi part file name, how to overcome in this ? ls -lart | grep "MDB_Kernel11.1_gwlog_SUN 22_09_2013" | awk '{print $9,$10,$11,$12}' | head... (8 Replies)
Discussion started by: gowthamakanthan
8 Replies

3. Shell Programming and Scripting

How to substract selective values in multi row, multi column file (using awk or sed?)

Hi, I have a problem where I need to make this input: nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b look like this output: nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies

4. Shell Programming and Scripting

Retreiving part of a mail ID

Hi all, I want to retrieve a part of the mail ID. Im using Ksh. The mail ID's i handle are of the type: abc.def@ghi.com I want the abc part alone. Here is the code i used: a=`echo $mailid |sed 's/\(.*\)..../\1/'` echo $a but the output i get is abc.def@ghi I dont know... (2 Replies)
Discussion started by: Jayaraman
2 Replies

5. Shell Programming and Scripting

mail file part

hi, i want to send last 10 lines of a file.. How can acheive that. i tried this, but it is not working. mailx -s "$SUBJ" $MAIL_ID < $LOGFILE|tail -10 Can somebody guide me... (2 Replies)
Discussion started by: bang_dba
2 Replies

6. Shell Programming and Scripting

Change part of filenames in a bulk way

Hallo! I have generated lots of data file which all having this format: sp*t1overt2*.txt Now I want to change them in this way: sp*t2overt1*.txt The rest of the file names stay unchanged. I know this is kind of routine action in sed or awk, but dont know how! I tried this command: ... (6 Replies)
Discussion started by: forgi
6 Replies

7. Shell Programming and Scripting

Add color to part of the text in a mail sent from unix script

Hi, We are using KSH. I was able to write a script where a mail is sent to the concerned persons and this is working perfectly file. I need to give a different color to a part of the data in the mail which. The script written is as follows; (echo "From: $REPLY" echo "To: $DLIST" echo... (6 Replies)
Discussion started by: jmathew99
6 Replies

8. UNIX for Dummies Questions & Answers

multi part compressed files

Hi there, not sure if I am in the right place but here is my question. I have a file that is over 100mb and my host does not allow FTP of files above 100mb so I thought I would use a compression utility to compress it into smaller parts say 10mb each, upload them and then re-assemble them on... (7 Replies)
Discussion started by: gffb
7 Replies

9. UNIX for Dummies Questions & Answers

Multi User Multi Task

Dear Experts Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task?? Thanks for your help in... (6 Replies)
Discussion started by: Reza Nazarian
6 Replies

10. UNIX for Dummies Questions & Answers

bulk mail as a background job

I presently use the php function mail() to send to a mailing list with over 5000 recipients. Even with blind copy, I get timed out and the process takes too long. I would like to set the job up as a background job. Can someone help me with the shell code for sending mailing as a background job. (2 Replies)
Discussion started by: HungryH
2 Replies
Login or Register to Ask a Question
MySQL::Diff::Database(3pm)				User Contributed Perl Documentation				MySQL::Diff::Database(3pm)

NAME
MySQL::Diff::Database - Database Definition Class SYNOPSIS
use MySQL::Diff::Database; my $db = MySQL::Diff::Database->new(%options); my $source = $db->source_type(); my $summary = $db->summary(); my $name = $db->name(); my @tables = $db->tables(); my $table_def = $db->table_by_name($table); my @dbs = MySQL::Diff::Database::available_dbs(); DESCRIPTION
Parses a database definition into component parts. METHODS
Constructor new( %options ) Instantiate the objects, providing the command line options for database access and process requirements. Public Methods o source_type() Returns 'file' if the data source is a text file, and 'db' if connected directly to a database. o summary() Provides a summary of the database. o name() Returns the name of the database. o tables() Returns a list of tables for the current database. o table_by_name( $name ) Returns the table definition (see MySQL::Diff::Table) for the given table. FUNCTIONS
Public Functions o available_dbs() Returns a list of the available databases. Note that is used as a function call, not a method call. COPYRIGHT AND LICENSE
Copyright (c) 2000-2011 Adam Spiers. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
mysqldiff, MySQL::Diff, MySQL::Diff::Table, MySQL::Diff::Utils AUTHOR
Adam Spiers <mysqldiff@adamspiers.org> perl v5.14.2 2012-04-06 MySQL::Diff::Database(3pm)