blank page + called undefined function : solution inside
Posted: Thu Nov 08, 2007 10:56 pm
hi,
I am posting in a separate post in case another new user of swift mailer experiences the same problem as me and searches the forum for the answer.
I think I tried everything possible to get swiftmailer to work. I also created a gmail account to test the script, I tried all authentication methods but still: nothing. In the end I managed to get an "undefined function called..." error showing up on my screen.
possible solution:
for the blank screen:
at the beginning of the script, copy these 2 lines, that should return the errors on screen
for the "undefined function called":
I found out that in most of the tutorials the smtp connection was initiated as follows:
when the correct syntax is:
that sould solce the blank screen and the "called undefined function"
I am posting in a separate post in case another new user of swift mailer experiences the same problem as me and searches the forum for the answer.
I think I tried everything possible to get swiftmailer to work. I also created a gmail account to test the script, I tried all authentication methods but still: nothing. In the end I managed to get an "undefined function called..." error showing up on my screen.
possible solution:
for the blank screen:
at the beginning of the script, copy these 2 lines, that should return the errors on screen
Code: Select all
error_reporting(E_ALL);
ini_set('display_errors', true);for the "undefined function called":
I found out that in most of the tutorials the smtp connection was initiated as follows:
Code: Select all
$swift = new Swift(new Swift_Connection_SMTP("smtp.gmail.com", Swift_Connection_SMTP::PORT_SECURE, Swift_Connection_SMTP::ENC_TLS));Code: Select all
$smtp =& new Swift_Connection_SMTP("smtp.gmail.com", Swift_Connection_SMTP::PORT_SECURE, Swift_Connection_SMTP::ENC_TLS);that sould solce the blank screen and the "called undefined function"