Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [email]

Questions about emails sent by Magento in general

0
votes
0answers
7 views

Magento2 How to send order email copy to custom email address with custom module when order placed?

I want to make one module where i can set email address in back end. When order placed i want to send that email copy to my custom email which is set in admin. how can i achieve this functionality ...
0
votes
0answers
8 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
17 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 ...
2
votes
1answer
65 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
14 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
51 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
1answer
18 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
23 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
42 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
13 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
14 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
20 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
33 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
28 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
27 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
24 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
21 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
11 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
40 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
11 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
0answers
10 views

Add form data to email template Magento 2

Form fields are like Name Email Address City State Zip code I created the controller for this and from $_POST I get data from all field but how can I pass to my email template which ...
0
votes
1answer
161 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\...
0
votes
1answer
17 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
31 views

Remove email from shipping address on checkout Magento2

I want to completely remove email input on guest checkout. I am getting customer email before checkout with custom module and saving it in session. I want to use that email address as guest email. ...
0
votes
0answers
12 views

How can I remove the tax from my invoice mail?

I would like to remove this line over here (TAX/BTW): https://i.gyazo.com/9789904e7183b8dcfcef6d9fe7e536e3.png So that it would look like this: https://i.gyazo.com/f659e566b03365a07d671bb0bd4f2f56....
0
votes
0answers
32 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
19 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
0answers
28 views

Special characters in custom email?

When sending an email via $emailHelper->sendEmail($fromMail, $fromName, $toEmail, $toName, $emailSubject, $emailBody); This uses $email = new \Zend_Mail() special characters (such as danish Æ,Å &...
0
votes
3answers
37 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?
0
votes
0answers
22 views

Adding custom header value to all emails for Amazon SES tracking

I'm struggling for quite a long now how to add a custom email header to all emails going out of Magento. I need to add the message tag header or the email header, like "X-SES-CONFIGURATION-SET: ...
2
votes
1answer
26 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
17 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
22 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
0answers
50 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
9 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 = $...
0
votes
0answers
34 views

Cron send mail problem

I meet a problem when using cronjob send an email. My code: public function sendMailCancel($order){ if($this->_state->getAreaCode()== \Magento\Framework\App\Area::AREA_CRONTAB){ $...
1
vote
1answer
28 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
23 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
42 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
46 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
33 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
20 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
23 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
63 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
102 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
38 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
0answers
22 views

Notify admin when customer logs in

I want to send an email to the admin everytime a customer logs into his account on frontend. I have created a custom module in which I have the required files module.xml, registration.php and ...
0
votes
1answer
61 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
70 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
59 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\...