Questions tagged [email]

Questions about emails sent by Magento in general

Filter by
Sorted by
Tagged with
49
votes
4answers
14k views

Passwords in sign up email. Bad practice? PCI compliant?

We use Magento Enterprise (1.12) and I have had several customers email me already complaining that they received their password via email when they signed up for an account. I know this is considered ...
14
votes
6answers
6k views

How can I get email notifications for exceptions?

How do I setup email notifications for exceptions that are either logged or thrown on the site? UPDATE: A few people have commented on the fact that you may expect to get way too many emails if you ...
8
votes
3answers
4k views

Display line in transactional e-mail if payment method is

I want to display a line only when the customer selects payment method checkout money order. When a customer select money order as payment method, I want to display a <li> additional line to the ...
6
votes
3answers
11k views

Magento 2 How to configure Gmail SMTP for email sending?

In Magento 2, the username and password are no longer set in template.php under Email module. How can I use Gmail SMTP for email sending in Magento 2? How to configure it? Thanks
1
vote
1answer
498 views

Send email to some customers in magento

How to send mail to customer whenever Seller add new product. Note : If Seller Upload 100 Product Customer will get only one mail not 100 mail how write cron job for this public function ...
6
votes
2answers
31k views

How to get json data on frontend in magento

I have a custom module, which uses for email varification in frontend of magento. This module will appear as a popup in homepage while it loads. I want to do some other functionings such as display ...
5
votes
5answers
12k views

How to disable the sending of Magento's default Success Email Template upon newsletter sign-up

Magento CE 1.9.0.1 We recently signed up for an email and list management service that taps into Magento and allows us to manage all transactional and newsletter emails through their application. ...
3
votes
2answers
1k views

Magento 2.3 email attachment not working while sending custom email

https://extait.com/blog/how-to-send-email-with-attachment-in-magento-2-3/ I have tried above link, and below is the code: Now I am receiving emails without attachment. Full code as below: Custom\...
2
votes
3answers
1k views

How can I protect my Magento site from spam?

I#'m using 1.9.2.0 and the rwd theme, however since our site went online I'm getting many spam Mails via contact form. I already downloaded the Re-Captcha extension but it doesn't fit in our theme. ...
1
vote
2answers
13k views

Does Magento send order cancellation emails?

I have been placing and canceling orders all day without receiving any cancellation confirmation emails and thought maybe Magento 1.7 doesn't support this feature!?! If anyone has had the requirement ...
9
votes
1answer
3k views

Magento Advanced/System/Cron* settings

Synopsis So I wanted to confirm my understanding of the cron configurations with Magento; under the admin console System > Configuration > Advanced > System > Cron: Generate Schedules ...
8
votes
3answers
18k views

How to style transactional email with email-inline.css

I am using Magento 1.9.1. I want to customize my Magento Transactional Emails. To do so, I duplicated email-inline.css and email-non-inline.css from base package into my customized package (into this ...
7
votes
3answers
12k views

How to get magento store email address and name in my custom module?

I created own module, there how to get sender name and email ? I have to create custom admin config option like Email Sender. Here i used below code, to set drop-down then i don't know how to get ...
6
votes
1answer
580 views

Magento 2.3.3 blank email with html attachment

Since upgrade 2.3.2 to 2.3.3 order confirmation emails are showing empty with attachement.html file attached. The attachement.html files shows the order confirmation text which previously appeared in ...
5
votes
1answer
1k views

Get store e-mail in phtml file

I want to retrieve store-email in phtml file so far i've fetched store data information like this but there's no info about e-mail address: $objectManager = \Magento\Framework\App\ObjectManager::...
5
votes
1answer
15k views

Transactional Email: How to customize shipping address variable/html {{var order.getShippingAddress().format('html')}}

I am customizing Magento's transactional emails and am trying to remove the Telephone/Fax from displaying in the email as they are displaying as: T:- F:- The transactional mail template for new ...
4
votes
1answer
2k views

Price(float number) in transactional email

If i put in email template {{var order.shipping_amout}} i will get it like : 12.00000 How i can make it normal (ex. 12.00) ? Thanks for any hints.
4
votes
3answers
17k views

Magento 2 SMTP settings

I've got a fresh magento 2 installation on a virgin test system, but I can't find the settings for a smtp connection. How do you manage email communication in magento 2?
3
votes
2answers
5k views

Adding transactional email template to transaction email list by custom module

Can somebody please explain the best practice to add a transactional email to the transactional email list that can be found in the backend at system->transactional emails ? I know that I need to ...
3
votes
3answers
3k views

Magento 2: Inline styles for emails are applying partly

For example, There is a "New order" template. The styles for this template are placed in app/design/frontend/Vendor/Theme/Magento_Sales/web/css/source/_email.less Here's an example of styles: ....
3
votes
3answers
11k views

Magento 1.9.1 Order emails not sent - cron checked - stuck in core_email_queue

I've got a Magento 1.9.1 implementation and am having issues sending out order related emails. I have checked cron jobs and AOE Scheduler reports core_email_queue_sendall and ...
2
votes
1answer
562 views

how to call phtml file in email template in magento2

I need to pass the phtml file into email template. but I'm getting error like Error filtering template: Invalid template file: 'Vendor_Module::emailproducts.phtml' in module: '' block's name: '...
2
votes
2answers
6k views

How to send mail from custom module?

Data.php const XML_PATH_EMAIL_NOTIFICATION_TEMPLATE = 'order_attachments_receive_email_notification'; public function getEmailAddress() { return Mage::getStoreConfig('orderattachments/...
2
votes
5answers
3k views

Magento2: How to get guest email address in checkout?

Please, how to get guest email address in checkout?
1
vote
4answers
3k views

How to add backorder message to transactional emails

I want to add extra information in a transactional email when the order has a product which is backordered. I know where and how to edit the email templates following this guide: http://www....
1
vote
1answer
36 views

Attribute info in email

How can I add this part, it is a child attribute Into email, which is sent to customers? Unfortunately now I have only the name, and sku in the email
1
vote
1answer
2k views

Attach invoice to shipment email

In /app/code/local/Mage/Sales/Model/Order/Shipment.php I added the following lines in sendEmail() funtion: $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice(); $pdf = Mage::...
1
vote
1answer
6k views

Where is the code that sends an email when an account is being activated in the backend?

I'm working on shop where the customers will be imported by CSV, new customers will have NO password (password_hash = ""). The administrator will have to activate the new customers using the backend. ...
1
vote
1answer
1k views

Cannot subscribe email newsletter to second storeview: email already exists

we have several storeviews. And until recently I noticed that if 1 email is subscribed to storeview A (store) it cannot be added to storeview B (store). We use this block on a page to add the ...
1
vote
2answers
3k views

Transactional email templating syntax - calling a helper or model method and assign to variable

In the email templating syntax. Is it possible to assign a return value of a magento helper to a variable? For example this would be perfect: {{var myVar = helper(myhelper).helperMethod }} i.e. i ...
0
votes
2answers
86 views

division of two variables is returning zero , in magento2 WHY?

i have function which should return price of single product on email recipt: File location : C:\xampp\htdocs\project\vendor\magento\module-sales\view\frontend\templates\email\items\order\default....
7
votes
4answers
3k views

Email Functionality not Working in 2.3.0

In my custom module, I have added email functionality. It's working in 2.1 and 2.2. I have updated to 2.3.0 and now it crashes. Email send code is as below. $sender = [ 'name' => $...
6
votes
1answer
2k views

magento 2 add/call css file in email template of custom module

I am trying to add inline css in email template in my custom module. Example <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" ...
4
votes
3answers
615 views

Magento2 : Order Items Email Template Adjustment

I need to add align="right" in th(i.e Subtotal, Shipping & Handling, Grand Total) to align right on tfoot. I have found that its rendering from the below code under Magento_Sales/templates/email/...
3
votes
2answers
4k views

Magento 2: 'Invalid sender data' While sending custom Email

Below is code that i am using send mail , and getting 'Invalid sender data' <?php namespace Mycompany\Orderupdate\Helper; use Exception; use Psr\Log\LoggerInterface; use Magento\...
3
votes
2answers
2k views

Some transactional emails are not being sent

I have SMTP PRO in Magento 1.9 hosted on AWS. The new account emails, and comments work well, but the email of new orders, change of status and billing are not sent. I have no errors or helpful ...
3
votes
3answers
4k views

Change plain text email into HTML email

This is in Magento 1.9.x. I just edited the contents of a transaction email, added some HTML code into it, but the email is still rendering as plain text. How do I make that email into a HTML email? ...
3
votes
2answers
124 views

Use my domain for sales emails instead of my hosting domain

All my automated sales emails (like order confirmation, shipment...etc ) are sent from username@myhostingdomain.com, I want emails to be sent from my Magento domain exemple: sales@mydomain.com ...
3
votes
1answer
4k views

Hostname validation; new gTLD & store email addresses [duplicate]

UPDATE: While I got the answer I needed down below, this question was later asked again in this post and received a more elaborate answer. My magento store is hosted on a 'new' gTLD (.boutique), but ...
2
votes
4answers
5k views

How to Add Attachment with email magento 2.3?

Can anyone help us on Add Attachment with email Magento 2.3? We have tried but face the same issue like this. Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Mail\Message\...
2
votes
3answers
5k views

How to add new Template Variable in magento

I want to add new template variable and use it in transactional email template from backend. Same as "Confirmation URL". Please refer to screen shot: Thanks!!!
2
votes
3answers
1k views

Magento after upgrading order update email sending duplicate emails

After upgrading to magento 1.9.0.1 from 1.6 order update email is ending 7 times, i had set "Send Order Comments Email Copy Method" to "Seperate Email" and added 7 email ids in "Send Order Comment ...
2
votes
2answers
11k views

Magento 2: How to solve the message “Unable to send email”?

My Magento 2 send an email when I register in the newsletter, but I receive that exception all time: How can I solve it? Thanks
2
votes
1answer
2k views

Add custom data with order email content magento

I want to add custom data in order confirmation email. I have vehicle information that are attached to the order email to show to customer their vehicle make, model, year. These values are attached ...
2
votes
3answers
308 views

How to send an Confirmation email when customer has login successfully?

I want to send a confirmation mail to the customer when has customer login. Please let me know how can I achieve it. I am using Magento 1.9.2. this is my _loginPostRedirect() function code ...
2
votes
2answers
558 views

Send an email a month after order is “complete”?

I neeed a recommendation on what's the best way to send an email 1 month after order is completed (it's an email that asks to review the product). Should I use cronjob and check every day for orders ...
2
votes
2answers
2k views

Transactional email event

Some of my customers have second email address as customer attribute. I would like to send an copy of every transactional email to customer second email address. I wonder - if magento have event which ...
2
votes
2answers
478 views

M 1.9.0.1 - path hints showing in order email

Believe it or not but my customer forwarded an order-email where the template path hints of the single blocks are showing. Nothing changed in config Path hints disabled Developer client IP set It ...
2
votes
2answers
957 views

Magento 1.9 Custom Module Form $mail = new Zend_Mail(); include more $params

I created a simple custom module and have a problem with $parmas which I can't figure out for hours now. Here is the IndexController.php responsible for it: public function sendemailAction() ...
2
votes
2answers
6k views

How to add cc or bcc in custom email

I have created a transactional email template and sending mail using below code : $to_user_email = 'test@gmail.com'; $to_user = 'test'; $emailTemplate = Mage::getModel('core/email_template')->...