Jump to content

Bellonline mailer , smtp authentication problem


porrascarlos80

Recommended Posts

:confused:

 

Hello ,

 

I dont know nothing about php, I just change values in scripts and upload them to my server.

 

I found this script very useful, but it doesnt use SMTP AUTHENTICATION.

 

Can someone please, modify it so that it uses SMT Authentication?

 

this is script its free and open source as far i know, can be downloaded script + form from here:

 

http://secure.bellonline.co.uk/dl.php?type=d&id=12

 

thank you!

 

 

Well, I read the script and it does use the mail() function and that would need to be converted to PEAR:mail function.  See the line mail($sendto_email, $mail_subject, $mail_message, $headers)?  That line is what would need to be modified to accomodate something such as the following:

 

$smtp = Mail::factory('smtp',

 

  array ('host' => $host,

 

    'auth' => true,

 

    'username' => $username,

 

    'password' => $password));

 

 

 

$mail = $smtp->send($to, $headers, $body);

 

http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

 

However, you are going to have to change the headers into an array rather than a line by line representation, get some variables to line up, and possibly handle the errors gracefully.  Go ahead and try to implement it, as this would be a great starting point to start using PHP rather than just setting variables.  Don't worry about it not working, just go ahead and try it out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.