Page 1 of 1

SMTP login

Posted: Wed Apr 18, 2007 10:07 pm
by pinehead18
How on earth can i not find the area to set the smtp username and pass?

Help for the tired, extremely tired noob.

Thanks

Posted: Thu Apr 19, 2007 12:41 am
by Chris Corbyn
It's the bold section called "SMTP Authentication" in the Connections section of the wiki:

http://www.swiftmailer.org/wikidocs/v3/smtpauth

It's as simple as:

Code: Select all

$smtp =& new Swift_Connection_SMTP("...");
$smtp->setUsername(" ... ");
$smtp->setPassword(" ... ");

$swift =& new Swift($smtp);

where

Posted: Wed Sep 05, 2007 1:54 am
by jcbodyworks
now unto which file do I paste this code and where within that file?

Re: where

Posted: Wed Sep 05, 2007 9:21 am
by Chris Corbyn
jcbodyworks wrote:now unto which file do I paste this code and where within that file?
What code do you have so far? You don't have to modify any of the Swift files so you'll just need to modify whatever you have so far. Where you call "new Swift", just replace that with those lines of code ammended to fit your needs. If you have any trouble just post your code.