Skip to main content
Participant
Oct 17, 2011 10:52 PM UTC
Answered

error when i try and send email

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 is closed to new replies. Start a new post to keep the conversation going.
maxkoolCorrect answer
Participant
Oct 25, 2011 5:40 PM UTC

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!_

2 replies

Participating Frequently
Oct 20, 2011 5:25 AM UTC

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.

Translate
maxkoolAuthorCorrect answer
Participant
Oct 25, 2011 5:40 PM UTC

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!_

Translate