swift usage width encryption [solved]

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

swift usage width encryption [solved]

Post 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
Last edited by yacahuma on Fri Feb 01, 2008 11:40 am, edited 1 time in total.
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: swift usage width encryption

Post by yacahuma »

I found the examples. SORRY
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Re: swift usage width encryption

Post by Oren »

Please mark this post with: [solved]
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: swift usage width encryption

Post 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));
Post Reply