Jump to content
karolretezan

Outbox email?

Recommended Posts

Salutare!

Am configurat email in SMTP.
Va intreb daca exista o varianta sa "retin" toate email-urile ce pleaca din site. Un fel de outbox.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Multumesc pentru raspuns.
Am prestashop 1.5.5, iar in BO/Parametri avansati/E-mail, nu am nici o optiune sa bifez IMAP sau POP3.
Thunderbird il am configurat in POP3. Ma pun sa-l modific, doar ca primul pas... nu stiu cum voi putea sa-l fac.

Share this post


Link to post
Share on other sites

in BO presta nu trebuie sa mai faci nimic.

 

este vorba de serverul de mail, este pe domeniul tau?! ai cpanel?! folosesti gmail?!

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

bun, deci ai si pop3 si imap activat. ar trebui sa mearga.

Share this post


Link to post
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:

Share this post


Link to post
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: b.s@g.comReceived: 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: <www-data@ps-web02-vbo.alionis.net>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 <b.s@g.com>;        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 www-data@ps-web02-vbo.alionis.net) 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 www-data@ps-web02-vbo.alionis.net) smtp.mailfrom=www-data@ps-web02-vbo.alionis.netReceived: by ps-web02-vbo.alionis.net (Postfix, from userid 33)	id A7379E01BD; Mon,  3 Oct 2016 16:54:16 +0200 (CEST)To: b.s@g.comSubject: 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

Share this post


Link to post
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: <20161003143041.283143049.swift@www.pitpc.ro>
X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
X-EsetId: 37303A29EB486D676C716A

Am modificat @ cu [at]

Share this post


Link to post
Share on other sites

Poate e de la "esmtpa (Exim 4.86.2)".

Poate presta stie de smtp, nu de extended smtp...

Share this post


Link to post
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 = 'admin@site.com';
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 admin@site.com 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.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More