Jump to content

Smtp Mailer That Supports Html And Attachments.


Recommended Posts

  • Replies 758
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

; ;################################## ; Include ;################################## #Include<file.au3> ;################################## ; Variables ;#

Agree, but first needs to be properly tested to see if everything keeps working and I haven't done that yet.  So ...  input/feedback is welcome before doing so!   My preference is to do this wi

$Body = "one" & @CRLF & "two" & @CRLF & "three" ..... ..... $Body = StringReplace($Body,@CRLF,'<br>') ;~ And now you can send your body message....  

Posted Images

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!

Link to post
Share on other sites

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

Link to post
Share on other sites
  • Developers

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

Link to post
Share on other sites

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
Link to post
Share on other sites
  • Developers

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

Link to post
Share on other sites
  • 2 weeks later...

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.

Link to post
Share on other sites

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!

Link to post
Share on other sites

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

Link to post
Share on other sites
  • 4 weeks later...

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