Reputation: 618
can any one please advice me to send attachment mail with out using SMTP classes in PHP
Upvotes: 2
Views: 735
Reputation: 154603
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.
Upvotes: 0
Reputation: 34234
Take a look here. I personally find this very hard so I suggest you take a look at phpmailer.
Upvotes: 2
Reputation: 382806
You can use the Swift Mailer which has great options other than attachments.
Upvotes: 3