Indigo Rose Software
  #46  
Old 2 Weeks Ago
boku's Avatar
boku boku is offline
Forum Member
 
Join Date: Mar 2009
Location: I come from a land down under Where beer does flow and men chunder
Posts: 128
Hi Reteset,

It was never a question about the plugin mate ... I just wanted to know if the plugin encrypted user names and passwords with Base64 as required by some Microsoft exchange servers.
Reply With Quote
  #47  
Old 2 Weeks Ago
reteset's Avatar
reteset reteset is offline
Indigo Rose Customer
 
Join Date: May 2006
Location: <windows.h>
Posts: 649
Quote:
Originally Posted by boku View Post
Hi Reteset,

I just wanted to know if the plugin encrypted user names and passwords with Base64 as required by some Microsoft exchange servers.
i do not know

but plugin uses same API with Microsoft Exchange Server
__________________
Reply With Quote
  #48  
Old 2 Weeks Ago
reteset's Avatar
reteset reteset is offline
Indigo Rose Customer
 
Join Date: May 2006
Location: <windows.h>
Posts: 649
Quote:
Originally Posted by boku View Post
I just wanted to know if the plugin encrypted user names and passwords with Base64 as required by some Microsoft exchange servers.
to explain your question better i show a relevant part of send function that this plugin uses

this plugin is just a activex wrapper ,so it does nothing itself
it just redirects your informations to CDO ActiveX component of Windows operating system that is build-in since windows 2000 (maybe some older)

this is the relevant part of the source
it does not connect to inernet itself through sockets
and it does not send or receive SMTP commands like : EHLO , AUTH LOGIN


PHP Code:
CoInitialize(NULL);

HRESULT hr NULL;
IMessage *pMsg NULL;
IConfiguration *pConfig NULL;
Fields *pFields NULL;
Field *pField NULL;

     
hr CoCreateInstance(__uuidof(Message)
                      ,
NULL,CLSCTX_INPROC_SERVER,__uuidof(IMessage)
                      ,
reinterpret_cast<void**>(&pMsg));
if (
SUCCEEDED(hr)){

     
hr CoCreateInstance(__uuidof(Configuration)
                           ,
NULL,CLSCTX_INPROC_SERVER,__uuidof(IConfiguration)
                           ,
reinterpret_cast<void**>(&pConfig));
if (
SUCCEEDED(hr)){

pConfig->get_Fields(&pFields);


if (
pFields){

COleVariant sFname((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/sendusing");
pFields->get_Item(sFname.Detach(),&pField);
VARIANT varAs;
varAs.vt=VT_I4;
varAs.intVal=2;
pField->put_Value(varAs);

COleVariant sFname4((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate");
pFields->get_Item(sFname4.Detach(),&pField);
VARIANT varServerAuth;
varServerAuth.vt=VT_I4;
varServerAuth.intVal=Authenticated;
pField->put_Value(varServerAuth);


if (
Authenticated) {

COleVariant sFname5((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/sendusername");
pFields->get_Item(sFname5.Detach(),&pField);
COleVariant sUserName(szUserName);
pField->put_Value(sUserName.Detach());



COleVariant sFname6((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/sendpassword");
pFields->get_Item(sFname6.Detach(),&pField);
COleVariant sPassword(szPassWord);
pField->put_Value(sPassword.Detach());

}

COleVariant sFname7((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/smtpusessl");
pFields->get_Item(sFname7.Detach(),&pField);
VARIANT varServerSsl;
varServerSsl.vt=VT_I4;
varServerSsl.intVal=UseSSL;
pField->put_Value(varServerSsl);

pFields->Update();

}


hr pMsg->put_Configuration(pConfig);

if (
SUCCEEDED(hr)){

hr pMsg->Send();

}
}
}
if (
pFields){
      
pFields->Release();
        }
if (
pField){
      
pField->Release();
        }

    if (
pMsg)
    {
        
pMsg->Release();
    }
    if (
pConfig)
    {
        
pConfig->Release();
    }

    
CoUninitialize(); 
__________________
Reply With Quote
  #49  
Old 1 Week Ago
alihady alihady is offline
Forum Member
 
Join Date: Aug 2009
Posts: 10
encoding problem

it work will but suddenly all messeages converted to unknown encoding
is thise from server or other ??
i use arabic languge
plz. help
Reply With Quote
  #50  
Old 1 Week Ago
boku's Avatar
boku boku is offline
Forum Member
 
Join Date: Mar 2009
Location: I come from a land down under Where beer does flow and men chunder
Posts: 128
Quote:
Originally Posted by reteset View Post
to explain your question better i show a relevant part of send function that this plugin uses

this plugin is just a activex wrapper ,so it does nothing itself
it just redirects your informations to CDO ActiveX component of Windows operating system that is build-in since windows 2000 (maybe some older)

this is the relevant part of the source
it does not connect to inernet itself through sockets
and it does not send or receive SMTP commands like : EHLO , AUTH LOGIN


PHP Code:
CoInitialize(NULL);

HRESULT hr NULL;
IMessage *pMsg NULL;
IConfiguration *pConfig NULL;
Fields *pFields NULL;
Field *pField NULL;

     
hr CoCreateInstance(__uuidof(Message)
                      ,
NULL,CLSCTX_INPROC_SERVER,__uuidof(IMessage)
                      ,
reinterpret_cast<void**>(&pMsg));
if (
SUCCEEDED(hr)){

     
hr CoCreateInstance(__uuidof(Configuration)
                           ,
NULL,CLSCTX_INPROC_SERVER,__uuidof(IConfiguration)
                           ,
reinterpret_cast<void**>(&pConfig));
if (
SUCCEEDED(hr)){

pConfig->get_Fields(&pFields);


if (
pFields){

COleVariant sFname((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/sendusing");
pFields->get_Item(sFname.Detach(),&pField);
VARIANT varAs;
varAs.vt=VT_I4;
varAs.intVal=2;
pField->put_Value(varAs);

COleVariant sFname4((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate");
pFields->get_Item(sFname4.Detach(),&pField);
VARIANT varServerAuth;
varServerAuth.vt=VT_I4;
varServerAuth.intVal=Authenticated;
pField->put_Value(varServerAuth);


if (
Authenticated) {

COleVariant sFname5((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/sendusername");
pFields->get_Item(sFname5.Detach(),&pField);
COleVariant sUserName(szUserName);
pField->put_Value(sUserName.Detach());



COleVariant sFname6((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/sendpassword");
pFields->get_Item(sFname6.Detach(),&pField);
COleVariant sPassword(szPassWord);
pField->put_Value(sPassword.Detach());

}

COleVariant sFname7((LPCTSTR)"http://schemas.microsoft.com/cdo/configuration/smtpusessl");
pFields->get_Item(sFname7.Detach(),&pField);
VARIANT varServerSsl;
varServerSsl.vt=VT_I4;
varServerSsl.intVal=UseSSL;
pField->put_Value(varServerSsl);

pFields->Update();

}


hr pMsg->put_Configuration(pConfig);

if (
SUCCEEDED(hr)){

hr pMsg->Send();

}
}
}
if (
pFields){
      
pFields->Release();
        }
if (
pField){
      
pField->Release();
        }

    if (
pMsg)
    {
        
pMsg->Release();
    }
    if (
pConfig)
    {
        
pConfig->Release();
    }

    
CoUninitialize(); 
It's just really wierd, I have turned all my security off to test this!

through telnet, I get the correct screen code 220 ... through my app I get FAILED_TO_CONNECT

It works with other servers, gmail, my isp but not the work smtp server...unless I auth myself and I manually encode my username and password with base64 encoding in telnet ... manually encoded the username and password in my app ... still FAILED_TO_CONNECT

Last edited by boku; 1 Week Ago at 07:42 AM.
Reply With Quote
  #51  
Old 17 Hours Ago
reteset's Avatar
reteset reteset is offline
Indigo Rose Customer
 
Join Date: May 2006
Location: <windows.h>
Posts: 649
Quote:
Originally Posted by alihady View Post
it work will but suddenly all messeages converted to unknown encoding
is thise from server or other ??
i use arabic languge
plz. help
i am not sure arabic is unicode or not
if it is unicode then AMS does not support unicode already

if it is not then , it is necessary to add something to this plugin to support for such languages

this plugin is not ideal for all purposses , becuase it uses simplest functionality of
CDO , and i am not going to update this plugin unless a bug found

because there are tons of methods and properties of CDO API
and it may take a long time to wrap all API to a plugin

i am working on a method to modify LuaCom plugin to automate
all CDO API in to a plugin , like Luacom does it for others

so far all of my attempts failed to send a SMTP mail with recent LuaCom plugin , i do not know why

if i can modify LuaCom plugin and automate CDO properties and methods
internally , then you can use Encoding property and all of others yourself

i am going to release it as a separated plugin CDO if it will work
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLite3 Action Plugin (free) reteset AutoPlay Media Studio 7.5 Plugins 22 08-07-2009 02:11 PM
FREE ACTION PLUGIN: Assert ShadowUK AutoPlay Media Studio 7.5 Discussion 25 02-22-2009 06:36 AM
FREE: UserMgmt Action Plugin TimeSurfer AutoPlay Media Studio 7.5 Discussion 2 04-27-2008 04:17 AM
Free WindowEx Action Plugin reteset AutoPlay Media Studio 7.5 Discussion 77 03-03-2008 10:45 PM
SUF6.0.0.2 -- installer hangs. jassing Setup Factory 6.0 4 12-20-2001 12:28 AM


All times are GMT -6. The time now is 08:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software