This topic is locked
[SOLVED]

send email after add

10/3/2022 1:28:06 AM
PHPRunner General questions
Roosevelt author

Hi everyone, it's great to be here. Straight to the point. I need to configure the outgoing email in Misc, Email Settings for gmail but after adding the record the email does not arrive.

$email ="cotvararandas@gmail.com";

$message="Prezado Carlos, solicito sua aprovação para o orçamento de compra";

$subject="Solicitação para Aprovar Compra";

mail($email , $subject, $message);

image:

img alt

I need help.
tks.

Sergey Kornilov 10/3/2022

mail is incorrect, use runner_mail

Roosevelt author 10/5/2022

Hi thanks for helping!
But it did not work. I've done and redone several times and it doesn't send the email.

img alt
you can see here
login: admin
Password:123

Sergey Kornilov 10/5/2022

As a first step you need to follow troubleshooting steps specified in Trobuelshooting SMTP errors article. Post your findings here.

Roosevelt author 10/5/2022

Hi thanks for helping!
The problem is that I don't have version 10.8. Even if I had I wouldn't understand what was shown.

Sergey Kornilov 10/6/2022

You don't need to understand it. You produce debug info and post it here so we can troubleshoot it.

Roosevelt author 10/8/2022

Hello everyone, with the help of Adm., I managed to make it work. The problem was in the code, I needed to put the same email used in the configuration of misc -> email setttings. Now I will try to improve by figuring out how to send to various other emails. Thanks again.