PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, June 30, 2022

[FIXED] How to Send email programatically Prestashop?

 June 30, 2022     prestashop     No comments   

Issue

Hello i am trying to send email in prestashop in module but its not working.

Is their any way to do this ?


Solution

You should check Mail class and Send method.

Example:

Mail::Send(
    (int) $this->context->language->id,
    $this->getTemplate(),
    $this->getSubject(),
    $this->getTemplateVars(),
    $this->getTo(),
    $this->getToName(),
    $this->getFrom(),
    $this->getFromName(),
    $this->getFileAttachment(),
    $this->isModeSmtp(),
    $this->getTemplatePath(),
    $this->isDie(),
    (int) $this->context->shop->id,
    $this->getBcc(),
    $this->getReplyTo()
);

You have more examples in entire system. Just search for "Mail::Send" in code.



Answered By - Krystian Podemski
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing