View Full Version : Trying to use PHPmailer after processing form

11 Feb 2010, 3:00 PM
I have a php program that sends an email after processing a form and doing updates. It is using FreakMailer, a PHPMailer extension. Has been working ok for months.

I have converted the app to an Ext (3.1) grid and form. When the php module (now invoked via getForm.submit) does the $mailer->send() I get the following error in firebug:

X syntax error ext-all line 7
(SMTP -> get_lines(): $data was ""\n

I have verified there is good data in the subject, to address, body.

Is the problem because the call to the module was via AJAX? Anyone have any experience with this?

12 Feb 2010, 5:02 AM
As usual, when I get a mile down the road, the answers I can't find at work come to me.
The SMTPDebug flag was set on. So the mailer program was trying to send a message back which, of course, didn't look like a "success" message.

All's well now. Hope this helps someone else!