|
Posted by Dee on 05/14/05 05:03
NC wrote:
> Dee wrote:
>
>>I'm trying to get this script to work
>>
>>http://tinyurl.com/ay8nu
>>
>>I can install it - the thing is once it's run you can register but it
>
>
>>tries to email you your password
>>
>>It uses PHP Mailer BUT I can't see in the script where it tells PHP
>>Mailer to insert your SMTP Password
>
>
> First, look for a call to the PHPmailer constructor. It will
> look something like this:
>
> $mail = new PHPMailer();
>
> The "$mail" part can be something else, but the "new PHPMailer()"
> will have to be there no matter what. Simply put, this code
> causes creation of a PHPmailer object.
>
> Now, find the call to the Send() method later in the code.
> In the example above, it will look like this:
>
> $mail->Send()
>
> This is where PHPmailer attempts to send an e-mail message out.
>
> Now all you need to do is to add these calls (is they are not
> there already) anywhere in-between the two pieces of code
> described above:
>
> $mail->IsSMTP();
> $mail->Host = "smtp.example.com"; // your SMTP server
> $mail->SMTPAuth = true;
> $mail->Username = "me"; // your SMTP login name
> $mail->Password = "mypassword"; // your SMTP password
>
> Obviously, "$mail" may have to be replaced with the name defined
> in the constructor call.
>
> Cheers,
> NC
>
Hi NC,
Below is what I have so far in my config file - based on this can you
tell me what to add so PHP Mailer passes on the password - sorry I'm no
PHP programmer - although setup lots of phpBB forums, PHP Nuke, etc
// MAIL CONFIGURATION ----- ----------------------------------------------
// phpMailer. See http://phpmailer.sourceforge.net/ for settings
$c_node['mail']['host'] = "mail.zero.com";
$c_node['mail']['no_reply_address'] = "info@zero.com";
$c_node['mail']['default_address'] = "info@zero.com";
$c_node['mail']['mailer'] = "smtp";
$c_node['mail']['from_name'] = "zero";
$c_node['mail']['wordwrap'] = "80";
// This is the language for error messages which are not written to
screen, so
// it's not worth changing adjusting this
$c_node['mail']['language'] = "en";
Navigation:
[Reply to this message]
|