I am creating a PHP system that will forward emails, (ie. [email protected] to [email protected]) without using an SMTP server which is faster and more stable? PEAR::Mail or PHP: Mail? (or another one entirely)
I would be using extra headers and attachments but mainly trying to keep it looking and acting the same. (if anyone has an example for forwarding with attachments PLEASE provide it!)
And not exactly on the side but is there a way for people to be able to send email from they're [email protected] email address without having a complete inbox etc?
It would probably be better for me to use a real email provider but these are supposed to be free email addresses so paying by the email address is not an option, if anyone knows of a service that: charges by the month or year, has an API that email addresses can be created from and that can set up email forwards via the API that would be most appreciated.
I currently have a partial system together but would like to know which way I should go first.
Thank you all.
The PEAR class supports multiple mailer backends, which allows you to switch whenever needed and you'll be able to perform some benchmarks and see which backend suits you best. The native mail function on the other hand is much less advanced and will show a clear difference in performance, especially for that amount of mails.
I also suggest you have a look at PEAR's mail queue class: http://pear.php.net/package/Mail_Queue
This is much more recommended for larger projects such as yours, you'll also be able to implement a cron like feature which will send a certain amount of mail per period you choose.