The AntiAbuse headers will always be there, even if the message is not considered spam. This is simply the spam filter letting the rest of the world know it has done it's job.

I think the best thing to do here would be to go back a few versions, to where the only problem was the fact it was being spammed, and leave it for now - come back to it in a week or so when there has been some time to mull it over.

If you are sending with SMTP auth, there is no real reason for this not to work.

Do me a favour, try it with the SMTP details I will PM you with in a minute...

    DaveRandom;10973049 wrote:

    The AntiAbuse headers will always be there, even if the message is not considered spam. This is simply the spam filter letting the rest of the world know it has done it's job.

    I think the best thing to do here would be to go back a few versions, to where the only problem was the fact it was being spammed, and leave it for now - come back to it in a week or so when there has been some time to mull it over.

    If you are sending with SMTP auth, there is no real reason for this not to work.

    Do me a favour, try it with the SMTP details I will PM you with in a minute...

    Tried it with those settings, think its timed out again. Thanks.

    The Anti Abuse don't appear in other emails I receive, not sure why...

    Delivered-To: richcranney@googlemail.com
    Received: by 10.204.32.133 with SMTP id c5cs42270bkd;
            Sun, 23 Jan 2011 09:32:23 -0800 (PST)
    Received: by 10.42.174.65 with SMTP id u1mr3628644icz.55.1295803942033;
            Sun, 23 Jan 2011 09:32:22 -0800 (PST)
    Return-Path: <iworld@webg11.iworld.com>
    Received: from webg11.iworld.com (webg11.iworld.com [63.236.18.146])
            by mx.google.com with ESMTP id jv9si28889706icb.123.2011.01.23.09.32.21;
            Sun, 23 Jan 2011 09:32:22 -0800 (PST)
    Received-SPF: pass (google.com: best guess record for domain of iworld@webg11.iworld.com designates 63.236.18.146 as permitted sender) client-ip=63.236.18.146;
    Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of iworld@webg11.iworld.com designates 63.236.18.146 as permitted sender) smtp.mail=iworld@webg11.iworld.com
    Received: (from iworld@localhost)
    	by webg11.iworld.com (8.11.6/8.11.6) id p0NHWOi23774;
    	Sun, 23 Jan 2011 12:32:24 -0500
    Date: Sun, 23 Jan 2011 12:32:24 -0500
    To: richcranney@googlemail.com
    Subject: New Private Message at PHPBuilder.com
    From: "PHPBuilder.com" <jpalermo@internet.com>
    Auto-Submitted: auto-generated
    Message-ID: <20110123173220.6e0110594920@phpbuilder.com>
    MIME-Version: 1.0
    Content-Type: text/plain; charset="ISO-8859-1"
    Content-Transfer-Encoding: 8bit
    X-Priority: 3
    X-Mailer: vBulletin Mail via PHP

      It will be the OUTGOING server that adds the X-AntiAbuse headers, passing through it's own anti-spam processes. Well, it could be anywhere really, but if you get other messages into GoogleMail that don't have them, it's not Google that are adding them.

      It can be a real pain in the a**e all of this buisness, and I try to avoid getting involved with it, but I do know I have had something very close to the code above working before, for something I wrote a while ago. I have a suspiscion that, since you have had timeout's for both your own domain name and mine, the DNS on your hosting server is not configured right.

      You could try using 66.7.194.3 instead of mail.net... that I sent you for the 'host' parameter...

        DaveRandom;10973055 wrote:

        It will be the OUTGOING server that adds the X-AntiAbuse headers, passing through it's own anti-spam processes. Well, it could be anywhere really, but if you get other messages into GoogleMail that don't have them, it's not Google that are adding them.

        It can be a real pain in the a**e all of this buisness, and I try to avoid getting involved with it, but I do know I have had something very close to the code above working before, for something I wrote a while ago. I have a suspiscion that, since you have had timeout's for both your own domain name and mine, the DNS on your hosting server is not configured right.

        You could try using 66.7.194.3 instead of mail.net... that I sent you for the 'host' parameter...

        Seems to be having the same issue. Don't worry about it, I'll just use the localhost feature for the time being.

        Quick question as I can't find any info on google about it.
        Whats the advantage of using SMTP Auth over PHP mail()

          It's mostly about reverse DNS and blacklists/whitelists. It's v. complicated, but if you google those you might get some idea.

          Honestly, I'd kind of recommend not knowing - I hate knowing about email as it is monumentally boring and intensely irritating.

            Just a couple of comments about prior posts in this thread...

            DaveRandom wrote:

            For that you really will have to use PEAR::Mail or something similar. PHP's native mail() function (and by extension, my mail_attachments() function) do not send via a legitimate server, they effectively look up the MX record for the destination address and send the mail directly to the server for the remote domain.

            That's not true. PHP can't "send the mail directly" - it has to be an SMTP server that does that. Now, while you can indeed install an SMTP server on the web server and simply point PHP to 'localhost', this isn't always the case.

            Furthermore, there is no inherit difference between an SMTP server that requires authentication and one that does not. Remote mail servers can't tell which one you're using, thus there's no way for them to simply mark all messages as spam that originate from SMTP servers that do not require authentication.

            DaveRandom wrote:

            If you are sending with SMTP auth, there is no real reason for this not to work.

            Again, this is definitely not true. Sending through an SMTP server which requires authentication won't automagically fix the outgoing message to prevent it from being considered spam.

            To do that, you'd have to know why the message is being marked as spam in order to make it appear more legitimate. For example, it could have been blocked due to: Bayesian filters, SPF record, etc.

            @: Speaking of, I noticed that your domain (richardcranney.com) has no SPF record associated with it. If you have the ability to modify the DNS zone for your domain, you should add an SPF record (this site has a lot of info about SPF records, including a "wizard" to generate one for you). If you do not have this ability, you should contact your host and ask what needs to be done to get an SPF record added for your domain.

              bradgrafelman wrote:

              That's not true. PHP can't "send the mail directly" - it has to be an SMTP server that does that. Now, while you can indeed install an SMTP server on the web server and simply point PHP to 'localhost', this isn't always the case.

              That's my mistake. Since mail uses sendmail (please tell me I'm not wrong about that part!), and that is how sendmail is configured on my hosting server, I assumed this was always how it worked. I have just done a little more research into configuring the mail() function and found that it is WAY more complicated that I thought, just like every other part of the entire email system.

              bradgrafelman wrote:

              Furthermore, there is no inherit difference between an SMTP server that requires authentication and one that does not. Remote mail servers can't tell which one you're using, thus there's no way for them to simply mark all messages as spam that originate from SMTP servers that do not require authentication.

              Yes, and no. Sending via a legit SMTP server that requires auth is much less likely to result in Whitelist related spam flags and relaying refusals.

              bradgrafelman wrote:

              Sending through an SMTP server won't automagically fix the outgoing message to prevent it from being considered spam.

              This is very much true, simply relaying via a recognised good server does not mean the content of your email is any good. However, with the content being generated here, I don't think any of it should be treated as spam... Unless people are creating meetings about Viagra... 😉

              bradgrafelman wrote:

              I noticed that your domain (richardcranney.com) has no SPF record associated with it.

              Didn't even think to check that. Very good point. Indeed, I never actually thought to do an nslookup on the domain, which would have prevented me asking some unnecessary questions above...

              Hey, brad, you got any ideas as to why his script wasn't able to communicate via my SMTP server, and cannot connect to his SMTP via DNS/public IP, even with valid auth details?

                DaveRandom;10973093 wrote:

                mail uses sendmail (please tell me I'm not wrong about that part!)

                Well, yes and (mostly) no. On Windows, for example, there is no 'sendmail' binary installed. Instead, I believe PHP uses some internal SMTP library to communicate directly with the MTA specified in the 'SMTP' PHP directive. This is unless, of course, PHP has been configured to actually use an external script/binary on Windows.

                Even in the *nix world that statement could be false; there are a few other popular MTA's out there, such as qmail or postfix.

                DaveRandom;10973093 wrote:

                Sending via a legit SMTP server that requires auth is much less likely to result in Blacklist/Whitelist related spam flags.

                But therein lies the (incorrect) assumption you're making that a "legit" SMTP server is simply one that requires authentication. This is certainly not true; my personal desktop computer, for example, is not a "legit" SMTP server for any domain, and yet I could very easily install an SMTP server and require authentication to use it.

                Likewise, I have configured and used internal SMTP relay servers (don't get me started on any Exchange rants!) that were indeed authoritative for the domain yet they did not require authentication (since it would have been redundant - the firewall/ACLs took care of any unwanted connections).

                DaveRandom;10973093 wrote:

                simply relaying via a recognised good server does not mean the content of your email is any good.

                While your point is valid, that's not the one I was trying to make (especially after the clarification above). I was merely suggesting that because remote MTA's can not tell whether or not your SMTP server requires authentication, this factor should have no basis in determining why your messages would be marked as spam.

                DaveRandom;10973093 wrote:

                Hey, brad, you got any ideas as to why his script wasn't able to communicate via my SMTP server, and cannot connect to his SMTP via DNS/public IP, even with valid auth details?

                I would have to see the exact error messages that PHP is logging. My first guess would be that a firewall is (correctly) configured to block access to external SMTP servers.

                  bradgrafelman wrote:

                  But therein lies the (incorrect) assumption you're making that a "legit" SMTP server is simply one that requires authentication. This is certainly not true; my personal desktop computer, for example, is not a "legit" SMTP server for any domain, and yet I could very easily install an SMTP server and require authentication to use it.

                  While I do accept this, I do also believe that a recognised MTA (recognised that is by SpamHaus and the like) will USUALLY require auth for relaying from clients, since maintaining a firewall/ACL for a bunch of clients that will often have dynamic IP's etc and do not use SSL/TLS would be a complete nightmare.

                  Simply requiring auth does not make your server legit, but MOST legit servers require auth.

                  All of this conversation is exactly why I said

                  DaveRandom wrote:

                  Honestly, I'd kind of recommend not knowing - I hate knowing about email as it is monumentally boring and intensely irritating.

                  .

                  I hate it. I hate it I hate it I hate it. And I don't even know that much...

                  PS. You wanna come and maintain my mail server? 😉

                    bradgrafelman;10973096 wrote:

                    Well, yes and (mostly) no. On Windows, for example, there is no 'sendmail' binary installed. Instead, I believe PHP uses some internal SMTP library to communicate directly with the MTA specified in the 'SMTP' PHP directive. This is unless, of course, PHP has been configured to actually use an external script/binary on Windows.

                    Even in the *nix world that statement could be false; there are a few other popular MTA's out there, such as qmail or postfix.

                    But therein lies the (incorrect) assumption you're making that a "legit" SMTP server is simply one that requires authentication. This is certainly not true; my personal desktop computer, for example, is not a "legit" SMTP server for any domain, and yet I could very easily install an SMTP server and require authentication to use it.

                    Likewise, I have configured and used internal SMTP relay servers (don't get me started on any Exchange rants!) that were indeed authoritative for the domain yet they did not require authentication (since it would have been redundant - the firewall/ACLs took care of any unwanted connections).

                    While your point is valid, that's not the one I was trying to make (especially after the clarification above). I was merely suggesting that because remote MTA's can not tell whether or not your SMTP server requires authentication, this factor should have no basis in determining why your messages would be marked as spam.

                    I would have to see the exact error messages that PHP is logging. My first guess would be that a firewall is (correctly) configured to block access to external SMTP servers.

                    Wow, you two have just gone well over my head, but that last statement is correct. I found out the server I am hosted on has a firewall that blocks all SMTP servers. Shame it took 5 techies not to notice that and one of the system admins to advise me after much, much nagging!

                    I'm going to have a look at this SPF part, thanks for the heads up and thanks to everyone for their help, again!

                      Hello,
                      I am working on calendar too.
                      I have a few problem, so if you have solving this can I see all the code?

                      I looked all post here, it has some include file, so I can't get it all right.

                      Could you please?
                      I really appreciate for this.
                      Thank you.

                        2 months later

                        Hi, I still with the noname file problem > could you please give a hand?

                        <?php 
                        
                        //$firstname is the first name of target 
                        //$lastname is the last name of target 
                        //$email is the targets email address 
                        //$meeting_date is straight from a DATETIME mysql field and assumes UTC. 
                        //$meeting_name is the name of your meeting 
                        //$meeting_duretion is the duration of your meeting in seconds (3600 = 1 hour) 
                        $firstname = "John"; 
                        $lastname = "Smith"; 
                        $email = "nacarato@gmail.com"; 
                        $meeting_date = "2011-02-25 13:40:00"; //mysql format 
                        $meeting_name = "Hello"; 
                        $meeting_duration = 3600; 
                        
                        //returns true or false
                        $result = sendIcalEmail($firstname,$lastname,$email,$meeting_date,$meeting_name,$meeting_duration);
                        
                        //display result
                        if($result) {
                            echo "Email sent successfully.";
                        } else {
                            echo "A problem occured sending email";
                        }
                        
                        
                        function sendIcalEmail ($firstname,$lastname,$email,$meeting_date,$meeting_name,$meeting_duration) {
                        require_once('Mail.php');
                        require_once('Mail/mime.php');
                           // Data about the sender & email
                            $from_name = "Marcello"; 
                            $from_address = "m@idscan.co.uk"; 
                            $subject = "Standing Order"; //Doubles as email subject and meeting subject in calendar 
                            $meeting_description = "IDscan Standing Order\n\n"; 
                            $meeting_location = "Bank"; //Where will your meeting take place 
                        
                           // SMTP details
                           $smtp_params = array (
                              "host" => "auth.smtp.1and1.co.uk", 
                              "port" => 25, 
                              "auth" => TRUE, 
                              "username" => "pdfphp@idscan.co.uk", 
                              "password" => "123change", 
                           );
                        
                           //Convert MYSQL datetime and construct iCal start, end and issue dates
                           $meetingstamp = strtotime($meeting_date . " UTC");
                           $dtstart= gmdate("Ymd\THis\Z",$meetingstamp);
                           $dtend= gmdate("Ymd\THis\Z",$meetingstamp+$meeting_duration);
                           $todaystamp = gmdate("Ymd\THis\Z");
                        
                           //Create unique identifier
                           $cal_uid = date('Ymd').'T'.date('His')."-".rand()."@idscan.co.uk";
                        
                           // Build sender/recipient in the form PEAR::Mail wants them
                           $sender = "$from_address";
                           $recipient = "$email";
                        
                           //Create Email Headers
                           $headers = array (
                             'From' => $sender,
                             'Reply-To' => $sender,
                             'Return-Path' => $sender,
                             'Subject' => $subject
                           );
                        
                           //Create Email Body (HTML)
                           $bodyhtml = "<html>\r\n<body>\r\n<p>Dear $firstname $lastname,</p>\r\n<p>Here is my HTML Email / Used for Meeting Description</p>\r\n</body>\r\n</html>";
                        
                           //Create ICAL Content (Google rfc 2445 for details and examples of usage)
                           $ical = "BEGIN:VCALENDAR
                        PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN 
                        VERSION:2.0 
                        METHOD:PUBLISH 
                        BEGIN:VEVENT 
                        ORGANIZER:MAILTO:$from_address 
                        DTSTART:$dtstart 
                        DTEND:$dtend 
                        LOCATION:$meeting_location 
                        TRANSP:OPAQUE 
                        SEQUENCE:0 
                        UID:$cal_uid 
                        DTSTAMP:$todaystamp 
                        DESCRIPTION:$meeting_description 
                        SUMMARY:$subject 
                        PRIORITY:5 
                        CLASS:PUBLIC 
                        END:VEVENT 
                        END:VCALENDAR";   
                        
                           // Create the Mime message object
                           $mime = new Mail_mime('\r\n');
                        
                           // Add the HTML to the object
                           $mime->setHTMLBody($bodyhtml);
                        
                           // Add the attachment
                           $file_name = "dispatch.ics";
                           $content_type = "text/calendar";
                           $mime->addAttachment ($ical, $content_type, $file_name, 0);
                        
                           // Get the MIME message
                           $body = $mime->get();
                           $headers = $mime->headers($headers);
                        
                           // Create an SMTP object
                           $mail =& Mail::factory("smtp", $smtp_params);
                        
                           // Send the message
                           //echo $mail->send($recipient, $headers, $body);
                           return ($mail->send($recipient, $headers, $body) === 1) ? TRUE : FALSE;
                        }  
                        ?>
                          
                          $firstname = $_REQUEST['firstname']; 
                          $lastname = $_REQUEST['lastname']; 
                          $email = $_REQUEST['email']; 
                          $meeting_date = $_REQUEST['meeting_date']; //mysql format 
                          $meeting_name = $_REQUEST['meeting_name']; 
                          $meeting_duration = $_REQUEST['meeting_duration']; 
                          
                          //returns true or false
                          $result = sendIcalEmail($firstname,$lastname,$email,$meeting_date,$meeting_name,$meeting_duration);
                          
                          //display result
                          if($result) {
                              echo "Email sent successfully.";
                          } else {
                              echo "A problem occured sending email";
                          }
                          
                          
                          function sendIcalEmail ($firstname,$lastname,$email,$meeting_date,$meeting_name,$meeting_duration) {
                          require_once('Mail.php');
                          require_once('Mail/mime.php');
                             // Data about the sender & email
                              $from_name = "Marcello"; 
                              $from_address = "m@mail.co.uk"; 
                              $subject = "Event"; //Doubles as email subject and meeting subject in calendar 
                              $meeting_description = "Event\n\n"; 
                              $meeting_location = "OK"; //Where will your meeting take place 
                          
                             // SMTP details
                             $smtp_params = array (
                                "host" => "auth.smtp.1and1.co.uk", 
                                "port" => 25, 
                                "auth" => TRUE, 
                                "username" => "pdfphp@mail.co.uk", 
                                "password" => "****", 
                                "debug" => TRUE 
                             );
                          
                             //Convert MYSQL datetime and construct iCal start, end and issue dates
                             $meetingstamp = strtotime($meeting_date . " UTC");
                             $dtstart= gmdate("Ymd\THis\Z",$meetingstamp);
                             $dtend= gmdate("Ymd\THis\Z",$meetingstamp+$meeting_duration);
                             $todaystamp = gmdate("Ymd\THis\Z");
                          
                             //Create unique identifier
                             $cal_uid = date('Ymd').'T'.date('His')."-".rand()."@mail.co.uk";
                          
                             // Build sender/recipient in the form PEAR::Mail wants them
                             $sender = "$from_address";
                             $recipient = "$email";
                          
                             //Create Email Headers
                             $headers = array (
                               'From' => $sender,
                               'Reply-To' => $sender,
                               'Return-Path' => $sender,
                               'Subject' => $subject
                             );
                          
                             //Create Email Body (HTML)
                             $bodyhtml = "<html>\r\n<body>\r\n<p>Dear $firstname $lastname,</p>\r\n<p>Here is my HTML Email / Used for Meeting Description</p>\r\n</body>\r\n</html>";
                          
                             //Create ICAL Content (Google rfc 2445 for details and examples of usage)
                             $ical = "BEGIN:VCALENDAR
                          PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN 
                          VERSION:2.0 
                          METHOD:PUBLISH 
                          BEGIN:VEVENT 
                          ORGANIZER:MAILTO:$from_address 
                          DTSTART:$dtstart 
                          DTEND:$dtend 
                          LOCATION:$meeting_location 
                          TRANSP:OPAQUE 
                          SEQUENCE:0 
                          UID:$cal_uid 
                          DTSTAMP:$todaystamp 
                          DESCRIPTION:$meeting_description 
                          SUMMARY:$subject 
                          PRIORITY:5 
                          CLASS:PUBLIC 
                          END:VEVENT 
                          END:VCALENDAR";   
                          
                             // Create the Mime message object
                             $mime = new Mail_mime('\r\n');
                          
                             // Add the HTML to the object
                             $mime->setHTMLBody($bodyhtml);
                          
                             // Add the attachment
                          	$file_name = "ok.ics";
                          	$content_type = "text/calendar";
                          	$mime->addAttachment ($ical, $content_type, $file_name, 0);
                          
                             // Get the MIME message
                             $body = $mime->get();
                             $headers = $mime->headers($headers);
                          
                             // Create an SMTP object
                             $mail =& Mail::factory("smtp", $smtp_params);
                          
                             // Send the message
                             echo $mail->send($recipient, $headers, $body);
                             //return ($mail->send($recipient, $headers, $body) === 1) ? TRUE : FALSE;
                          }  

                          Return:

                          DEBUG: Recv: 220 auth.smtp.oneandone.co.uk (mrbap2) Welcome to 
                          Nemesis ESMTP server DEBUG: Send: EHLO localhost DEBUG: Recv: 250-
                          auth.smtp.oneandone.co.uk DEBUG: Recv: 250-STARTTLS DEBUG: Recv: 250-AUTH
                           LOGIN PLAIN DEBUG: Recv: 250-AUTH=LOGIN PLAIN DEBUG: Recv: 250-
                          PIPELINING DEBUG: Recv: 250-SIZE 120000000 DEBUG: Recv: 250 HELP DEBUG:
                           Send: STARTTLS DEBUG: Recv: 220 OK DEBUG: Send: EHLO localhost DEBUG: 
                          Recv: 250-auth.smtp.oneandone.co.uk DEBUG: Recv: 250-AUTH LOGIN PLAIN 
                          DEBUG: Recv: 250-AUTH=LOGIN PLAIN DEBUG: Recv: 250-PIPELINING DEBUG: 
                          Recv: 250-SIZE 120000000 DEBUG: Recv: 250 HELP DEBUG: Send: AUTH LOGIN 
                          DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: Send: 
                          cGRmcGhwQGlkc2Nhbi5jby51aw== DEBUG: Recv: 334 UGFzc3dvcmQ6 DEBUG: 
                          Send: MTIzY2hhbmdl DEBUG: Recv: 235 Authentication successful DEBUG: Send: 
                          MAIL FROM: DEBUG: Recv: 250 OK DEBUG: Send: RCPT TO: DEBUG: Recv: 250 OK 
                          DEBUG: Send: DATA DEBUG: Recv: 354 Enter mail, end with "." on a line by itself 
                          DEBUG: Send: MIME-Version: 1.0 Content-Type: multipart/mixed;\r\n 
                          boundary="=_db98f3c5d7b242b7d03e609ac368e218" From: m@mail.co.uk 
                          Reply-To: m@mail.co.uk Return-Path: m@mail.co.uk Subject: Test --
                          =_db98f3c5d7b242b7d03e609ac368e218\r\nContent-Transfer-Encoding: 
                          quoted-printable\r\nContent-Type: text/html; charset=ISO-8859-1\r\n\r\n\r\n\r\n
                          
                          Dear test11 test,
                          
                          \r\n
                          Here is my HTML Email / Used for Meeting Description
                          
                          \r\n\r\n\r\n--=_db98f3c5d7b242b7d03e609ac368e218\r\nContent-Transfer-Encoding: base64\r\nContent-Type: text/calendar;\r\n name=ok.ics\r\nContent-Disposition: attachment;\r\n filename=ok.ics\r\n\r\nQkVHSU46VkNBTEVOREFSDQpQUk9ESUQ6LS8vTWljcm9zb2Z
                          0IENvcnBvcmF0aW9uLy9PdXRsb29r\r\nIDExLjAgTUlNRURJUi8vRU4gDQpWRVJTSU9
                          OOjIuMCANCk1FVEhPRDpQVUJMSVNIIA0KQkVHSU46\r\nVkVWRU5UIA0KT1JHQU5J
                          WkVSOk1BSUxUTzptQGlkc2Nhbi5jby51ayANCkRUU1RBUlQ6MjAxMTEy\r\nMzFUMTM
                          wMDAwWiANCkRURU5EOjIwMTExMjMxVDE0MDAwMFogDQpMT0NBVElPTjpCYW5rIA
                          0KVFJB\r\nTlNQOk9QQVFVRSANClNFUVVFTkNFOjAgDQpVSUQ6MjAxMTAzMTdUMTg0
                          NTMwLTE1OTY2QGlkc2Nh\r\nbi5jby51ayANCkRUU1RBTVA6MjAxMTAzMTdUMTc0NTM
                          wWiANCkRFU0NSSVBUSU9OOklEc2NhbiBT\r\ndGFuZGluZyBPcmRlcgoKIA0KU1VNTUF
                          SWTpTdGFuZGluZyBPcmRlciANClBSSU9SSVRZOjUgDQpD\r\nTEFTUzpQVUJMSUMgDQ
                          pFTkQ6VkVWRU5UIA0KRU5EOlZDQUxFTkRBUg==\r\n\r\n--
                          =_db98f3c5d7b242b7d03e609ac368e218--\r\n . DEBUG: Recv: 250 Message 
                          0LjLuJ-1PUExp3Jt9-00dN2a accepted by mrbap2.kundenserver.de DEBUG: Send: 
                          QUIT DEBUG: Recv: 221 OK 1A problem occured sending email

                          And the email with only a noname file attached (without extension)

                          --=_db98f3c5d7b242b7d03e609ac368e218\r\nContent-Transfer-Encoding: 
                          quoted-printable\r\nContent-Type: text/html; charset=ISO-8859-
                          1\r\n\r\n<html>\r\n<body>\r\n<p>Dear test11 test,</p>\r\n<p>Here is my HTML 
                          Email / Used for Meeting Description</p>\r\n</body>\r\n</html>\r\n--
                          =_db98f3c5d7b242b7d03e609ac368e218\r\nContent-Transfer-Encoding: 
                          base64\r\nContent-Type: text/calendar;\r\n name=ok.ics\r\nContent-Disposition: 
                          attachment;\r\n 
                          filename=ok.ics\r\n\r\nQkVHSU46VkNBTEVOREFSDQpQUk9ESUQ6LS8vTWljcm9zb2Z
                          0IENvcnBvcmF0aW9uLy9PdXRsb29r\r\nIDExLjAgTUlNRURJUi8vRU4gDQpWRVJTSU9
                          OOjIuMCANCk1FVEhPRDpQVUJMSVNIIA0KQkVHSU46\r\nVkVWRU5UIA0KT1JHQU5J
                          WkVSOk1BSUxUTzptQGlkc2Nhbi5jby51ayANCkRUU1RBUlQ6MjAxMTEy\r\nMzFUMTM
                          wMDAwWiANCkRURU5EOjIwMTExMjMxVDE0MDAwMFogDQpMT0NBVElPTjpCYW5rIA0
                          KVFJB\r\nTlNQOk9QQVFVRSANClNFUVVFTkNFOjAgDQpVSUQ6MjAxMTAzMTdUMTg0NT
                          MwLTE1OTY2QGlkc2Nh\r\nbi5jby51ayANCkRUU1RBTVA6MjAxMTAzMTdUMTc0NTMw
                          WiANCkRFU0NSSVBUSU9OOklEc2NhbiBT\r\ndGFuZGluZyBPcmRlcgoKIA0KU1VNTUFS
                          WTpTdGFuZGluZyBPcmRlciANClBSSU9SSVRZOjUgDQpD\r\nTEFTUzpQVUJMSUMgDQp
                          FTkQ6VkVWRU5UIA0KRU5EOlZDQUxFTkRBUg==\r\n\r\n--
                          =_db98f3c5d7b242b7d03e609ac368e218--\r\n
                          

                            @: Can you add:

                            var_dump($headers);
                            var_dump($body);

                            to the code just before you call $mail->send() to send the message and let us know what the output is?

                              Hi Brad, thanks for the attention.

                              Follow the result (debug), quite the same to be honest.

                              And the email still with noname file instead of ok.ics

                              // Send the message
                              var_dump($headers);
                              var_dump($body);
                              echo $mail->send($recipient, $headers, $body);
                              //return ($mail->send($recipient, $headers, $body) === 1) ? TRUE : FALSE;

                              array(6) { ["MIME-Version"]=> string(3) "1.0" ["Content-Type"]=> 
                              string(66) "multipart/mixed;\r\n boundary="=_d8c0aa204ab8d25cd7130383a87b1697""
                               ["From"]=> string(14) "m@mail.co.uk" ["Reply-To"]=> string(14) 
                              "m@mail.co.uk" ["Return-Path"]=> string(14) "m@mail.co.uk" ["Subject"]=> 
                              string(14) "Standing Order" } string(1124) "--=_d8c0aa204ab8d25cd7130383a87b1697\r\nContent-Transfer-Encoding: 
                              quoted-printable\r\nContent-Type: text/html; charset=
                              ISO-8859-1\r\n\r\n\r\n\r\n
                              Dear Marcello tttt,
                              
                              \r\n
                              Here is my HTML Email / Used for Meeting Description
                              
                              
                              \r\n\r\n\r\n--=_d8c0aa204ab8d25cd7130383a87b1697\r\nContent-Transfer-
                              Encoding: base64\r\nContent-Type: text/calendar;\r\n name=ok.ics\r\
                              nContent-Disposition: attachment;\r\n 
                              filename=ok.ics\r\n\r\nQkVHSU46VkNBTEVOREFSDQpQUk9ESUQ6LS8vTWljcm9zb2Z
                              0IENvcnBvcmF0aW9uLy9PdXRsb29r\r\nIDExLjAgTUlNRURJUi8vRU4gDQpWRVJTSU9
                              OOjIuMCANCk1FVEhPRDpQVUJMSVNIIA0KQkVHSU46\r\nVkVWRU5UIA0KT1JHQU5J
                              WkVSOk1BSUxUTzptQGlkc2Nhbi5jby51ayANCkRUU1RBUlQ6MjAxMTEy\r\nMzFUMTM
                              wMDAwWiANCkRURU5EOjIwMTExMjMxVDE1MDAwMFogDQpMT0NBVElPTjpCYW5rIA0
                              KVFJB\r\nTlNQOk9QQVFVRSANClNFUVVFTkNFOjAgDQpVSUQ6MjAxMTAzMTdUMjMwN
                              TI0LTEzODc3QGlkc2Nh\r\nbi5jby51ayANCkRUU1RBTVA6MjAxMTAzMTdUMjIwNTI0Wi
                              ANCkRFU0NSSVBUSU9OOklEc2NhbiBT\r\ndGFuZGluZyBPcmRlcgoKIA0KU1VNTUFSWT
                              pTdGFuZGluZyBPcmRlciANClBSSU9SSVRZOjUgDQpD\r\nTEFTUzpQVUJMSUMgDQpFTk
                              Q6VkVWRU5UIA0KRU5EOlZDQUxFTkRBUg==\r\n\r\n--
                              =_d8c0aa204ab8d25cd7130383a87b1697--\r\n" DEBUG: Recv: 220 
                              auth.smtp.oneandone.co.uk (mreu0) Welcome to Nemesis ESMTP server DEBUG: 
                              Send: EHLO localhost DEBUG: Recv: 250-auth.smtp.oneandone.co.uk DEBUG: 
                              Recv: 250-STARTTLS DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250-
                              AUTH=LOGIN PLAIN DEBUG: Recv: 250-PIPELINING DEBUG: Recv: 250-SIZE 
                              120000000 DEBUG: Recv: 250 HELP DEBUG: Send: STARTTLS DEBUG: Recv: 220 OK 
                              DEBUG: Send: EHLO localhost DEBUG: Recv: 250-auth.smtp.oneandone.co.uk 
                              DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250-AUTH=LOGIN PLAIN 
                              DEBUG: Recv: 250-PIPELINING DEBUG: Recv: 250-SIZE 120000000 DEBUG: Recv: 
                              250 HELP DEBUG: Send: AUTH LOGIN DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: 
                              Send: cGRmcGhwQGlkc2Nhbi5jby51aw== DEBUG: Recv: 334 UGFzc3dvcmQ6 
                              DEBUG: Send: MTIzY2hhbmdl DEBUG: Recv: 235 Authentication successful DEBUG: 
                              Send: MAIL FROM: DEBUG: Recv: 250 OK DEBUG: Send: RCPT TO: DEBUG: Recv: 
                              250 OK DEBUG: Send: DATA DEBUG: Recv: 354 Enter mail, end with "." on a line by 
                              itself DEBUG: Send: MIME-Version: 1.0 Content-Type: multipart/mixed;\r\n 
                              boundary="=_d8c0aa204ab8d25cd7130383a87b1697" From: m@mail.co.uk Reply-
                              To: m@mail.co.uk Return-Path: m@mail.co.uk Subject: OKOK --
                              =_d8c0aa204ab8d25cd7130383a87b1697\r\nContent-Transfer-Encoding: quoted-
                              printable\r\nContent-Type: text/html; charset=ISO-8859-1\r\n\r\n\r\n\r\n
                              
                              Dear Marcello tttt,
                              
                              
                              
                              \r\n
                              
                              Here is my HTML Email / Used for Meeting Description
                              
                              
                              
                              \r\n\r\n\r\n--=_d8c0aa204ab8d25cd7130383a87b1697\r\nContent-Transfer-
                              Encoding: base64\r\nContent-Type: text/calendar;\r\n name=ok.ics\r\nContent-
                              Disposition: attachment;\r\n 
                              filename=ok.ics\r\n\r\nQkVHSU46VkNBTEVOREFSDQpQUk9ESUQ6LS8vTWljcm9zb2Z
                              0IENvcnBvcmF0aW9uLy9PdXRsb29r\r\nIDExLjAgTUlNRURJUi8vRU4gDQpWRVJTSU9
                              OOjIuMCANCk1FVEhPRDpQVUJMSVNIIA0KQkVHSU46\r\nVkVWRU5UIA0KT1JHQU5J
                              WkVSOk1BSUxUTzptQGlkc2Nhbi5jby51ayANCkRUU1RBUlQ6MjAxMTEy\r\nMzFUMTM
                              wMDAwWiANCkRURU5EOjIwMTExMjMxVDE1MDAwMFogDQpMT0NBVElPTjpCYW5rIA0
                              KVFJB\r\nTlNQOk9QQVFVRSANClNFUVVFTkNFOjAgDQpVSUQ6MjAxMTAzMTdUMjMwN
                              TI0LTEzODc3QGlkc2Nh\r\nbi5jby51ayANCkRUU1RBTVA6MjAxMTAzMTdUMjIwNTI0Wi
                              ANCkRFU0NSSVBUSU9OOklEc2NhbiBT\r\ndGFuZGluZyBPcmRlcgoKIA0KU1VNTUFSWT
                              pTdGFuZGluZyBPcmRlciANClBSSU9SSVRZOjUgDQpD\r\nTEFTUzpQVUJMSUMgDQpFTk
                              Q6VkVWRU5UIA0KRU5EOlZDQUxFTkRBUg==\r\n\r\n--
                              =_d8c0aa204ab8d25cd7130383a87b1697--\r\n . DEBUG: Recv: 250 Message 
                              0M8MDe-1PmXna3Rpa-00vtRP accepted by mreu0.kundenserver.de DEBUG: Send: 
                              QUIT DEBUG: Recv: 221 OK 1A problem occured sending email 
                              
                              
                                Write a Reply...