Hi, i would like to know how to set up a php page to automatically send attachments(files on the server) to other e-mails. thnx in advance.

Recommended Answers

All 2 Replies

You will need to use the built in mail function, and either sendmail or another mailer class to actually send the mails. Each has their own syntax for attaching emails, so once you have determined which class you are using we can help you with the syntax.

You can use MAIL (and its derivatives) PHP PEAR packages to easily send e-mails with attachment.

For automation, Linux cron jobs, will serve as good as desired.

It takes little while for a beginner to experiment with Object-based PHP, PEAR and crons; still it is easy as is PHP.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.