Skip to main content
Participant
October 17, 2011
Answered

error when i try and send email

  • October 17, 2011
  • 1 reply
  • 832 views

ok, i promise this will be the last time for awhile i turn to you guys for help.

I'm trying to connect to a external smtp server using the bytearray classes:

          var myMailer:SMTPMailer = new SMTPMailer ("outbound.mailhop.org", 2525);

                              myMailer.authenticate("password", "login")

 

                              myMailer.addEventListener(SMTPEvent.MAIL_SENT, onMailSent);

  // event dispatched when mail could not be sent

                              myMailer.addEventListener(SMTPEvent.MAIL_ERROR, onMailError);

  // event dispatched when SMTPMailer successfully connected to the SMTP server

                              myMailer.addEventListener(SMTPEvent.CONNECTED, onConnected);

  // event dispatched when SMTP server disconnected the client for different reasons

                              myMailer.addEventListener(SMTPEvent.DISCONNECTED, onDisconnected);

  // event dispatched when the client has authenticated successfully

                              myMailer.addEventListener(SMTPEvent.AUTHENTICATED, onAuthSuccess);

  // event dispatched when the client could not authenticate

                              myMailer.addEventListener(SMTPEvent.BAD_SEQUENCE, onAuthFailed);

 

                              myMailer.sendHTMLMail ( "maxkool22@yahoo.com", "jorgesanchezwd@optonline.net", "test smtp", "<br><b>Picture from HTML :)</b>");

 

It seems to connect just fine but when I try and sent the email this is the error i get:

554 SMTP synchronization error

I have never seen this error before and when i try and google it there really isnt much info on what causes the issue or how to fix it.

I've stumped you guys before but I'm hoping this one isnt one of those questions!!

Thanks

Jorge

This topic has been closed for replies.
Correct answer maxkool

ok, this was a weird one. when i tried a different smtp server it seems fine. i think the previous smtp wanted to use ssl connection. thanks for all your help!_

1 reply

Participating Frequently
October 20, 2011

I don't think AIR support SMTP protocol, refer: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.html

For content running in Adobe AIR, files in the application security sandbox can access URLs using any of the following URL schemes:

  • http and https
  • file
  • app-storage
  • app

However, I suggest you to open a new bug report on this over at bugbase.adobe.com. Please include sample media, code, project or app to help us reproduce the problem.

Thanks a lot.

maxkoolAuthorCorrect answer
Participant
October 25, 2011

ok, this was a weird one. when i tried a different smtp server it seems fine. i think the previous smtp wanted to use ssl connection. thanks for all your help!_