View Full Version : FREE : SMTP Action Plugin
reteset
05-17-2009, 01:24 PM
Here is a new action plugin
it is a smtp mailer
i know there are various smtp tools on the forum but
maybe you may find this native action plugin useful
all in one action
Some About Plugin :
It has 1 function/action
help file was not included yet
There is 1 example project within package which utilize plugin
Example made in AMS 7.5.1004.0
Plugin may send e-mails through your smtp server
Plugin supports attachments
Plugin supports SSL\TSL connections
Plugin compatible with most of free mail servers
Plugin uses CDO API and mostly firewall safe
Sample Usage Of Plugin :
tblMailProperties = {};
tblMailProperties.FromName = "Test";
tblMailProperties.FromEmail = "test@test.com";
tblMailProperties.To = "test@test.com";
tblMailProperties.HtmlBody = "<b>Test<//b>";
tblMailProperties.Subject = "Subject";
tblMailProperties.CC = "";
tblMailProperties.BCC = "";
tblServerProperties = {};
tblServerProperties.Server = "smtp.test.com";
tblServerProperties.ServerPort = 20;
tblServerProperties.UseSSL = true;
tblServerProperties.Authenticated = true;
tblServerProperties.UserName = "username";
tblServerProperties.PassWord = "******";
tblAttachments = {};
tblAttachments[1] = _SourceFolder.."\\AutoPlay\\Docs\\AttachmentTest.txt";
tblAttachments[2] = _SourceFolder.."\\AutoPlay\\Docs\\AttachmentTest2.txt";
result = SMTP.SendMail(tblMailProperties, tblServerProperties, tblAttachments);
You can also see some descriptions in sample AMS project
You can download it fom here (http://www.amsplugins.com/details.asp?ID=78&CID=1)
ShadowUK
05-17-2009, 01:47 PM
very nice, got my download.
Tomasin
05-17-2009, 02:08 PM
thanks!!
but fail with gmail?
Flash.SetVisible("Flash1", true);
Label.SetVisible("Label1", true);
-- %%%%%%%%%%%%%%%%%% Mail Properties %%%%%%%%%%%%%%%%%%
tblMailProperties = {};
tblMailProperties.FromName = "Test";
tblMailProperties.FromEmail = "email@gmail.com";
tblMailProperties.To = "emailto@hotmail.com";
--tblMailProperties.TextBody = "Test";
tblMailProperties.HtmlBody = "<b>Test<//b>";
tblMailProperties.Subject = "Subject";
tblMailProperties.CC = "";
tblMailProperties.BCC = "";
-- %%%%%%%%%%%%%%%%%% Server Properties %%%%%%%%%%%%%%%%%%
tblServerProperties = {};
tblServerProperties.Server = "smtp.gmail.com";
tblServerProperties.ServerPort = 20;
tblServerProperties.UseSSL = true; -- or false
tblServerProperties.Authenticated = true; -- or false
tblServerProperties.UserName = "email@gmail.com"; -- if Authenticated = false you do not need to define this table index
tblServerProperties.PassWord = "password"; -- if Authenticated = false you do not need to define this table index
-- %%%%%%%%%%%%%%%%%% Attacments %%%%%%%%%%%%%%%%%% -- Set to nil if no attachments
tblAttachments = {};
tblAttachments[1] = _SourceFolder.."\\AutoPlay\\Docs\\AttachmentTest.txt";
tblAttachments[2] = _SourceFolder.."\\AutoPlay\\Docs\\AttachmentTest2.txt";
-- %%%%%%%%%%%%%%%%%% Send Mail %%%%%%%%%%%%%%%%%%
result = SMTP.SendMail(tblMailProperties, tblServerProperties, tblAttachments);
-- result = "OK" on succeed and a Error Description on failure
Flash.SetVisible("Flash1", false);
Label.SetVisible("Label1", false);
Dialog.Message("Notice", result, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
return IDispacht error # 19
Tomasin
05-17-2009, 02:13 PM
ok solved!
port = 25
Thanks!! works perfect!
Imagine Programming
05-17-2009, 02:36 PM
Once again a nice job, thanks!
Imagine Programming
05-17-2009, 02:43 PM
What's error #19? I'm messing up somewhere.
I'm using the correct port for my server (25)
*EDIT, forgot to turn of SSL, solved.
Tomasin
05-18-2009, 03:20 PM
reteset
this plugn not work in Windows 7 64 bits (aplication crash on send email)
Tomasin
05-18-2009, 03:39 PM
and...
In VISTA 64 bits not work
(now testing XP 64 bits...)
Dermot
05-18-2009, 04:36 PM
and...
In VISTA 64 bits not work
(now testing XP 64 bits...)
It works perfectly fine on Vista 64.
reteset
05-19-2009, 01:39 PM
and...
In VISTA 64 bits not work
(now testing XP 64 bits...)
Man , you should at least test it good before say , It does not work
i know , it works on Vista 32 and 64
if you can not run the plugin on your system ,this does not mean plugin does not work
and Windows 7 ; since Windows 7 is Beta and there are thousands of bug reports about it
i did not test this plugin on windows 7 , and i have no way to test it on Windows 7 right now
i did a research then your message and found something about SendUsing property
some comments referencing to this property but this property accepts only two values
those are :
1 Send using local mail server
2 Send using remote mail server
this plugin uses 2 for that property
it probably should be a version specific problem
if anyone willing to test and debug this plugin on Windows 7
i can prepare a custom debug version and attach to this theread
which writes some debug output to a file for send back to me
maybe i can find the issue and make this plugin compatible with Windows 7
with your support
thanks
Tomasin
05-19-2009, 03:10 PM
Plugin fail in my VISTA/WINDOWS 7 64 bits
this works, but on sendemail lock de application and close.
this is used in one dialogex, on suthdown event.
Tomasin
05-20-2009, 07:58 AM
More info reteset.
Tested in 3 system with vista 64 bits...
In 2 fail and in one works perfect :huh
I do not understand because it works for some and not in others ...
Could be the language of the operating system? (Spanish in this case).
Windows 7 32-bit if it works, but not in 64 bits.
Hope you provide this information. Un saludo
mohab1
05-21-2009, 07:28 AM
thank you it's work fine in windows 7 32
========i try this and work very fine and fast========
Gmail
smtp.gmail.com
port
465
============================================
windowslive + hotmail
smtp.live.com
port 25
yahoo
* Incoming Mail Server (POP3): plus.pop.mail.yahoo.com
Use SSL, port: 995
* Outgoing Mail Server (SMTP): plus.smtp.mail.yahoo.com
Use SSL, port: 465, use authentication.
rexzooly
06-10-2009, 11:26 AM
Hey all for some of you that have problems with port 25 you also might be blocked by your ISP what happens with most mobile broadband providers and
some smaller companys.
most email service have another port that can be used EG bluehost email
secand port is 26 and some are 2525 and some are hire range ports.
just thought i say this just in case it helps :yes
MicroByte
06-10-2009, 02:22 PM
lol, i threw my USB mobile modem in the bin, its useless, we went with PostOffice Home Phone+Broadband package but after 2 weeks i can say there customer service sucks, phone went down for 3 days and they denied there was a fault and said its my brand new phone that's at fault, few days later it seemed to *fix* itself and my faulty phone is no longer faulty
if anyone ever finds a UK ISP that is worth paying £25+ a month for plz let me know
as for 3G, im not supprized they blocked port 25, but then most non business lines have port 25 blocked, if you want it open you've got to pay for it.
Imagine Programming
06-10-2009, 04:48 PM
lol, i threw my USB mobile modem in the bin, its useless, we went with PostOffice Home Phone+Broadband package but after 2 weeks i can say there customer service sucks, phone went down for 3 days and they denied there was a fault and said its my brand new phone that's at fault, few days later it seemed to *fix* itself and my faulty phone is no longer faulty
if anyone ever finds a UK ISP that is worth paying £25+ a month for plz let me know
as for 3G, im not supprized they blocked port 25, but then most non business lines have port 25 blocked, if you want it open you've got to pay for it.
Ahh service and ISP's...
Well, a Dutch ISP called kpn, also does phone/mobile phone/tv. I've ordered a phone with a (how do you call it, a membership? sounds weird in this subject lol) but they messed up a few times and I still havn't recieved my correct SIM card... Also the phone started freezing up all of a sudden, but amazingly worked again after 2 days.
I wonder what the heck they're doing over there lol :lol
rexzooly
06-11-2009, 04:52 PM
lol, i threw my USB mobile modem in the bin, its useless, we went with PostOffice Home Phone+Broadband package but after 2 weeks i can say there customer service sucks, phone went down for 3 days and they denied there was a fault and said its my brand new phone that's at fault, few days later it seemed to *fix* itself and my faulty phone is no longer faulty
if anyone ever finds a UK ISP that is worth paying £25+ a month for plz let me know
as for 3G, im not supprized they blocked port 25, but then most non business lines have port 25 blocked, if you want it open you've got to pay for it.
3Pay not 3G lol hehe sorry, but ya they have there own SMTP server you can use to send emails from its there in here help file. i pay 15 a month for
mine and yes its poop but i am not going with a BT lines EVER again so i am stuck cos i am not in a Virgin Media location lol.
Freedom of speech and userfriendly internet seems to be going out of the
window these days lol.
rexzooly
06-15-2009, 08:02 AM
I have changed this to google mail to send some message from my program
and i get this error or Notice as it says:
"The event class for this subscription is in an invalid partion"
what do this mean? :huh
reteset
06-15-2009, 12:57 PM
Valid Server Properties For Google Mail
tblServerProperties = {};
tblServerProperties.Server = "smtp.gmail.com";
tblServerProperties.ServerPort = 465;
tblServerProperties.UseSSL = true;
tblServerProperties.Authenticated = true;
tblServerProperties.UserName = "username@gmail.com";
tblServerProperties.PassWord = "password";
Derek
06-17-2009, 03:14 PM
Thanks so much for this excellent plugin.
Seems to work fine here on Win7 RC x64 :yes
reteset
06-20-2009, 03:25 PM
Thanks so much for this excellent plugin.
Seems to work fine here on Win7 RC x64 :yes
Thanks for your kind words , and information
reteset
06-20-2009, 03:50 PM
Ok ,
i updated the plugin
returning native COM error decriptions was a bad idea
so i modified plugin and now it returns some error codes
this will help you to determine what happens when you send a mail
you can make comparison either Constants or their values
MAIL_SENT = 0; -- Succeed
UNCAUGHT_EXCEPTION = -2147220991;
NOT_AVAILABLE = -2147220984;
SMTP_SERVER_REQUIRED = -2147220982;
RECIPIENT_MISSING = -2147220980;
FROM_MISSING = -2147220979;
SMTP_SEND_FAILED = -2147220975;
CONNECTION_DROPPED = -2147220974;
FAILED_TO_CONNECT = -2147220973;
AUTHENTICATION_FAILURE = -2147220971;
HTTP_NOT_FOUND = -2147220968;
HTTP_FORBIDDEN = -2147220967;
HTTP_FAILED = -2147220966;
UNSAFE_OPERATION = -2147220963;
PROP_NOT_FOUND = -2147220962;
INVALID_SEND_OPTION = -2147220960;
BAD_DATA = -2147220951;
BAD_SENDER = -2147220941;
Click Here To Download (http://www.amsplugins.com/details.asp?ID=78&CID=1)
Imagine Programming
06-20-2009, 07:18 PM
Nice, now checking for errors will be easier, thank you :)
rexzooly
06-21-2009, 06:00 AM
Thanks for that i will reinstall this later, ya i fixed the google problem lol
i just spent time changing all the details hehe.
Not working with my own SSL but standard works lol.
Lorne
06-22-2009, 09:22 AM
reteset, remember to prefix those constants so they don't collide with other potential names already in use. Some of those are pretty common.
If you haven't already, put them in a table, e.g. you could put them in the SMTP table along with the SendMail function.
reteset
06-22-2009, 12:26 PM
reteset, remember to prefix those constants so they don't collide with other potential names already in use. Some of those are pretty common.
If you haven't already, put them in a table, e.g. you could put them in the SMTP table along with the SendMail function.
Yes you are right ,
actually they had been defined in cdosys.tlh with CDO_E_ prefix
i have cut them to make short constants , i think i did wrong
i updated plugin and changed constants like below
CDO_MAIL_SENT = 0; -- Succeed
CDO_E_UNCAUGHT_EXCEPTION = -2147220991;
CDO_E_NOT_AVAILABLE = -2147220984;
CDO_E_SMTP_SERVER_REQUIRED = -2147220982;
CDO_E_RECIPIENT_MISSING = -2147220980;
CDO_E_FROM_MISSING = -2147220979;
CDO_E_SMTP_SEND_FAILED = -2147220975;
CDO_E_CONNECTION_DROPPED = -2147220974;
CDO_E_FAILED_TO_CONNECT = -2147220973;
CDO_E_AUTHENTICATION_FAILURE = -2147220971;
CDO_E_HTTP_NOT_FOUND = -2147220968;
CDO_E_HTTP_FORBIDDEN = -2147220967;
CDO_E_HTTP_FAILED = -2147220966;
CDO_E_UNSAFE_OPERATION = -2147220963;
CDO_E_PROP_NOT_FOUND = -2147220962;
CDO_E_INVALID_SEND_OPTION = -2147220960;
CDO_E_BAD_DATA = -2147220951;
CDO_E_BAD_SENDER = -2147220941;
you can download new version from here (http://www.amsplugins.com/details.asp?ID=78&CID=1)
Thanks,
drgfx
06-22-2009, 10:42 PM
Love this plugin, it works like a champ from my old Windows-XP!
The mind is running wild thinking of all the things I can do with it...
Thank You again!
p.s.
Soon as I make a little money from one of my apps, I'll be donating..
Dave Wilson
06-30-2009, 03:52 PM
I have downloaded the plugin in hopes that it woild solve a problem that I have been working on for over a month.
I can send an e-mail using the File.OpenEmail command. When this works it works well.
But it only works with e-mail programs such as Outlook and Lotus Notes.
I'm trying to find a way for the user to fill in information and then attach to an e-mail. I tried editing the plugin to use my Yahoo.com e-mail address. but kept getting error
-2147220973 FAILED TO CONNECT.
I used the following:
tblServerProperties = {};
tblServerProperties.Server = "plus.smtp.mail.yahoo.com";
tblServerProperties.ServerPort = 465;
tblServerProperties.UseSSL = true; -- or false
tblServerProperties.Authenticated = false; -- or false
tblServerProperties.UserName = "my_email@yahoo.com"; -- if Authenticated = false you do not need to define this table index
tblServerProperties.PassWord = "my_password"; -- if Authenticated = false you do not need to define this table index
Does anyone have any ideas on how to create a universal way to send an e-mail to the same address from many users?
thanks for your advice and any help,
reteset
06-30-2009, 04:52 PM
1: Goto Your Yahoo Mail Account And Enable POP3
2: Follow : Options -> POP3 And Redirection
3: Select : Web and POP Access
4: Press : Save Button
5: Add : Following Settings To Your Application
tblServerProperties = {};
tblServerProperties.Server = "smtp.mail.yahoo.com";
tblServerProperties.ServerPort = 465;
tblServerProperties.UseSSL = true;
tblServerProperties.Authenticated = true;
tblServerProperties.UserName = "someone@yahoo.com";
tblServerProperties.PassWord = "********";
6: Do Not Forget To Set Your Localized Email Address For UserName Field (E.G :someone@yahoo.de )
7: Press: Send SMTP Mail Button
8: Enjoy :p
Dave Wilson
07-01-2009, 07:16 AM
I'll give this a try. I think my problem is that our firewall blocks these requests.
I set up a Gmail account and tried this from home and it worked.
I'm still curious about using this for a way to have many customers submit a request by e-mail.
The only way I can see this working is to setup a dummy e-mail account and submit all requests from that account.
It would have to include the password in the script, which concerns me.
Has anyone found a better solution?
Thanks again for the advice.
Desrat
07-31-2009, 08:30 PM
Just like to say a big thank-you for this plugin, I had been toying with the PHP mail function which wasn't doing quite what I wanted and this offers a much more elegant soloution.
Once again great work and many thanks..
Tomasin
10-09-2009, 02:02 PM
On Windows 7 64 bits crash on send message :huh
reteset
10-09-2009, 02:53 PM
On Windows 7 64 bits crash on send message :huh
can you explain a bit more , i hope you do not try again to send email on application exit
or while a dialog around closing
this is a Activex wrapper and parent thread must be alive untill it finishes its job and return back
also if you send a mail when closing a dialog ,this means you are removing return address of action in memory ,in this case a application crash should be a expected result
Tomasin
10-10-2009, 03:50 AM
Not, this fail in all cases (in one page, in one dialogex, etc).
tested with simple page and send message crash the application
degger
10-11-2009, 09:26 PM
plugins in linux?
Dermot
10-11-2009, 09:38 PM
plugins in linux?
AMS is a Windows program so that means that all plugins are Windows. :wow
Hi Guys,
Is there anywhere you know of that I can get a propper desciption of the error codes that get returned. So that the customer can see what e.g. CDO_E_UNCAUGHT_EXCEPTION = -2147220991 really means?
Ta ;)
Dermot
10-22-2009, 09:35 PM
Those error constants are pretty descriptive, but here are some slightly longer ones from MS. http://msdn.microsoft.com/en-us/library/ms526287(EXCHG.10).aspx
Can I get a confirmation that user name and password are indeed encrypted with Base64? As I am having trouble connecting to our exchange server. My settings are definitely correct...
reteset
10-30-2009, 02:27 PM
Can I get a confirmation that user name and password are indeed encrypted with Base64? As I am having trouble connecting to our exchange server. My settings are definitely correct...
i am not sure about type of encryption that CDO applies
can you explain the error code that Send action returns
for example:
CDO_E_AUTHENTICATION_FAILURE = -2147220971;
also did you set SSL/TLS property correctly
tblServerProperties.UseSSL = true;
HI Reteset, yes my SSL is set to true be default....and auth is set bt default too ...
I ask about encryption because when I try to connnect the error message I get back is COULD_NOT_CONNECT but when I use telnet to test the server, I have to authenticate with my username and password but they have to be entered in their incrypted format, which is base64... through telnet works a treat
reteset
10-31-2009, 08:17 AM
CDO_E_FAILED_TO_CONNECT = -2147220973;
this means ; a connection with mail server has been never established
so your your login data was not sent already
probably a FireWall or a Antivirus software blocks your application to access internet
you should add your application to trusted zone of FireWall or Antivirus
bacause these programs (mostly) assume that your application is a malicious software unless you sign your application
... but it works with Gmail ... :huh ... i mean if i change just the settings to be the gmail mail server then it works ... I have even tried the IP address of the mail server just in case it couldn't find it ... still nada
reteset
11-03-2009, 01:40 PM
... but it works with Gmail ... :huh ... i mean if i change just the settings to be the gmail mail server then it works ... I have even tried the IP address of the mail server just in case it couldn't find it ... still nada
i am sure there is no problem with the plugin
maybe your server does not accept external connections
there shoud be a setting for it (i am not familiar with mail servers)
if you'll interested in
i can send you a alternative dll that i wrote in Delphi
so you can test sending mail with this one
if this will fail then the problem is your server
also you can try connecting to your mail server with other mail tools
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.
reteset
11-04-2009, 03:50 PM
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 :p
but plugin uses same API with Microsoft Exchange Server
reteset
11-05-2009, 01:23 PM
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
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();
alihady
11-13-2009, 08:52 PM
it work will but suddenly all messeages converted to unknown encoding
is thise from server or other ??
i use arabic languge
plz. help
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
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
reteset
11-21-2009, 03:02 PM
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
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.