GithubHelp home page GithubHelp logo

krayin-docs's People

Contributors

devansh-webkul avatar jitendra-webkul avatar prateek-webkul avatar sanjaybhattwebkul avatar shubh-mehrotra avatar suraj-webkul avatar vmitchell85 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

krayin-docs's Issues

Laravel Package Discovery

Package development documentation [source] highlights a structure detailed in the URL shared.

It talks about adding service provider and autoload scripts manually, it limits the feasibility of offering dynamic packages. Adding Laravel package discovery [source] will significantly help the community.

Also, can a standard Laravel package be added as-is or will the same require to be enhanced in order for it to be used alongside krayin/laravel-crm ?

Outgoing emails in production

Hi Team

Firstly I have an issue whereby my outgoing emails send fine from dev but on prod (AWS) the send workflow results in a success message but the actual email never arrives, and the (prod) CRM shows the email as being in the Outbox despite confirming it was Sent.

I am using SES, and have another laravel app on the same server which sends email using standard Amazon creds. I have copy pasted those creds into the .env of the CRM:

MAIL_MAILER=smtp
MAIL_HOST=email-smtp.xx.xxxx.xxxxxxxx.xxx
MAIL_PORT=xxxx
MAIL_USERNAME=xxxxxxxxxxxxxxxxxxxxxx
MAIL_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MAIL_ENCRYPTION=tls
MAIL_DOMAIN=ddddddd.dd
[email protected]
MAIL_FROM_NAME="My App Name"

The from address is whitelisted on AWS. No error was logged.

Secondly and for my own understanding, I notice this code block in the email controller creates some unique metadata for the email headers. Can you help me understand why the use of '[email protected]' and not config('mail.from.address') (for example)?

$email = $this->emailRepository->create(array_merge(request()->all(), [
            'source'        => 'web',
            'from'          => '[email protected]',
            'user_type'     => 'admin',
            'folders'       => request('is_draft') ? ['draft'] : ['outbox'],
            'name'          => auth()->guard('user')->user()->name,
            'unique_id'     => $uniqueId,
            'message_id'    => $uniqueId,
            'reference_ids' => array_merge($referenceIds, [$uniqueId]),
            'user_id'       => auth()->guard('user')->user()->id,
        ]));

        if (! request('is_draft')) {
            try {
                Mail::send(new Email($email));

                $this->emailRepository->update([
                    'folders' => ['inbox', 'sent']
                ], $email->id);
            } catch (\Exception $e) {}
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.