Send New User Email Confirmation to specific email address domains
Date : March 29 2020, 07:55 AM
I wish did fix the issue. In my Magento install, I have disabled the "Require Emails Confirmation" feature as I do not need it for all users. I would however like to have users of a specific domain, "foo.com" to actually receive this email confirmations. , You can extend or Override app/code/core/Mage/Customer/controllers/AccountController.php
public function createPostAction()
{
if (true === $validationResult) {
$customer->save();
// Do your custom Code here to match the domains you want to make Confirmation Required for them.
$patterns = array('@foo.com','@boo.com','@bar.com');
$patterns_flattened = implode('|', $patterns);
if ( preg_match('/'. $patterns_flattened .'/i', $customer->getEmail(), $matches) )
{
$customer->setIsConfirmationRequired(true);
}
if ($customer->isConfirmationRequired()) {
$customer->sendNewAccountEmail('confirmation', $this->_getSession()->getBeforeAuthUrl());
$this->_getSession()->addSuccess($this->__('Account confirmation is required. Please, check your e-mail for confirmation link. To resend confirmation email please <a href="%s">click here</a>.',
Mage::helper('customer')->getEmailConfirmationUrl($customer->getEmail())
));
$this->_redirectSuccess(Mage::getUrl('*/*/index', array('_secure'=>true)));
return;
}
else {
$this->_getSession()->setCustomerAsLoggedIn($customer);
$url = $this->_welcomeCustomer($customer);
$this->_redirectSuccess($url);
return;
}
}
}
|
Send email to multiple addresses (using cc) from different domains
Date : March 29 2020, 07:55 AM
To fix this issue I've made a little Python script that sends emails using smtplib. , change this line server.sendmail("me@mydomain.com", toEmails+ccEmails, msg.as_string())
|
Email-based DCV Issue (multiple domains) - Amazon Certificate Manager (ACM)
Date : March 29 2020, 07:55 AM
this one helps. Q: Are any other methods for validating a domain or approving a certificate supported?
|
How can add/verify dynamically domains and email addresses to amazon SES?
Date : March 29 2020, 07:55 AM
should help you out By using SES, you just need to verify the root domain, in this case email-service.com. Then email-service.com can create any quantity of subdomains they want using Route53 like cmpny.email-service.com and send emails using the created subdomain without any additional check. Check the AWS docs page about this subject at verify-domains, or the excerpt that explains it below:
|
Python Boto S3 to work with Custom Domains in Amazon S3
Date : October 18 2020, 11:12 PM
|