27.06.2014 11:46
|
|
exabur
Name: andi
29.09.2012
Сообщения: 43
|
Bestätigungsmail Absenderadresse ändern möglich ?
Hallo,
ich wollte fragen ob es möglich ist die Absenderadresse der Bestätigungsmails an den Administrator in die Adresse des jeweiligen Bestellenden automatisch zu ändern.
Also die Mail die an mich geht wenn eine neue Bestellung kommt soll die Mail Adresse desjenigen als Absender haben der bestellt hat.
Viele Grüße
|
|
27.06.2014 12:25
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25930
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
Joomla configuration email
|
|
27.06.2014 12:56
|
|
exabur
Name: andi
29.09.2012
Сообщения: 43
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
U probably dont understood what i meant.
I want every single mail i recievce as a administrator, when an order is placed, to have the costumers email adress as the "from" adress.
So every email should have another "from" email adress.
|
|
27.06.2014 13:38
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25930
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
Change file
\components\com_jshopping\models\checkout.php
|
|
27.06.2014 13:39
|
|
exabur
Name: andi
29.09.2012
Сообщения: 43
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
Change into what ? /i-dont-know-how.php or what ? ;-)
|
|
27.06.2014 17:29
|
|
exabur
Name: andi
29.09.2012
Сообщения: 43
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
Can u tell me how it works or not ?
And the more important question. Do u want to tell me how it works ?
|
|
27.06.2014 17:33
|
|
exabur
Name: andi
29.09.2012
Сообщения: 43
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
$mailfrom = $mainframe->getCfg('mailfrom');
$fromname = $mainframe->getCfg('fromname');
This ? Change into what ?
|
|
27.06.2014 17:50
|
|
exabur
Name: andi
29.09.2012
Сообщения: 43
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
SOLVED
Change Line 249 from
$mailer->setSender(array($mailfrom, $fromname));
into
$mailer->setSender($order->email);
Thanks for your help
|
|
27.06.2014 17:51
|
|
exabur
Name: andi
29.09.2012
Сообщения: 43
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
Is that right ?
|
|
28.12.2016 11:38
|
|
JKahle
Name: Jürgen
29.04.2015
Сообщения: 12
|
Aw: Bestätigungsmail Absenderadresse ändern möglich ?
How can it be done in latest version 4.15?
in "ordermailphp" - line 146 $mailfrom is set to $app->getCfg('mailfrom');
but how can the "mailfrom" or at least the "replyto" set to custumers mail for admins copy?
SOLVED
Line 150
$mailer = JFactory::getMailer();
if ($type=='admin'){
$mailer->setSender($this->order->email);
}else{
$mailfrom = $app->getCfg('mailfrom');
$fromname = $app->getCfg('fromname');
$mailer->setSender(array($mailfrom, $fromname));
}
$mailer->addRecipient($recipient);
Последнее изменение: 28.12.2016 12:58
|
|