mail-body doesn't show

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
Janošik
Forum Newbie
Posts: 1
Joined: Tue Oct 28, 2008 1:54 am

mail-body doesn't show

Post by Janošik »

Hi there,

I just downloaded and installed SwiftMailer (Swift-3.3.3-php5.zip).
Now I'm trying to use the mailform I found here.

When I have the mail send to my hotmail-account, it works fine. But when I have it send to my adress at vlaamsemolshoop.be (hosted by one.com), the mail-body isn't send, or at least, it doesn't show in the mail...
Changing this in handle_form.php:

Code: Select all

//Create the message to send
$message =& new Swift_Message($title);
$message->attach(new Swift_Message_Part($body));
to this:

Code: Select all

//Create the message to send
$message =& new Swift_Message($title, $body);
will show the text in the mail, but only when there is no attachment added :? 8O (sending it to my hotmail still works fine)

What am I doing wrong and what can I do to correct this?

Thanks in advance!
Janošik.

[edit] the 'smoke-tests' all pass fine, to both my email-adresses [/edit]
Post Reply