What is the best PHP html mail script class? #html mail script
Edit
by adnan - 9 years ago (2015-08-03)
Send this mail every 15 days
| I want to send an email ever 15 days as a HTML newsletter. |
Ask clarification
2 Recommendations
crontab: Schedule cron jobs with ease.
This class can add scheduled jobs to a crontab file.
It can add a given task to a cron file tasks to be executed at time intervals specified in minutes, hours, days, months or week days.
The class executes the crontab program to read the specified cron job file and add it to the current user list of crontab entries.
| by Dave Smith 7620 - 9 years ago (2015-08-05) Comment
You can give this one a try to add the job to the apache crontab. |
- 2 Comments
6.
by adnan - 9 years ago (2015-08-05) in reply to comment 5 by Dave Smith Reply
how to use crontab class any example
7.
by Dave Smith - 9 years ago (2015-08-06) in reply to comment 6 by adnan Reply
There is a usage example and an information file in the package
Class that may be used to compose and send e-mail messages.
It features:
- User definable headers and body parts.
- MIME encoding of text and HTML body parts with user defined character encoding using quoted-printable.
- Addition of file parts (attachments) with automatic content type detection.
- Forwarding of messages received from somebody else as intact attachments
- Support for multipart/related messages (eg. HTML messages with embedded images, stylesheets, frames, etc..)
- Support for multipart/alternative messages (eg. text and HTML versions in the same message).
- Encoding of message headers with user defined character encoding using q-encoding.
- Definition of the error delivery address setting the Return-Path header calling sendmail program directly.
- Several sub-classes for sending messages by different methods: PHP mail() function, sendmail, qmail, SMTP (with support for authentication and direct delivery mode), maildrop in Microsoft IIS or Exchange Pickup folder.
- Wrappers that emulate the mail() function using the SMTP, sendmail and qmail delivery sub-classes.
- Support for sending personalized bulk mail by replacing the contents of the message parts that differ for each recipient.
- HTML and plain text message parts can be composed using template engines. An example that works with Smarty template engine is provided.
- Retrieving the composed message data or size without sending the message
| by Manuel Lemos package author 26695 - 9 years ago (2015-08-04) Comment
There are many PHP classes for that. I use this one that can send HTML or text messages, but the recommended process is to have both a HTML part and a text alternative part. If you do not do that, some mail systems consider it spam.
Try this example script that even shows how to embed images in the message if you need them there.
As for sending the message every 15 days, just setup your hosting crontab with a job to call a script that will send the message. |
- 4 Comments
1.
by Dave Smith - 9 years ago (2015-08-04) Reply
Or just use the class to process your posted newsletter whenever you are ready to send a new one, like every 15 days.
2.
by adnan - 9 years ago (2015-08-05) Reply
i want to automatic send newsletter every 15 days can u piz say me how to set time any one knows
3.
by adnan - 9 years ago (2015-08-05) Reply
i want setup a time for using script
4.
by adnan - 9 years ago (2015-08-05) Reply
sry for misunderstanding i want calling script evry 15 days automatic how?