Your opinion would be greatly appreciated
Posted by: Idkwid (---.lv.lv.cox.net)
Date: June 28, 2014 10:50PM

Version of Operating system Windows 7 premium
Version of Wamp Server installed 2.5
Version of Apache you are running 2.4.9
Version of MySQL you are running 5.6.17
Version of PHP you are running 5.5.12

Colour of the WampManager icon Green


First I wanted to Thanks RiggsFolly for the help, guidance and patience shown while I was researching options for setting up my server. WAMPServer turned out to be a fantastic choice. Easy to setup and configure. Once I worked out the differences in codeing PHP5 for for MySQL5 everything fell together quickly. Great Job !!

My ultimate goal is to create a automated mime email sender taking emails from my local DB and sending them BCC.

Research has shown that there are bascially 2 ways to accomplish this.

The easiest method seems is to create a php class SMTPmail. The code is already written. With some editing of the class file, the php.ini and the selection of Apache modules, be able to write the code to do the sending

The other way I've found is to install PEAR which seems to be more flexible in accomplishing my goal but more also more complicated.

All thoughts are welcome

Thanks

Options: ReplyQuote
Re: Your opinion would be greatly appreciated
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: June 28, 2014 11:01PM

Have a look at phpMailer. Its a php library that creates a php class.

You fill in the relevant parameters and off you go.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Your opinion would be greatly appreciated
Posted by: Idkwid (---.lv.lv.cox.net)
Date: June 29, 2014 01:07AM

Okay, excuse my idkwidness but I searched the wamp folder and i got zero results on phpMailer so I guess it's not included with the WampServer package. I googled it and only found examples of code but no library. The code below is the class I had found along with an SMTPconfig.php and index (form) php.
Is this what you suggested?? Thanks

SMTPclass.php
SMTP mail sending class.
/*<?php
class SMTPClient
{

function SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body)
{

$this->SmtpServer = $SmtpServer;
$this->SmtpUser = base64_encode ($SmtpUser);
$this->SmtpPass = base64_encode ($SmtpPass);
$this->from = $from;
$this->to = $to;
$this->subject = $subject;
$this->body = $body;

if ($SmtpPort == ""winking smiley
{
$this->PortSMTP = 25;
}
else
{
$this->PortSMTP = $SmtpPort;
}
}

function SendMail ()
{
if ($SMTPIN = fsockopen ($this->SmtpServer, $this->PortSMTP))
{
fputs ($SMTPIN, "EHLO ".$HTTP_HOST."\r\n"winking smiley;
$talk["hello"] = fgets ( $SMTPIN, 1024 );
fputs($SMTPIN, "auth login\r\n"winking smiley;
$talk["res"]=fgets($SMTPIN,1024);
fputs($SMTPIN, $this->SmtpUser."\r\n"winking smiley;
$talk["user"]=fgets($SMTPIN,1024);
fputs($SMTPIN, $this->SmtpPass."\r\n"winking smiley;
$talk["pass"]=fgets($SMTPIN,256);
fputs ($SMTPIN, "MAIL FROM: <".$this->from.">\r\n"winking smiley;
$talk["From"] = fgets ( $SMTPIN, 1024 );
fputs ($SMTPIN, "RCPT TO: <".$this->to.">\r\n"winking smiley;
$talk["To"] = fgets ($SMTPIN, 1024);
fputs($SMTPIN, "DATA\r\n"winking smiley;
$talk["data"]=fgets( $SMTPIN,1024 );
fputs($SMTPIN, "To: <".$this->to.">\r\nFrom: <".$this->from.">\r\nSubject:".$this->subject."\r\n\r\n\r\n".$this->body."\r\n.\r\n"winking smiley;
$talk["send"]=fgets($SMTPIN,256);
//CLOSE CONNECTION AND EXIT ...
fputs ($SMTPIN, "QUIT\r\n"winking smiley;
fclose($SMTPIN);
//
}
return $talk;
}
}
?>*/

Options: ReplyQuote
Re: Your opinion would be greatly appreciated
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: June 29, 2014 02:14AM

Come on.

google 'phpMailer' and the first result is [phpmailer.worxware.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Your opinion would be greatly appreciated
Posted by: Idkwid (---.lv.lv.cox.net)
Date: June 29, 2014 09:55PM

Yes, I followed that link. I appeared as an ad. I didn't follow the link further. Sorry.

If you know what you're doing, it's easy. If not, it looks extremely complicated. As stated in the Readme file
"Formatting email correctly is surprisingly difficult", especially if you're not familiar with all the variables.

I apologize if it seems I'm using your brain instead of mine. I don't mean to. Experience has proven that even a simple mistake can have very bad results. I'm just trying to avoid as many of them as possible

Many thanks

Options: ReplyQuote
Re: Your opinion would be greatly appreciated
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: June 30, 2014 01:36AM

That link goes to the wroxware.com website.

If you are seeing an advert then maybe you browser, or possible worse, has been compromised.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.