Jump to content

Outbox email?


karolretezan

Recommended Posts

sa inteleg ca nu ai lasat pe default (phpmail) ci ai schimbat in smtp si ai declarat serverul, user si pass.

 

bun, primul pas e ok (daca ai testat si functioneaza atunci e perfect)

 

ca sa poti sa ai acces la mailurile trimise (acel "retine" al tau) trebuie sa vezi daca serverul de mail (cel setat in presta) este configurat ca imap, la fel si clientul tau de email pt acea adresa de mail (outlook, thunderbird, etc) este setat tot ca imap.

 

in cazul asta o se vezi mailurile trimise de presta

Link to comment
Share on other sites

Serverul de email este pe domeniul meu (Server SMTP: mail.domeniu.ro).  Iar ca si administrare ma conectez la o interfata DirectAdmin, din cate am cautat pe acolo nu am gasit nimic relevant. La E-Mail management am urmatoarel optiuni:

  • E-Mail Accounts
  • Catch-All E-Mail
  • Forwarders
  • Vacation Messages
  • Spamassassin Setup
  • SPAM Filters
  • Webmail: Squirrelmail
  • Webmail: Roundcube
  • MX Records
Ma poti indruma?
Link to comment
Share on other sites

Am incercat, nu merge. Am facut mai devreme o comanda fictiva, clientul primeste emailuri de pe adresa.
Am pe laptop, Thunderbird configurat in IMAP. Testat, trimite si primeste emailuri.
Pe desktop, Thunderbird configurat in POP3. La fel, testat, trimite si primeste.... Ceva imi scapa?

 

Ori vreo setare in Thunderbird...  :unsure:

Link to comment
Share on other sites

nu, treaba e la nivel de server de mail si cum trimite presta.

 

cum arata header-ul mailului pe care-l primeste clientul?

in thunderbird dai click pe mail pe urma ctrl+u si la inceput trebuie sa fie ceva de genul

Delivered-To: [email protected]: by 10.194.200.3 with SMTP id jo3csp1708110wjc;        Mon, 3 Oct 2016 07:54:16 -0700 (PDT)X-Received: by 10.28.234.5 with SMTP id i5mr9439269wmh.128.1475506456793;        Mon, 03 Oct 2016 07:54:16 -0700 (PDT)Return-Path: <[email protected]>Received: from ps-web02-vbo.alionis.net (gate-prestashop.cust.ALIONET.NET. [91.240.109.1])        by mx.google.com with ESMTP id 8si19232969wmc.29.2016.10.03.07.54.16        for <[email protected]>;        Mon, 03 Oct 2016 07:54:16 -0700 (PDT)Received-SPF: neutral (google.com: 91.240.109.1 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=91.240.109.1;Authentication-Results: mx.google.com;       spf=neutral (google.com: 91.240.109.1 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]: by ps-web02-vbo.alionis.net (Postfix, from userid 33)	id A7379E01BD; Mon,  3 Oct 2016 16:54:16 +0200 (CEST)To: [email protected]: New reply to Outbox email?X-PHP-Originating-Script: 1300:classEmail.phpMIME-Version: 1.0Date: Mon, 03 Oct 2016 14:54:16 +0000X-Priority: 3X-Mailer: IPS PHP Mailer
Link to comment
Share on other sites

Asa arata:

Return-path: <office[at]pitpc.ro>
Envelope-to: office[at]pitpc.ro
Delivery-date: Mon, 03 Oct 2016 17:30:42 +0300
Received: from [144.76.85.194]
	by panther.dow-media.com with esmtpa (Exim 4.86.2)
	(envelope-from <office[at]pitpc.ro>)
	id 1br4GP-0001e9-Oq
	for office[at]pitpc.ro; Mon, 03 Oct 2016 17:30:42 +0300
To: =?UTF-8?B?b2ZmaWNlQHBpdHBjLnJv?= <office[at]pitpc.ro>
From: PitPC <office[at]pitpc.ro>
Reply-To: PitPC <office[at]pitpc.ro>
Subject: [PitPC] Comanda noua - #000169
Date: Mon, 03 Oct 2016 17:30:41 +0300
X-LibVersion: 3.3.2
MIME-Version: 1.0
Content-Type: multipart/related;
 boundary="_=_swift-177651589457f26b91bc20e3.30798087_=_"
Content-Transfer-Encoding: 7bit
Message-ID: <[email protected]>
X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
X-EsetId: 37303A29EB486D676C716A

Am modificat @ cu [at]

Link to comment
Share on other sites

bun, m-am lamurit.

 

treaba e mai complicata si are 2 abordari. ori modifici setarile de server ceea ce nu poti daca nu ai vps, ori modifici in presta.

problema e ca ar trebui sa modifici in presta fiecare controller/clasa care trimite mailuri.

 

de exemplu pentru comenzi ai asa, in presta 1.6

/classes/order/OrderHistory.php

ai acolo sendEmail() pe la linia 455

 

if(!Mail::Send((int)$order->id_lang, $result['template'], $topic, $data, $result['email'], $result['firstname'].' '.$result['lastname'],
                    null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int)$order->id_shop))
                    return false;

 

pe care ar trebui sa o inlocuiesti  cu

 

$admin_email = '[email protected]';
if(!Mail::Send((int)$order->id_lang, $result['template'], $topic, $data, $result['email'], $result['firstname'].' '.$result['lastname'],
                    null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int)$order->id_shop))
                    return false;

if(!Mail::Send((int)$order->id_lang, $result['template'], $topic, $data, $admin_email, $result['firstname'].' '.$result['lastname'],
                    null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int)$order->id_shop))
                    return false;

 

ATENTIE: adresa [email protected] trebuie sa fie diferita de cea declarata in setarile presta!! altfel da eroare.

 

 

Si pe stilul asta ar trebui modificate si restul care trimit mailuri, inclusiv prin module.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...