Solving common email issues in PrestashopFixing Email Problems > scrap 자료실

본문 바로가기
 

Solving common email issues in PrestashopFixing Email Problems

페이지 정보

작성자 휴먼 댓글 0건 조회 3,981회 작성일 13-07-25 17:30

본문

Solving common email issues in Prestashop

Fixing Email Problems
This page was written in English, please see the English version for the correct code changes.

There are a few reasons why Prestashop cannot send emails from your server, the most common ones are:

  • "From" field doesn't match your domain.
  • Incompatible additional headers.

Below are solutions to both:
In /tools/swift/Swift/Message.php line #79
Change
$this->setFrom("");
To
$this->setFrom("youremail@yourdomainname.com");

In /tools/swift/Swift.php after line 370
if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);
Add the following code:
if (!$has_reply_to[0])
$message->setReplyTo($from->getAddress());

Now try sending a contact message....

If it still doesn’t work, make the following change:
In /tools/swift/Swift/Plugin/MailSend.php line # 159
Add
$params = "";

댓글목록

등록된 댓글이 없습니다.

Total 17건 1 페이지
게시물 검색