Quote Originally Posted by [email protected] View Post
Hi PBertie,

I have tried your code and it works up to the last step. I get the following result:

array ( 'connection' => 'Connected: 220 mi23 ESMTP service ready ', 'ehlo' => '250-mi23 250-8BITMIME 250-SIZE 20480000 250-AUTH=PLAIN LOGIN 250-AUTH PLAIN LOGIN 250 STARTTLS ', 'authrequest' => '334 VXNlcm5hbWU6 ', 'authusername' => '334 UGFzc3dvcmQ6 ', 'authpassword' => '235 Authentication successful. ', 'mailfrom' => '250 Sender address accepted ', 'mailto' => '250 Recipient address accepted ', 'data1' => '354 Continue ', 'data2' => false, 'SUCCESS' => 'FALSE', )

as you can see 'data2' is false, but, i don't get any errors or anything. do you know why this is happening or how I can check what's going on.

Thank you so much in advance! and thank you for posting the code.
Best!
Sorry for a late reply but if anyone else is having trouble like this the problem seems to be with the message content. It could be lots of things so without seeing what the message is I couldn't say. I suggest trying it with a very simple message to rule that out.
It could be something specific to the mail server you are using too so you could find out what it is and google it's protocol and see if there's anything different its expecting to end the message. If so could you post it here so the code can be improved.
Thanks,