I have used The Swift Mail and the Swift Mailer Component to send my
mails successfully
I have used the version 2.1.17 of Swift Mailer and Cake's version
1.1.15.5144

U can get the component and is using methods from
http://bakery.cakephp.org/articles/view/swiftmailer-component-tutorial#comment-1207

There I have already posted my solution
Now here I am doing it once again

I just modified the sendWrap function() [Which I am using to send my
mails] of the component.

This is how it looks now

function sendWrap($subject, $body, $type = plain',$data,$filename,
$type) {

$this->wrapBody($body, $type);
$this->mailer->addAttachment($data, $filename, $type);

return $this->send($subject);
}


For information on what is $data or other parameters used in the
addAttachment function
refer to the  Swift-2.1.17-php4\docs\example\attachment_smtp.php file



N.B.
Swift-2.1.17-php4 folder is the unpacked name of the Swift zip file
that u will download from the net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to