Reputation: 2546
I am creating a class that will handle mails and I am using PHP. I know how to send mail using PHP's native mail function. But i am trying to create an efficient mailing system within a class. I had come up with what all things i need to have in my class.
So how to make it in efficient way. I need ideas on what all things to take care of and other things. To validate email address i had seen a regex pattern that is a big one which is the standard. But if i use that it will be consuming more processing. Correct ?
And I do not want the email address to be considered as spam. What do you use for the above said things ?
Upvotes: 0
Views: 151
Reputation: 13189
You might consider using swiftmailer, as it has mostly everthing you want and is used in many products and frameworks, so you can be sure it's fairly stable. I use it for some time now, mostly within symfony1 and symfony2, and I think you'll have a hard time creating something similar.
Upvotes: 4