Tutorial :Best way to send attachment mail with out using SMTP classes in PHP



Question:

can any one please advice me to send attachment mail with out using SMTP classes in PHP


Solution:1

You can use the Swift Mailer which has great options other than attachments.


Solution:2

Take a look here. I personally find this very hard so I suggest you take a look at phpmailer.


Solution:3

I wrote a function that sends attachments via mail(), it has some flaws specially with encoding headers but you can learn how it's done and improve it if you like - check this question for the code.

I'd also like to add that SwiftMailer is an excellent PHP library to send emails, and you should favor it if you can over other custom implementations since it has continuous developments and fewer bugs.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »