No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Send Email from Quasar App Example Needed

    Help
    4
    21
    1206
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • beets
      beets @cynderkromi last edited by

      @cynderkromi said in Send Email from Quasar App Example Needed:

      There has got to be a way to send the occasional email from an online Quasar app. I will keep hunting.

      Well there is, if you use a service like AWS, sendgrid, mailgun, etc. Then you’d use axios to post to their API to send a mail. But I must re-iterate again, by doing so, your secret credentials are public, and anyone could grab them, use them for spam or phishing (since it will show up as sent by you) and rack up a bill in your name. I’d highly suggest to make just a simple PHP / nodejs backend that accepts a few parameters, and sends out the email.

      1 Reply Last reply Reply Quote 0
      • C
        cynderkromi last edited by

        Okay, I am using https://www.emailjs.com/ and it’s working great so far. I need to now also add a PayPal button to it so I can combine the email and the Payment!

        beets 1 Reply Last reply Reply Quote 0
        • beets
          beets @cynderkromi last edited by

          @cynderkromi +1, they are basically just a paid backend. Will work fine if you are in one of the cheaper tiers. If more than that I’d recommend rolling your own PHP script.

          They also explain what I was trying to say in their FAQ:

          Can’t I use services like Sendgrid or Mandrill directly?

          All email services require some sort of authentication to send the emails on your behalf. That makes it a really bad idea to use them directly from client side – revealing your password or your secret keys will allow anyone send emails on your behalf.

          EmailJS keeps your authentication details on the server side, and the client side code just triggers a predefined email template, similarly to how any client-server application is working.

          1 Reply Last reply Reply Quote 0
          • C
            cynderkromi last edited by cynderkromi

            They allow for 200 emails a month. If we get 200 a year we’ll be doing well! 😃

            1 Reply Last reply Reply Quote 0
            • C
              cynderkromi last edited by

              It’s done!! I’m so excited. LOL. The little application now will take payment via PayPal AND send me an email, and the person joining an email. Since we don’t usually get more than 40 members per year, this will work great. 🙂

              http://bristlenosedog.com/join/#/

              1 Reply Last reply Reply Quote 0
              • P
                pazarbasifatih last edited by

                Sorry, I was busy for a while.
                @cynderkromi have you considered making a messages module so your users can message each other?
                You can send email notifications to the users when they receive a message…
                ~You’ve got a message from the {{user}} which says {{first100CharMessage}} Click and learn more~
                You can’t control the outbound traffic with you current knowledge and It might be an invitation for trouble sent to your home address. You’ll have to log a lot of things. With user messages you’ll at least restrict the message traffic to be in between the users.

                Quasar is a frontend framework. What you want to do involves mostly backend.

                C 1 Reply Last reply Reply Quote 0
                • C
                  cynderkromi @pazarbasifatih last edited by

                  @pazarbasifatih I didn’t know Quasar could do that! That would be a really fun thing to put in, and it would help me learn another part of Quasar. Thanks!

                  1 Reply Last reply Reply Quote 0
                  • P
                    pazarbasifatih last edited by

                    @cynderkromi Yes you can create the messaging module with Quasar and store the messages in a backend solution. Then each time a user sends a message to another, the backend can trigger a mail notification. The easiest solution is Firebase. You can find courses telling exactly how you can set this up step by step. (search udemy first)

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      cynderkromi @pazarbasifatih last edited by

                      @pazarbasifatih That’s really cool. What is used to fire off the email itself?

                      1 Reply Last reply Reply Quote 0
                      • P
                        pazarbasifatih last edited by

                        😃 Believe me if you’re asking this particular question you’re better off using a managed backend. Try Firebase. It’s easy to learn and goes a long long way.
                        But if you insist on taking the hard way, you might want to check the Nodemailer. You’re going to have a lot of fun (!) debugging stuff in your Authentication services and Database 🙂
                        And if you do so please… don’t ever give to end user the control of your mail module… like never…

                        C 1 Reply Last reply Reply Quote 0
                        • C
                          cynderkromi @pazarbasifatih last edited by

                          @pazarbasifatih what does Firebase do to make email work online?

                          I have a desktop app that I’m using IndexedDB (Dexie) with that’s working well. But I have a couple of online apps now. I could use Firebase but they don’t really need a database.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post