swift_address class
Posted: Fri May 15, 2009 9:38 pm
Hi,
i am reading wiki's tutorial (http://swiftmailer.org/wikidocs/v3/tutorials/form2mail) how to send mails AND in the middle of the tutorial there are 2 lines:
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
but in my lib folder there are no such files.. so i write: require_once 'lib/swift_required.php';
(i found that in http://swiftmailer.org/docs/including-the-files )
but when i try to send the mail i get this error : Fatal error: Class 'Swift_Address' not found in C:\xampp\htdocs\email\handle_form.php on line 49 ; and line 49 is $sender =& new Swift_Address($email, $name);
so, can someone tell me whats the drill ?
EDIT::: I found out that wiki is for version 3 i have version 4.. so can someone tell me how to send html email for version 4?
i am reading wiki's tutorial (http://swiftmailer.org/wikidocs/v3/tutorials/form2mail) how to send mails AND in the middle of the tutorial there are 2 lines:
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
but in my lib folder there are no such files.. so i write: require_once 'lib/swift_required.php';
(i found that in http://swiftmailer.org/docs/including-the-files )
but when i try to send the mail i get this error : Fatal error: Class 'Swift_Address' not found in C:\xampp\htdocs\email\handle_form.php on line 49 ; and line 49 is $sender =& new Swift_Address($email, $name);
so, can someone tell me whats the drill ?
EDIT::: I found out that wiki is for version 3 i have version 4.. so can someone tell me how to send html email for version 4?