Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2004, 11:37 PM
Member
 
Join Date: Sep 2004
Posts: 32
Default Send Mail & dial-up problem

The following code works where we are (cable broadband), however when run from other machine on dial-up it doesn't.

//send_mail

var sw_mail = new Mail;
var sw_email = sw_player.getVariable("_root.sw_emailaddy");
sw_mail.replyTo = sw_email;
sw_mail.from = sw_player.getVariable("_root.sw_name");
sw_mail.to = "someone@somewhere.com";
sw_mail.subject = "Hello" ;
sw_mail.date = Date();
sw_mail.priority = 3;
sw_mail.text = sw_player.getVariable("_root.swVarString");
var sw_sender = new SendMail;
sw_sender.server = "mail.somewhere.com";
sw_sender.username = "uname";
sw_sender.password = "pword";
if(sw_sender.send(sw_mail) == 1){
Dialogs.msgBox("Content uploaded", "Success", 64);
}else{
Dialogs.msgBox("Content was NOT uploaded", "Failure", 64);
}
sw_sender.close();


And yes the dial-up machine is connected to the net when run.
Any Clues ???


SWAN ...
Reply With Quote
  #2 (permalink)  
Old 10-12-2004, 02:19 AM
Member
 
Join Date: Sep 2004
Posts: 32
Default Re:Send Mail & dial-up problem

Ahhh hello ...

A response would be nice.


SWAN ...
Reply With Quote
  #3 (permalink)  
Old 10-12-2004, 06:13 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Send Mail & dial-up problem

Can the dial-up machine connect internet? The SendMail object doesn't rely on the band width. Or you can write an event hander for it to see what has happened.

Code:
var sw_sender = new SendMail;

sw_sender.onSend = function(type, msg)
{
    trace(msg);

    return type;
}

sw_sender.server = "mail.somewhere.com";
sw_sender.username = "uname";
sw_sender.password = "pword";
if(sw_sender.send(sw_mail) == 1){
   Dialogs.msgBox("Content uploaded", "Success", 64);
}else{
   Dialogs.msgBox("Content was NOT uploaded", "Failure", 64);
}
sw_sender.close();
Reply With Quote
  #4 (permalink)  
Old 10-12-2004, 06:58 AM
Member
 
Join Date: Sep 2004
Posts: 32
Default Re:Send Mail & dial-up problem

Thanx for the reply.

<< Can the dial-up machine connect internet?>>
This why I specifically mentioned this in the first post - yes IT IS connected to the net !

<<The SendMail object doesn't rely on the band width>>
What does this mean ?

<<Or you can write an event hander for it to see what has happened.>>
This is a client machine, not one of ours. We don't have dial-up here in our office. In fact doesn't work on any dial-up.

SWAN ...
Reply With Quote
  #5 (permalink)  
Old 10-13-2004, 12:24 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Send Mail & dial-up problem

Please wait for 2-3 days, for we don't have dial-up either. But we will set up it.
Reply With Quote
  #6 (permalink)  
Old 10-13-2004, 01:34 PM
Member
 
Join Date: Sep 2004
Posts: 32
Default Re:Send Mail & dial-up problem

OK - I wait keenly.

SWAN ...
Reply With Quote
  #7 (permalink)  
Old 10-17-2004, 01:57 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Send Mail & dial-up problem

The SendMail object can work on a dial-up machine. We sent two mails on a dial-up machine using the SendMail object, one contains only plain text, the other one contains an attached zip file about 140k, both were sent successfully. The inet connection speed was only 12kbps, and the mail server is in another city (about 1000km away).
Reply With Quote
  #8 (permalink)  
Old 10-18-2004, 12:04 AM
Member
 
Join Date: Sep 2004
Posts: 32
Default Re:Send Mail & dial-up problem

OK - what code did you use then please.

On a recent project I sent out 26 CD's to clients which needed a reply by email using Send Mail.
10 were on broadband (adsl/cable), the rest was on dial-up. I received all the broadband replies, none of the dial-up ones worked and I had to waste 2 days going around collecting the info from them.

So, why would my code work on broadband and not on dial-up ?

SWAN ...
Reply With Quote
  #9 (permalink)  
Old 10-18-2004, 03:53 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Send Mail & dial-up problem

We tested it with the "mail sender" sample
http://www.swfkit.com/swfkit/samples/email.html#sender

Did your dial-up users get online before sending the mails? They cannot send a mail if they are offline. The broadband users are always online.
Reply With Quote
  #10 (permalink)  
Old 10-18-2004, 05:14 AM
Member
 
Join Date: Sep 2004
Posts: 32
Default Re:Send Mail & dial-up problem

Your code is very similar to mine.

Have tried your example here also on dial-up and it doesn't work either, however it does work on broadband, same as my code.

And for the third time - YES THERE ARE CONNECTED TO THE INTERNET WHEN THEY TRY !!!

I don't understand what the possible difference is, if either dial-up or broadband once on-line. But obviously there is.

Pity one small part spoils an otherwise good application.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:08 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.