Questions tagged [email]

Questions about emails sent by Magento in general

Filter by
Sorted by
Tagged with
0
votes
0answers
43 views

how to set null value to email column in sales order address table

I want to set the email field in sales order address table to null.But if i give $address->setEmail('')->save(); Its saying that the email is not in correct format.I am able to save the customer ...
0
votes
1answer
29 views

Change HTML Structure of Transaction E-Mail

I need to change the HTML structure of the E-Mail template for the "New Order E-Mail". However I only see the tag {{layout handle="sales_email_order_items" order=$order}} in the Template. How/where ...
6
votes
5answers
3k views

Magento 2.3 custom email attachment not working

Custom email attachment file is not working in magento 2.3. its working in Magento 2.2.X Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Mail\Message\Interceptor::...
0
votes
0answers
21 views

Magento 2: limit staging emails to dev only

Just realized that our staging environment is sending out emails to customers, which is not good. How can I limit the emails to developers only? Ideally I would like to: provide a list of allowed ...
0
votes
1answer
690 views

Mageplaza Smtp Email: Username and Password not accepted

I'm trying to send an email by extension Mageplaza Smtp and when I config, and send mail, at first, when i enter Username and Password and click "Test now" in "Send test email" section, it sends email ...
0
votes
2answers
565 views

Transactional Email Sender

Does anyone know how to fix the email sender to look more professional? The image below is an email confirmation for an order I placed in the Magento Marketplace...even they can't make it look good: ...
0
votes
1answer
24 views

Emails are not sending

Recently I setup Magento. I tried signing up as an user and buying a product, however, I see no emails are coming through to the customer when the order gets processed or when a user tries to reset a ...
1
vote
1answer
230 views

Magento 2 : Sitemap Generation Warnings - Invalid header line detected

I am using magento 2.2.4. The site is working fine. But everyday I got a sitemap error email. The below lines are in the email. Sitemap Generation Warnings Invalid header line detected Also an ...
0
votes
0answers
22 views

Magento 2 | Get billing country in sales email as block

We run an online shop in Germany and ship to non-EU countries like Switzerland and Norway. Those orders or better invoices get calculated without any tax/vat. The only downside of that is that we must ...
1
vote
0answers
25 views

Magento 2 | How to put Button in Guest user Order and Account Information Page?

I need to edit email address of Guest Customer. As form the picture: I know it should be done by plugin but I want to know What is the right way to find right method to override for putting button ...
0
votes
1answer
51 views

Magento 2 email item list add product attributes

i want to add some product attribute to the ew order email . I cloned file in template and trying to do changes as below but it is not working <?php // @codingStandardsIgnoreFile /** @var $block ...
0
votes
3answers
291 views

How to get the product image in invoice email template?

I have succeeded in getting the product image in the new order email template (<Vendor>/<Theme>/Magento_Sales/templates/email/items/order/default.phtml) using the following: <img src="&...
2
votes
0answers
29 views

Some users can not request the new password mail

I'm not able to figure out, why some users can not request the "Forgot Password E-Mails", so Magento can not send them to the users. Magento shows message like "the mail isn't a correct one". Tested ...
1
vote
0answers
129 views

Duplicate order confirmation mail

Thanks for providing solution. I have apply same solution in one of my site along with I have follow all your steps. But it still send two confirmation mailto both admin and customers. My magento ...
0
votes
1answer
40 views

Send to friend sends picture not product

Our send to a friend works fine..., but it sends a link of the products picture. Not a link to the products page. How can I change that? Obviously I would like people to click on the link they receive ...
1
vote
0answers
28 views

How to send create account email

Using this code i have create new customer and also it will login $customerFactory = $objectManager->get('\Magento\Customer\Model\CustomerFactory'); $websiteId = $storeManager->getWebsite()->...
0
votes
0answers
14 views

Create/update layout send email magento

I have create an email in config.xml <template> <email> <changeprice_tpl module="cp_collection"> <file>alertprice.html</file> ...
0
votes
3answers
461 views

Magento 2 : Overriding Default Contact Form Controller POST.php file

I'm trying to override the contact form post controller in Magento 2.2.6, by following the answer from this thread (Override module-contact view and controller) by creating my own module. I added \...
0
votes
0answers
19 views

Magento 2 Standard Order email not sent out together with a custom module

I have made a custom module to send out a custom message when an order is placed. I can successfully get custom message to be sent out by email. But the problem is, the Magento order email will not be ...
0
votes
1answer
489 views

Magento 2 Send custom email with observer failed with error message

I'm trying to send a message by email after an order is placed with observer. The following is the code in my Observer, <?php namespace TestModule\OrderComment\Observer; use Magento\...
1
vote
2answers
871 views

Magento 2 - get user email ID

I'm using Magento 2.2.6, How can I get the email ID of logged in user to show in header. Thanks.
0
votes
1answer
56 views

Magento 1.9.2 - I do not want to show username, password, host and port in PHPMailer using SMTP

At the moment we have this code to send emails with phpmailer via smtp. How can I make it work without showing username, password, host and port? I do not want to show my credentials in the file : ...
0
votes
0answers
43 views

Magento 1.9.3.7 not sending emails

I am using Magento 1.9.3.7 at URL http://wowitprojects.com/inkmytale/ But i did not get any emails. I have already make changes suggested in https://stackoverflow.com/questions/27450413/magento-1-9-1-...
0
votes
0answers
135 views

Pass array of data from email template to phtml in Magento 2.2.5

In magento 2.2.5, I need to pass data from mail template to phtml file. I did this using this link. But I cannot pass array of data in it. only text it is accepting. I am getting this error: Error ...
0
votes
3answers
508 views

How to send an Email confirmation after contact us

When the client uses the contact form, how can I get a confirmation email to the user?
2
votes
1answer
66 views

Add Dynamic Variable To Transaction Email

I need a dynamic variable to be called in email header and footer based off of the name of the main email template. I achieved this by adding my variable directly in the setTemplateParams()function ...
0
votes
1answer
39 views

Email sending times out on Magento 2

I noticed all of a sudden that any operation that has to do with sending email on my site returns with 504 server timeout page. Fortunately, the email gets sent but returns a 504 error. I went further ...
0
votes
0answers
104 views

Send all emails with cron/queue

I'm using magento 1.9.3.6 and I've read that from magento 1.9.1 supposedly all emails were going to be queued, however only the order/invoice/order-update emails appear affected. I can't find an exact ...
1
vote
1answer
89 views

Email is going to own domain only

I am using transport builder to send mail in custom module.The emails are going successfully to all emails as per WHM, but unable to receive to any other domain. Able to receive the emails to own ...
1
vote
0answers
13 views

Handling email attachments through Filesystem, correct or unnecessary?

I have a custom contact form for sending emails. One of the options is to attach a PDF. This is the part of the controller that handles checking the attachments and uploading them. $files = $...
1
vote
1answer
35 views

Problem with smtp configure

I have magento 2.2.4 with a smtp server configured. I can send email test from the tool and i receive it correctly. But when i buy a product I do not receive any email. What can be the error? I have ...
0
votes
0answers
24 views

Unable to send and receive emails in magento 2

I have configured cronjob here is the code in crontab */3 * * * * /usr/bin/php-7.1 /var/www/html/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/html/var/log/...
0
votes
2answers
68 views

Magento : In Controller get POST data and that data added to pdf file after attachment send mail

In Magento, while submit form from frontend in controller using post method i got every data. I want create one pdf file and keep this data in it after that attachment of this file and send with mail. ...
0
votes
2answers
169 views

Magento 2 - How to use admin panel email template in my custom module?

I have created the custom module for customer registration request including an email function also. email function is working fine. I have customized the email template using Marketing -> ...
0
votes
0answers
42 views

Magento : Send/Mail custom form data in PDF file

I have create one module for custom form fill by the user while click on submit button the form send two person one for user and second for website owner. This is working fine but i want to send this ...
0
votes
0answers
109 views

Magento2: connection refused mageplaza email

I get every time in exception.log any issue: Next Magento\Framework\Exception\MailException: Connection refused in /home/b2b/domains/b2bstyle.pl/public_html/vendor/mageplaza/module-smtp/Mail/...
0
votes
0answers
36 views

Actually i am facing one error while sending email programmatically magento2?

Here I am using default contact us email template from admin panel magento 2. app/code/Vendor/Module/Controller/Index/Contact.php <?php namespace Vendor\Module\Controller\Index; use ...
2
votes
3answers
256 views

Customer model file override issue in Magento2

I am trying to override customer model file below is the code of my di.xml <preference for = "Magento\Customer\Model\AccountManagement" type = "Vendor\Module\Model\Rewrite\Customer\...
2
votes
3answers
142 views

How can I add weight on an order confirmation?

I would like to add the total cart weight onto the order confirmation. On Magento 1 this code was added- <td colspan="4" align="left" valign="top" style="font-size:11px; padding:3px 9px; border-...
0
votes
0answers
118 views

Magento2: Stop user registration email notification to customer programmatically

I want stop email notification for user registration(createuser) programmatically. We can use plugin, observer, extend createpost controller. Can anyone please suggest which way is standard to do ...
0
votes
1answer
358 views

How to add News Letter Subscription checkbox on checkout Success Page in Magento 2?

I am getting email address in the database with this function: protected $subscriberFactory; public function __construct( \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, ....
1
vote
1answer
224 views

Welcome Email 1.9 disable sending this email

I have tried the other answers but have been unsuccessful. I am fairly new to PHP, XML, OOP, and Magento, sorry about that... I would like to disable the "Welcome new customer email" that is sent ...
1
vote
0answers
205 views

Send email using SMTP in PHP with PHPMailer [closed]

I tryed this code: <?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\...
1
vote
1answer
299 views

Magento 2 Get Order Data In Order Email Confirmation Template

I have made a custom template to use in my order confirmation email template. I want to get the order data in this template so I can create a custom order grid layout. I'm not sure on how to do this?...
3
votes
2answers
88 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 ...
1
vote
0answers
28 views

AheadWorks - Follow Up Email extension review event

I'm using Follow Up Email extension from AheadWorks. I wrote a rule to send a notification email when a user has submitted a review. What I'd want to achieve is to state name and sku of product for ...
1
vote
0answers
74 views

Send customer account creation email to admin

I want to send account creation notification email to admin . I followed following code. events.xml path Namespace/Modulename/etc <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
1
vote
0answers
69 views

Magento 2 Email Confirmation Not Working

I have a problem with Magento 2.2.5. All the links sent on email like the email confirmation link or the password reset link is not working. The problem is that is my website is my_website.com then ...
2
votes
0answers
39 views

How to check why magento store can't send email with new order

I'm meeting the problem with my store, I'm using 1.9.3.2, the email with orders can't send such as new order, new shipment, new invoice but contact email is working, I have checked the log file and ...
1
vote
0answers
115 views

Magento 1.9.3 - Mailing Solution for Magento Multistore

We are using a Magento 1.9.3 instance with multiple websites set up. Every website has it's own Mailbox and Mail-Address. And their own Domains. These are either hosted at all-inkl.com or gmail. ...