porrascarlos80 Posted April 11, 2010 Share Posted April 11, 2010 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! Link to comment https://forums.phpfreaks.com/topic/198248-bellonline-mailer-smtp-authentication-problem/ Share on other sites More sharing options...
teamatomic Posted April 11, 2010 Share Posted April 11, 2010 Use this one. It needs not modification to make SMTP authentication and has a decent set of example scripts that you can use out of the box. http://phpmailer.worxware.com/ HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/198248-bellonline-mailer-smtp-authentication-problem/#findComment-1040163 Share on other sites More sharing options...
andrewgauger Posted April 11, 2010 Share Posted April 11, 2010 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. Link to comment https://forums.phpfreaks.com/topic/198248-bellonline-mailer-smtp-authentication-problem/#findComment-1040165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.