|
-
Jan 18th, 2009, 05:50 AM
#1
php mailing list?
i started doing a script to send emails with attachments to a mailing list in php, to move from client based emailing in VB, finally managed to send the attachments, but then i stumbled upon
Note: It is worth noting that the mail() function is not suitable for larger volumes of email in a loop. This function opens and closes an SMTP socket for each email, which is not very efficient.
For the sending of large amounts of email, see the » PEAR::Mail, and » PEAR::Mail_Queue packages.
here http://au.php.net/function.mail
the mailing can be up to 800 names (opt in only), with attachment (3.5Mb) and inserted image /s in personalised html message
although opening and closing the socket each time for emails of that size may be irrelevant anyway
any comments, suggestions or alternatives would be welcome
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|