Smtp Mailer That Supports Html And Attachments.

650 posts in this topic




Posted

:) nicenicenice!!!! :mellow:

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

Posted

Works very fine.

Thanks a lot

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Posted

Hi,

Error compile at :

and

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

THanks so much.

You need the beta Beta

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Posted

I LOVE YOU!!!

I have been trying to do this for SOO long!!!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Posted

this script is great,I had sent email with my SOHU mail server.thank you very very much!

Share this post


Link to post
Share on other sites

Posted

I'm using CDO.Message for sending SMTP mails on WINXP too, thank you JdeB for that idea :think:

I want only say here for others: It's not working on WIN98 there isn't CDO.Message object/DLL.

Share this post


Link to post
Share on other sites

Posted

What is hotmail SMPT address?

Share this post


Link to post
Share on other sites

Posted

can you make it like a lib?

Share this post


Link to post
Share on other sites

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

header127 likes this

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Posted (edited)

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.

You didn't use the Com error handler portion of the posted code..

That should tell you more about why the send fails....

Edited by JdeB

Share this post


Link to post
Share on other sites

Posted

I'm having problems with this, I have this in the code:

$rc = _INetSmtpMailCom("smtp.mail.yahoo.com", "name", "email1@yahoo.ca", "email2@yahoo.ca", "subject", "message", "", "","", "email1username", "email1password")

I get error :

Error code:2 Description:The transport failed to connect to the server

Any help is appreciated, thanks

Share this post


Link to post
Share on other sites

Posted

I'm having problems with this, I have this in the code:

$rc = _INetSmtpMailCom("smtp.mail.yahoo.com", "name", "email1@yahoo.ca", "email2@yahoo.ca", "subject", "message", "", "","", "email1username", "email1password")

I get error :

Error code:2 Description:The transport failed to connect to the server

Any help is appreciated, thanks

Does it work when you use the same Servername/Userid/Password in outlook express ?

Share this post


Link to post
Share on other sites

Posted

Great script, I do have one minor question. When I beta run the script I keep getting an error "C:\Program Files\AutoIt3\beta\Autoemail.au3(34,65) : ERROR: _PathFull(): undefined function.

$S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x])"

The script will complete and run fine even including the attachment when there is one, just looking for some illumination as to what I might have incorrect.

Thanks in Advance,

Badger

Share this post


Link to post
Share on other sites

Posted

Great script, I do have one minor question. When I beta run the script I keep getting an error "C:\Program Files\AutoIt3\beta\Autoemail.au3(34,65) : ERROR: _PathFull(): undefined function.

$S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x])"

The script will complete and run fine even including the attachment when there is one, just looking for some illumination as to what I might have incorrect.

Thanks in Advance,

Badger

You probably get an error when running from SciTE ?

Done any updates lately for SciTE?

Share this post


Link to post
Share on other sites

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.