|
|||
|
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 ... |
|
|||
|
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();
|
|
|||
|
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 ... |
|
|||
|
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).
|
|
|||
|
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 ... |
|
|||
|
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. |
|
|||
|
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. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|