swift_address class

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
socialevil
Forum Newbie
Posts: 1
Joined: Fri May 15, 2009 9:29 pm

swift_address class

Post by socialevil »

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?
AlexC
Forum Commoner
Posts: 83
Joined: Mon May 22, 2006 10:03 am

Re: swift_address class

Post by AlexC »

http://swiftmailer.org/docs/message-body explains how to send HTML emails.

Regards,
Post Reply