Announcement

Collapse
No announcement yet.

Select and send Email to record selected.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Select and send Email to record selected.

    Select and send Email to record selected.

    Hi I have a grid of suppliers for each provider have data including email.

    How can I create a system where the grid I select one or more suppliers and send them an email?

    Thank You.

  • #2
    Create a control application for sending the emails (sc_mail_send macro)

    http://www.scriptcase.net/docs/en_us...s#sc_mail_send

    Place a Run button on your grid and pass the selected recipients to the mail application.

    That should do it.

    jsb

    Comment


    • #3
      Also refer to the thread answer sc_mail_send setup

      Comment


      • #4
        Hello, thank you for the information, I was able to create the grid with the selection of the emails and the function of sending email.
        But there are things that I would like to customize.
        1. I would like the text is not automatic, but the user has the option of writing the text to send to the selected emails
        2. I would like the email is sent with the address of the client that uses the grid to send email
        3. I wish that the object is free and must be entered by the customer who uses the grid to send emails to addresses selected
        4. I would like the email sent is registered in the DB that I created as a historian of comunicaizoni sent to customers.

        Finally, I did a simple test but the email is not sent and the answer I have is the following

        Fatal error: Uncaught exception 'Swift_TransportException' with message 'Failed to authenticate on SMTP server with username "info@goviaggi.com" using 2 possible authenticators' in /web/htdocs/www.goviaggi.com/home/admin/ammingestionale/_lib/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php:176 Stack trace: #0 /web/htdocs/www.goviaggi.com/home/admin/ammingestionale/_lib/prod/third/swift/classes/Swift/Transport/EsmtpTransport.php(307): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport)) #1 /web/htdocs/www.goviaggi.com/home/admin/ammingestionale/_lib/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(124): Swift_Transport_EsmtpTransport->_doHeloCommand() #2 /web/htdocs/www.goviaggi.com/home/admin/ammingestionale/_lib/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /web/htdocs/www.goviaggi.com/home/admin/ammingestionale/grid_comunicazioni_fornitori/index.php(1841): Swift_Mailer->send(Object(Swift_Message), Array) #4 /web/htdoc in /web/htdocs/www.goviaggi.com/home/admin/ammingestionale/_lib/prod/third/swift/classes/Swift/Transport/Esmtp/AuthHandler.php on line 176

        Comment


        • #5
          Failed to authenticate on SMTP server with username "info@goviaggi.com simply says that that user is not able to connect to the SMTP server. I advise to use a normal mail program with the login/password you know on the same machine that you tested on. Test out if the smtp server is even reachable and whether you can login.
          If you are not a techy you'll find some windows portable software here: https://www.raymond.cc/blog/portable-e-mail-client/
          otherwise you can also use a telnet session to login to your smtp server.
          Many smtp servers enforce the use of a password, some only allow access if you are accessing from the same url domain. So you can check that with telnet.
          Last edited by rr; 01-27-2015, 06:01 AM.

          Comment


          • #6
            1. I would like the text is not automatic, but the user has the option of writing the text to send to the selected emails
            2. I would like the email is sent with the address of the client that uses the grid to send email
            3. I wish that the object is free and must be entered by the customer who uses the grid to send emails to addresses selected
            4. I would like the email sent is registered in the DB that I created as a historian of comunicaizoni sent to customers.[/QUOTE]

            Then, in the process of iteration in the grid, save on an array the info you need, pass this var to a new blank/control application, where you can write the message you want to send, and from WHERE the email comes, and from there, iterate the array to send every email, changin the static text with vars.

            I hope I explained.
            /Giuseppe

            Professional Scriptcase Services
            Some Customers opinions

            Comment


            • #7
              Hello, I was able to send the email from the grid, however, to customize the SENDER, the subject and the message, I realized that I have to create an application CONTROL and the grid pass parameters with variable global scope.

              The application control was created, but now how can I tell the grid to pass all email providers selected in the field of application EMAIL_FORNITORI control?

              Do you know where I can see a video functions to be activated?

              Thanks for the help

              Comment

              Working...
              X