Page 1 of 1

Send mail (ask questions)

Posted: 02 Feb 2024, 21:27
by Serebro200
Hello, I want send a letter with a question from the site. But I get error:

SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Sender address rejected: not owned by authorized user 1706903798-cuiC0A6Ona60-aBQDC1Cn SMTP code: 550 Additional SMTP info: 5.7.0
SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Sender address rejected: not owned by authorized user 1706903798-cuit066Or4Y0-BpRaAKHq SMTP code: 550 Additional SMTP info: 5.7.0

In global JOOMLA SMTP send is ok

Re: Send mail (ask questions)

Posted: 03 Feb 2024, 15:48
by Serebro200
Image

Re: Send mail (ask questions)

Posted: 03 Feb 2024, 16:40
by Serebro200
This error is SMTP Yandex...

https://www.phoca.cz/apis/2-phocacart/7 ... ail#source

if (isset($post2['email']) && $post2['email'] != '') {
$mailfrom = $post2['email'];
} else {
$mailfrom = $rows[0]->email;
}

You need to add a line:

$mailfrom = $app->getCfg('mailfrom');

when sending mail, the component PC specifies the user's address as the sender's address, which he entered when preparing and sending the message

Re: Send mail (ask questions)

Posted: 07 Feb 2024, 14:15
by Jan
Hi, thank you for the info,

I plan to do similar as it is used in Phoca Guestbook:

$mailFromAdmin = $rows[0]->email;

$mailFromConfig = Factory::getApplication()->get('mailfrom', '');
if ($mailFromConfig != '' && Joomla\CMS\Mail\MailHelper::isEmailAddress($mailFromConfig)) {
$mailFromAdmin = $mailFromConfig;
}

Re: Send mail (ask questions)

Posted: 14 Nov 2024, 16:06
by nscom
Hello, I also have this error message
SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Sender mismatch SMTP code: 550 Additional SMTP info: 5.7.1
do you have a solution via the ‘ask a question’ form?
thank you

Re: Send mail (ask questions)

Posted: 15 Nov 2024, 17:10
by Jan
Hi, this is different message we discussed (the problem we discussed was "sender address rejected"), this message is about SMTP problem when sending. So the best way is to ask STMP provider for some log information why the DATA END command failed.

Jan