1C Connection closed SERVER

Pech.form distribution processing used in other information-based client-server mode, it is now copied into the new inf.bazu that works in file mode, when the procedure is to mail the message:

Unable to send a message to the counterparty "Gy SPN" + at: «[email protected]» due {VneshnyayaObrabotka.FormirovanieDokumentovEl.ModulObekta (1143)}:

Error method call context (Send): Error during file operation: Connection closed server.

help to understand where in the code will have to adjust to treatment to work, because on the old base it normally works

Code:

OtpravitPismo Procedure (Counterparty, AdresPoluchatelya, MassivFaylov) Export

InternetMail = New InternetMail;

PochtovyyProfil = New InternetMailProfile;

PochtovyyProfil.AdresServeraPOP3 = «83.243.64.1»;

PochtovyyProfil.AdresServeraSMTP = «83.243.64.1»;

PochtovyyProfil.PortPOP3 = 110;

PochtovyyProfil.PortSMTP = 25;

PochtovyyProfil.Polzovatel = «[email protected]»;

PochtovyyProfil.Parol = «xx»;

PochtovyyProfil.PolzovatelSMTP = «[email protected]»;

PochtovyyProfil.ParolSMTP = «xx»;

PochtovyyProfil.AutentifikatsiyaSMTP = SposobSMTPAutentifikatsii.Login;

InternetSoobschenie = New InternetMailMessage;

InternetSoobschenie.Kodirovka = «windows-1251";

InternetSoobschenie.Tema = "Automatic E-mailing";

InternetSoobschenie.ImyaOtpravitelya = "Print Center ET accounts";

InternetSoobschenie.Otpravitel = «[email protected]»;

The residue StrZamenit = (SokrLP (AdresPoluchatelya), "", "");

If Find (Balance, ",")> 0 Then

While Search (Balance, ",")> 0 cycle

k = Find (Balance, ",");

_temp = Leo (residue, k - 1);

InternetSoobschenie.Poluchateli.Dobavit (_temp);

Rights residue = (residue StrDlina (residue) - k);

KonetsTsikla;

Otherwise

InternetSoobschenie.Poluchateli.Dobavit (residue);

ENDIF;

InternetSoobschenie.Teksty.Dobavit (TekstPisma, TipTekstaPochtovogoSoobscheniya.ProstoyTekst);

For each file MassivFaylov cycle

InternetSoobschenie.Vlozheniya.Dobavit (File);

KonetsTsikla;

vsePloho = False;

Attempting

InternetPochta.Podklyuchitsya (PochtovyyProfil);

InternetPochta.Poslat (InternetSoobschenie);

Exception

Report ( "Failed to send a message to the counterparty:" "," + Contractor + " '" + at' '' + + AdresPoluchatelya "" "for a reason:" + OpisanieOshibki () StatusSoobscheniya.Vazhnoe);

vsePloho = True;

KonetsPopytki;

If not then vsePloho

Report ( "Letter sent to the email address:". + AdresPoluchatelya);

ENDIF;

KonetsProtsedury

Read in other languages

 BelorussianEnglish Deutsch Spanish French Italian Portuguese Turkish Arab Ukrainian Swedish Hungarian Bulgarian Estonian Chinese (Simplified) Vietnamese Romanian Thai Slovenian Slovak Serbian Malay Norwegian Latvian Lithuanian Korean Japanese Indonesian Hindi Hebrew Finnish Greek Dutch Czech Danish Croatian Chinese (Traditional) Philippine Urdu Azeybardzhansky ArmenianPolish Bengal Georgian Kazakh Catalan Mongolski Russian Tadzhitsky Tamilʹskij telugu Uzbetsky

Read more:   HOW TO KEEP GOOGLE MAPS OFFLINE

Add a comment

Your e-mail will not be published. Required fields are marked *