Search found 15 matches

by Kaitlyn2004
Wed Oct 17, 2007 12:10 pm
Forum: Swift Mailer
Topic: Problems with SMTP
Replies: 1
Views: 1578

Problems with SMTP

I have no problem sending through my SMTP server but one of my users is having issues with theirs. I am using the PHP4 version. When I input their SMTP information, I get: Fatal error: Uncaught Error of type [Swift_ConnectionException] with message [The SMTP connection failed to start [smtp.1oilpain...
by Kaitlyn2004
Sat Oct 06, 2007 9:53 am
Forum: Swift Mailer
Topic: Get body?
Replies: 3
Views: 1826

Oh right! duh! hha

And that builds the entire message, including multipart and attachments, embedded images, etc? (assuming each part is actually set)
by Kaitlyn2004
Fri Oct 05, 2007 7:06 pm
Forum: Swift Mailer
Topic: Get body?
Replies: 3
Views: 1826

Get body?

How can I get the content of the message that will be sent? I do not want to actually SEND it, but I want to get all the headers, the message parts, etc... (to run through a spam filter).

How do I GET the email without actually SENDING it?
by Kaitlyn2004
Thu Aug 02, 2007 5:24 am
Forum: Swift Mailer
Topic: Benchmark results
Replies: 1
Views: 1869

Benchmark results

Well I was initially very frustrated setting up SwiftMailer but now that I've got a better idea and things are running, I like. I ran a benchmark to make sure the solution was in fast quicker than PHPMailer. In MY software, the old method (PHPMailer)... the NEW method (some optimization outside of S...
by Kaitlyn2004
Wed Aug 01, 2007 11:00 pm
Forum: Swift Mailer
Topic: Build message?
Replies: 1
Views: 1297

Build message?

How can I "build" the message so that I could, for example, write it to a file rather than actually SEND it?

Including headers and everything, of course...
by Kaitlyn2004
Wed Aug 01, 2007 8:49 am
Forum: Swift Mailer
Topic: [SOLVED] Clear body
Replies: 7
Views: 2734

This: $text = $message->attach($text); attach() returns a string, but $text is a reference to an object before that happens. Yay! Worked! butt... it should use the $text in attach() before assigning it to the new $text...? If I have JUST text to send, then it sends it as a MIME message, as makes se...
by Kaitlyn2004
Wed Aug 01, 2007 8:40 am
Forum: Swift Mailer
Topic: [SOLVED] Clear body
Replies: 7
Views: 2734

The problem is with the attaching part, because replacing the $format checks with:

Code: Select all

$message->setBody('this is a test, alright?');
works
by Kaitlyn2004
Wed Aug 01, 2007 8:36 am
Forum: Swift Mailer
Topic: [SOLVED] Clear body
Replies: 7
Views: 2734

Ugh! Now I'm getting: Fatal error: Call to a member function getEncoding() on a non-object in Swift\Message\Mime.php on line 232 $mail =& new Mailer(); $message =& $mail->message; $message->setSubject($subject); $message->setFrom(new Swift_Address($fromEmail, $fromName)); $message->setReplyT...
by Kaitlyn2004
Wed Aug 01, 2007 4:07 am
Forum: Swift Mailer
Topic: [SOLVED] Clear body
Replies: 7
Views: 2734

[SOLVED] Clear body

I send out a personalized message to each person and have my own method for personalizing the data... for text e-mails I use: $message->setBody(); for HTML I use: $message->setBody(); $message->setContentType('text/html'); for text+HTML I use: $message->attach('text content'); $message->attach('html...
by Kaitlyn2004
Tue Jul 31, 2007 12:37 pm
Forum: Swift Mailer
Topic: Call to member function on non-object
Replies: 9
Views: 4330

Well, I'm stupid...(but I was tired and running on empty!)

The first thing I found was I had $mail->send... it should be $mail->mailer->send...

when I changed that I didn't receive "failed" or any other error, BUT I also didn't receive the email...
by Kaitlyn2004
Mon Jul 30, 2007 2:47 pm
Forum: Swift Mailer
Topic: Call to member function on non-object
Replies: 9
Views: 4330

Sent you a PM
by Kaitlyn2004
Mon Jul 30, 2007 7:59 am
Forum: Swift Mailer
Topic: Call to member function on non-object
Replies: 9
Views: 4330

Weird... I don't recall changing a single thing, but now my error is: Fatal error: Uncaught Error of type [Swift_Connection_Exception] with message [There was a problem reading line 1 of an SMTP response. The response so far was: []. It appears the connection has died without saying goodbye to us! T...
by Kaitlyn2004
Mon Jul 30, 2007 7:53 am
Forum: Swift Mailer
Topic: Call to member function on non-object
Replies: 9
Views: 4330

Unfortunately at this point I NEED to support PHP4...

there is no other call to set_error_handler appart from in /Swift/BatchMailer.php

Should I be making a specific call to load/enable logging, or what?
by Kaitlyn2004
Mon Jul 30, 2007 5:10 am
Forum: Swift Mailer
Topic: Call to member function on non-object
Replies: 9
Views: 4330

Call to member function on non-object

I am getting: Fatal error: Call to a member function isEnabled() on a non-object in .../Swift.php on line 407 It is checking if the log is enabled - swift has it set to null so I am unsure as to why swift would be trying to make that call? I don't have to use logging do I? Using php 5.2.2... Swift c...
by Kaitlyn2004
Wed May 30, 2007 7:47 am
Forum: Swift Mailer
Topic: Persistent connection
Replies: 2
Views: 1835

Persistent connection

If I want to send a different message to multiple subscribers, can SwiftMailer do this? Or does it need to reconnect for each e-mail?