Send Sales Order mail to multiple account ProgramaticallyOrder confirmation email sent multiple time - same order confirmation sent to all - unable to stop sendinghow to disable sales order email (to admin email only) when customers placed an order?Order emails not sending to Sales Representative (store email address)Magento 1.9.2 - Fails to send sales transaction emailspostfix for magentoMagento 2.1.6 No confirmation emails sent from frontendUnable to receive copy of sales order emailI want to send different email with different manage to Customer and Admin as per payment method. [ Magento 1.9 ]Order confirmation emails not sendingMagento 1.9 - Where is Sales Email option
How can bays and straits be determined in a procedurally generated map?
What does the "remote control" for a QF-4 look like?
Watching something be written to a file live with tail
Can a Cauchy sequence converge for one metric while not converging for another?
What is the word for reserving something for yourself before others do?
Add text to same line using sed
"You are your self first supporter", a more proper way to say it
What are these boxed doors outside store fronts in New York?
Is it unprofessional to ask if a job posting on GlassDoor is real?
Can a vampire attack twice with their claws using Multiattack?
Fully-Firstable Anagram Sets
Doing something right before you need it - expression for this?
tikz convert color string to hex value
What's the point of deactivating Num Lock on login screens?
Does an object always see its latest internal state irrespective of thread?
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
What's that red-plus icon near a text?
Can I make popcorn with any corn?
Why is consensus so controversial in Britain?
How old can references or sources in a thesis be?
Codimension of non-flat locus
How can I make my BBEG immortal short of making them a Lich or Vampire?
Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?
Was any UN Security Council vote triple-vetoed?
Send Sales Order mail to multiple account Programatically
Order confirmation email sent multiple time - same order confirmation sent to all - unable to stop sendinghow to disable sales order email (to admin email only) when customers placed an order?Order emails not sending to Sales Representative (store email address)Magento 1.9.2 - Fails to send sales transaction emailspostfix for magentoMagento 2.1.6 No confirmation emails sent from frontendUnable to receive copy of sales order emailI want to send different email with different manage to Customer and Admin as per payment method. [ Magento 1.9 ]Order confirmation emails not sendingMagento 1.9 - Where is Sales Email option
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
In this screenshot you can see sales order mail sending to multiple acounts . and It work good mail sending to all accounts which mention in Send Order Email Copy To
This is hard code to give account.
I am developing multi-vendor site. i want to give just those vendor's accounts for email which has items in this order.
Can anyone tell me how can give programmatically emails account instead of giving hardcode in frontend as shown in screenshot.
email sales multipl account
add a comment |
In this screenshot you can see sales order mail sending to multiple acounts . and It work good mail sending to all accounts which mention in Send Order Email Copy To
This is hard code to give account.
I am developing multi-vendor site. i want to give just those vendor's accounts for email which has items in this order.
Can anyone tell me how can give programmatically emails account instead of giving hardcode in frontend as shown in screenshot.
email sales multipl account
add a comment |
In this screenshot you can see sales order mail sending to multiple acounts . and It work good mail sending to all accounts which mention in Send Order Email Copy To
This is hard code to give account.
I am developing multi-vendor site. i want to give just those vendor's accounts for email which has items in this order.
Can anyone tell me how can give programmatically emails account instead of giving hardcode in frontend as shown in screenshot.
email sales multipl account
In this screenshot you can see sales order mail sending to multiple acounts . and It work good mail sending to all accounts which mention in Send Order Email Copy To
This is hard code to give account.
I am developing multi-vendor site. i want to give just those vendor's accounts for email which has items in this order.
Can anyone tell me how can give programmatically emails account instead of giving hardcode in frontend as shown in screenshot.
email sales multipl account
email sales multipl account
asked 2 days ago
HaFiz UmerHaFiz Umer
4149
4149
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You need to override getEmailCopyTo()
function of vendor/magento/module-sales/Model/Order/Email/Container/OrderIdentity.php
And write your custom code and returns an array of emails.
/**
* Return email copy_to list
*
* @return array|bool
*/
public function getEmailCopyTo()
//Write custom code and returns array of emails
$data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());
if (!empty($data))
return explode(',', $data);
return false;
For Invoice Emails: vendor/magento/module-sales/Model/Order/Email/Container/InvoiceIdentity.php
For Shipment Emails: vendor/magento/module-sales/Model/Order/Email/Container/ShipmentIdentity.php
For creditmemo emails: vendor/magento/module-sales/Model/Order/Email/Container/CreditmemoIdentity.php
Dear @Prince ! where i mention custom emails ? dev.test1@gmail.com,dev.test2@gmail.com etc ? in$data
variable ?
– HaFiz Umer
2 days ago
@HaFizUmer I just mentioned original function. As per your question you need to pass emails programmatically, You can write your custom code and returns the array of email here
– Prince Patel
2 days ago
yes thank you !
– HaFiz Umer
yesterday
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268462%2fsend-sales-order-mail-to-multiple-account-programatically%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to override getEmailCopyTo()
function of vendor/magento/module-sales/Model/Order/Email/Container/OrderIdentity.php
And write your custom code and returns an array of emails.
/**
* Return email copy_to list
*
* @return array|bool
*/
public function getEmailCopyTo()
//Write custom code and returns array of emails
$data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());
if (!empty($data))
return explode(',', $data);
return false;
For Invoice Emails: vendor/magento/module-sales/Model/Order/Email/Container/InvoiceIdentity.php
For Shipment Emails: vendor/magento/module-sales/Model/Order/Email/Container/ShipmentIdentity.php
For creditmemo emails: vendor/magento/module-sales/Model/Order/Email/Container/CreditmemoIdentity.php
Dear @Prince ! where i mention custom emails ? dev.test1@gmail.com,dev.test2@gmail.com etc ? in$data
variable ?
– HaFiz Umer
2 days ago
@HaFizUmer I just mentioned original function. As per your question you need to pass emails programmatically, You can write your custom code and returns the array of email here
– Prince Patel
2 days ago
yes thank you !
– HaFiz Umer
yesterday
add a comment |
You need to override getEmailCopyTo()
function of vendor/magento/module-sales/Model/Order/Email/Container/OrderIdentity.php
And write your custom code and returns an array of emails.
/**
* Return email copy_to list
*
* @return array|bool
*/
public function getEmailCopyTo()
//Write custom code and returns array of emails
$data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());
if (!empty($data))
return explode(',', $data);
return false;
For Invoice Emails: vendor/magento/module-sales/Model/Order/Email/Container/InvoiceIdentity.php
For Shipment Emails: vendor/magento/module-sales/Model/Order/Email/Container/ShipmentIdentity.php
For creditmemo emails: vendor/magento/module-sales/Model/Order/Email/Container/CreditmemoIdentity.php
Dear @Prince ! where i mention custom emails ? dev.test1@gmail.com,dev.test2@gmail.com etc ? in$data
variable ?
– HaFiz Umer
2 days ago
@HaFizUmer I just mentioned original function. As per your question you need to pass emails programmatically, You can write your custom code and returns the array of email here
– Prince Patel
2 days ago
yes thank you !
– HaFiz Umer
yesterday
add a comment |
You need to override getEmailCopyTo()
function of vendor/magento/module-sales/Model/Order/Email/Container/OrderIdentity.php
And write your custom code and returns an array of emails.
/**
* Return email copy_to list
*
* @return array|bool
*/
public function getEmailCopyTo()
//Write custom code and returns array of emails
$data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());
if (!empty($data))
return explode(',', $data);
return false;
For Invoice Emails: vendor/magento/module-sales/Model/Order/Email/Container/InvoiceIdentity.php
For Shipment Emails: vendor/magento/module-sales/Model/Order/Email/Container/ShipmentIdentity.php
For creditmemo emails: vendor/magento/module-sales/Model/Order/Email/Container/CreditmemoIdentity.php
You need to override getEmailCopyTo()
function of vendor/magento/module-sales/Model/Order/Email/Container/OrderIdentity.php
And write your custom code and returns an array of emails.
/**
* Return email copy_to list
*
* @return array|bool
*/
public function getEmailCopyTo()
//Write custom code and returns array of emails
$data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());
if (!empty($data))
return explode(',', $data);
return false;
For Invoice Emails: vendor/magento/module-sales/Model/Order/Email/Container/InvoiceIdentity.php
For Shipment Emails: vendor/magento/module-sales/Model/Order/Email/Container/ShipmentIdentity.php
For creditmemo emails: vendor/magento/module-sales/Model/Order/Email/Container/CreditmemoIdentity.php
answered 2 days ago
Prince PatelPrince Patel
14.5k65481
14.5k65481
Dear @Prince ! where i mention custom emails ? dev.test1@gmail.com,dev.test2@gmail.com etc ? in$data
variable ?
– HaFiz Umer
2 days ago
@HaFizUmer I just mentioned original function. As per your question you need to pass emails programmatically, You can write your custom code and returns the array of email here
– Prince Patel
2 days ago
yes thank you !
– HaFiz Umer
yesterday
add a comment |
Dear @Prince ! where i mention custom emails ? dev.test1@gmail.com,dev.test2@gmail.com etc ? in$data
variable ?
– HaFiz Umer
2 days ago
@HaFizUmer I just mentioned original function. As per your question you need to pass emails programmatically, You can write your custom code and returns the array of email here
– Prince Patel
2 days ago
yes thank you !
– HaFiz Umer
yesterday
Dear @Prince ! where i mention custom emails ? dev.test1@gmail.com,dev.test2@gmail.com etc ? in
$data
variable ?– HaFiz Umer
2 days ago
Dear @Prince ! where i mention custom emails ? dev.test1@gmail.com,dev.test2@gmail.com etc ? in
$data
variable ?– HaFiz Umer
2 days ago
@HaFizUmer I just mentioned original function. As per your question you need to pass emails programmatically, You can write your custom code and returns the array of email here
– Prince Patel
2 days ago
@HaFizUmer I just mentioned original function. As per your question you need to pass emails programmatically, You can write your custom code and returns the array of email here
– Prince Patel
2 days ago
yes thank you !
– HaFiz Umer
yesterday
yes thank you !
– HaFiz Umer
yesterday
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268462%2fsend-sales-order-mail-to-multiple-account-programatically%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown