Jump to content

Recommended Posts

Posted

Works very good; Thanks

I tested with exe,doc,txt and au3 files and it works.

I changed this in the script:

$DefaultSmtpServer = RegRead("HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001", "SMTP Server")

$rc = _INetSmtpMailCom($DefaultSmtpServer , "Your Name", "your@Email.Address.com", "CCadress1@test.com;CCadress2@test.com", "Test Subject", "Test <b>Body</b>", "test.au3;test3.au3")

Sapiente vince, rex, noli vincere ferro!

Posted

i use ypops and enter my server as 127.0.0.1 (localhost) this usually works in my other programs. I get a failure to login error after AUTH Login is sent to me. Any ideas? Ypops uses localhost to access yahoo mail accts.

The error reads: error code 2: message could not be sent to the smtp server. the transport error code was 0x80040217

thanks. :)

  • Developers
Posted

i use ypops and enter my server as 127.0.0.1 (localhost) this usually works in my other programs. I get a failure to login error after AUTH Login is sent to me. Any ideas? Ypops uses localhost to access yahoo mail accts.

The error reads: error code 2: message could not be sent to the smtp server. the transport error code was 0x80040217

thanks. :)

I don't know if a proxy program will work with this COM object... you will have to do some reseach on it..

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Com error:80020009

Error sending message, error code:2 Description:The message could not be sent to the SMTP server. The transport error code was 0x800ccc61. The server response was 560 See http://pobox.com/~djb/docs/smtplf.html.

I think maybe you should change

$objEmail.Textbody = $as_Body & @LF

to

$objEmail.Textbody = $as_Body & @CRLF

Thanks for the UDF.

Edited by lte5000
  • Developers
Posted

I think maybe you should change

$objEmail.Textbody = $as_Body & @LF

to

$objEmail.Textbody = $as_Body & @CRLF

Thanks for the UDF.

I haven't had problems yet but have updated the original post with UDF. :)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • 2 weeks later...
Posted

Hi,

Error compile at :

Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")

and

$objEmail = ObjCreate("CDO.Message")

Iam using v3.1.1, why?? help me please!!

THanks so much.

Posted

hi, everyone

Thanks for your replies

When run my scipt it maybe error at:

Error code:1 Description:0

THis is my code

Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")

$rc = _INetSmtpMailCom("smtp.mail.yahoo.com" , "Tran Duc", "tranducmille@yahoo.com", "", "Test Subject", "Test

<b>Body</b>", "test.au3;test3.au3")

Is there any problems about my code?

Thanks so much.

Posted

HI every people!

Please, Could you help me for send mail, it incorrect with my account, yahoo smtp...

Global $oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")

$rc = _INetSmtpMailCom("smtp.mail.yahoo.com" , "Tran Duc", "tranducmille@yahoo.com", "", "Test Subject", "Test

<b>Body</b>", "test.au3;test3.au3")

Thanks so much!

Posted

Hi, good job.

You might want to change the following:

If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress

If $s_BccAddress <> "" Then $objEmail.Cc = $s_BccAddress

to

If $s_CcAddress <> "" Then $objEmail.Cc = $s_CcAddress

If $s_BccAddress <> "" Then $objEmail.BCc = $s_BccAddress

Also, here are a couple of links to the MSDN site for further research on the CDO.Message object for anyone interested:

IMessage Interface

http://msdn.microsoft.com/library/default....e_interface.asp

Message CoClass

http://msdn.microsoft.com/library/default....age_coclass.asp

CDO: Part I

http://msdn.microsoft.com/library/default....ml/cDOpart1.asp

Vern

  • 4 weeks later...
Posted

Hi guys when I tried to use the code I had error

$ObjEmail.Send

$ObjEmail.Send^ERROR

Error: The requested action with this object has failed.

PS.Sorry to rise up all threads.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...