Page 1 of 1

swift usage width encryption [solved]

Posted: Fri Feb 01, 2008 11:21 am
by yacahuma
hello,

I am trying to use swift to send a newsletter
i am stock in the first line

Code: Select all

 
$swift =& new Swift(new Swift_Connection_SMTP("smtp.gmail.com",465,ENC_SSL));
 
what is wrong there?

I know this is a great library but my biggest complaint about it still stands. I need more examples.
This is just my suggestion. Maybe open a how to section on this bb.
In my case is "how to send email using your gmail account?"

Thanks for the help

Re: swift usage width encryption

Posted: Fri Feb 01, 2008 11:27 am
by yacahuma
I found the examples. SORRY

Re: swift usage width encryption

Posted: Fri Feb 01, 2008 11:28 am
by Oren
Please mark this post with: [solved]

Re: swift usage width encryption

Posted: Fri Feb 01, 2008 11:29 am
by Zoxive
http://www.swiftmailer.org/wikidocs/v3/connections/smtp

Code: Select all

//Connect to Gmail (PHP5)
$swift = new Swift(new Swift_Connection_SMTP(
    "smtp.gmail.com", Swift_Connection_SMTP::PORT_SECURE, Swift_Connection_SMTP::ENC_TLS));
 
//Connect to Gmail (PHP4)
$swift =& new Swift(new Swift_Connection_SMTP(
    "smtp.gmail.com", SWIFT_SMTP_PORT_SECURE, SWIFT_SMTP_ENC_TLS));