Email account setting

Powerful and flexible application for small business management. See 1C:Small Business description

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 7, 2014
Company:

Hello.
I tried to send a report by email (*gmail.com) but it says "to send the email account setting is required". How to fix it?

Thank you

Download 1.jpg (59.2 KB)
Edited: Laysan Martin - Feb 04, 2015 04:14 PM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello!
For setting up email accounts please go to Administration section, in Application settings group click Organizer and in the opened form click Email accounts. You need to configure System account to send emails.

 
#3
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 7, 2014
Company:

Sorry. What am I doing wrong? It gives me errors.  :oops:

Download er1.jpg (75.59 KB)
Edited: Laysan Martin - Feb 12, 2015 01:07 PM
 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

I'm sorry, Laysan Martin!
I have informed developers regarding this problem. There should be some fixes made in 1C:Small Business configuration. You can use the Debugger mode to find where the incorrect field Recipients is used. We will try to fix this as soon as possible.

 
#5
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 7, 2014
Company:

Hi everybody.

After I load a new release 1C:Small Business 1.4 (1.4.7.46)
It is still not working.
It gives me an error:

"Can't connect to gmail-smtp-msa.l.google.com,25: Timed out "

 
#6
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Laysan Martin.

Maybe your firewall blocks 1C application?

 
#7
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 7, 2014
Company:

I have checked. It is not blocked.
What else can it be?

Thank you.

Edited: Laysan Martin - Nov 12, 2015 09:06 AM
 
#8
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Try to Telnet gmail-smtp-msa.l.google.com on port 25.

 
#9
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 7, 2014
Company:

This is what I have going. It is not working. :|

Edited: Laysan Martin - Nov 13, 2015 10:12 AM
 
#10
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Laysan Martin,

To work with Gmail, you need to enable SSL. For this, if you use 1C:Small Business 1.4.7, please change the GenerateInternetProfile() function of the Email common module to the following:

Code
Function GenerateInternetProfile(Val UserAccount,
                                    Val Password = Undefined,
                                    Val GenerateSMTPProfile = True,
                                    Val GeneratePOP3Profile = True) Export
   
   ConnectionSettings = CommonUse.ObjectAttributesValues(
      UserAccount,
      "User,
      |Password,
      |Timeout,
      |SMTPServer,
      |SMTPPort,
      |SMTPAuthentication,
      |SMTPAuthenticationMode,
      |SMTPUser,
      |SMTPPassword,
      |POP3Server,
      |POP3Port,
      |POP3AuthenticationMode");
      
   Profile = New InternetMailProfile;
   Profile.User = ConnectionSettings.User;
   Profile.Timeout = ConnectionSettings.Timeout;
   
   If ValueIsFilled(Password) Then
      Profile.Password = Password;
   Else
      Profile.Password = ConnectionSettings.Password;
   EndIf;
   
   If GenerateSMTPProfile Then
      Profile.SMTPServerAddress = ConnectionSettings.SMTPServer;
      Profile.SMTPPort         = ConnectionSettings.SMTPPort;
      
      If ConnectionSettings.SMTPAuthentication = Enums.SMTPAuthenticationOptions.SimilarlyPOP3 Then
         Profile.SMTPAuthentication = SMTPAuthenticationMode.Default;
         Profile.SMTPUser   = ConnectionSettings.User;
         Profile.SMTPPassword         = Profile.Password;
      ElsIf ConnectionSettings.SMTPAuthentication = Enums.SMTPAuthenticationOptions.DefinedByParameters Then
         
         If ConnectionSettings.SMTPAuthenticationMode = Enums.SMTPAuthenticationMethods.CramMD5 Then
            Profile.SMTPAuthentication = SMTPAuthenticationMode.CramMD5;
         ElsIf ConnectionSettings.SMTPAuthenticationMode = Enums.SMTPAuthenticationMethods.Login Then
            Profile.SMTPAuthentication = SMTPAuthenticationMode.Login;
         ElsIf ConnectionSettings.SMTPAuthenticationMode = Enums.SMTPAuthenticationMethods.Plain Then
            Profile.SMTPAuthentication = SMTPAuthenticationMode.Plain;
         ElsIf ConnectionSettings.SMTPAuthenticationMode = Enums.SMTPAuthenticationMethods.WithoutAuthentication Then
            Profile.SMTPAuthentication = SMTPAuthenticationMode.None;
         Else
            Profile.SMTPAuthentication = SMTPAuthenticationMode.Default;
         EndIf;
         
         Profile.SMTPUser = ConnectionSettings.SMTPUser;
         Profile.SMTPPassword       = ConnectionSettings.SMTPPassword;
         
      ElsIf ConnectionSettings.SMTPAuthentication = Enums.SMTPAuthenticationOptions.POP3BeforeSMTP Then
         Profile.SMTPAuthentication = SMTPAuthenticationMode.None;
         Profile.POP3BeforeSMTP = True;
      Else
         Profile.SMTPAuthentication = SMTPAuthenticationMode.None;
      EndIf;
      Profile.SMTPUseSSL = True;
   EndIf;
   
   If GeneratePOP3Profile Then
      Profile.POP3ServerAddress = ConnectionSettings.POP3Server;
      Profile.POP3Port         = ConnectionSettings.POP3Port;
      
      If ConnectionSettings.POP3AuthenticationMode = Enums.POP3AuthenticationMethods.APOP Then
         Profile.POP3Authentication = POP3AuthenticationMode.APOP;
      ElsIf ConnectionSettings.POP3AuthenticationMode = Enums.POP3AuthenticationMethods.CramMD5 Then
         Profile.POP3Authentication = POP3AuthenticationMode.CramMD5;
      Else
         Profile.POP3Authentication = POP3AuthenticationMode.General;
      EndIf;
      Profile.POP3UseSSL = True;
   EndIf;
   
   Return Profile;
   
EndFunction

You also should use other ports and enable using your account from email applications, not from browser. And sometimes Gmail blocks using it from unknown places.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.