tags:

views:

86

answers:

3

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

+1  A: 

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

Sarfraz
+1  A: 

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

halfdan
A: 

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.

Alix Axel