[SOLVED] Send Email with SMTP Settings |
6/12/2024 2:57:39 PM |
PHPRunner General questions | |
P
PK author
I have been using my gmail account to send emails from my app. And before I was able to do this I had to go to my google account and "allow less secure apps to connect" and this has worked fine with no problem,
And I try to send the email using the same method as before $ret=runner_mail(array('to' => $email, 'subject' => $subject, 'htmlbody' => $msg, 'fromName'=> $fromName, 'from'=>$from)); But this does not work. I get an error in the afterServer of my button about "undefined Err". "Err" is the variable from here $result["Err"] Thanks Percy |
|
M
|
Mark Kramer 6/12/2024 |
If you are using Office 365 (just a wild guess when you said "company" email) the same scenerio like your gmail, it will have to be set to use less secure via your admin section on 365. I would also try sending with out ssl to test. be sure to change you ports when you turn off ssl. I run into this a lot with scannner/copiers . |
P
|
PK author 6/13/2024 |
Thank you for your response.
Thanks again Percy |
M
|
Mark Kramer 6/13/2024 |
Cool! |
P
|
PK author 6/14/2024 |
Mark Kramer, strSMTPUser No API token parameter as far as I can tell. Any ideas? Thanks |
![]() |
fhumanes 6/14/2024 |
Hello , In my mail client, I have a Microsoft account and these are the parameters that I have configured.
Greetings, |
![]() |
fhumanes 6/14/2024 |
Hello , In my mail client, I have a Hostinger account and these are the parameters that I have configured.
Greetings, |
M
|
Mark Kramer 6/15/2024 |
Are you using Godaddy's office 365 for mail? If so there are some settings that must be turned on. Read this article https://www.godaddy.com/help/set-up-microsoft-365-email-with-smtp-on-a-multifunction-device-41962 |
P
|
PK author 6/15/2024 |
Thanks Fernando and Mark, Mark, redarding your question, I am not using Office 365. Seems like a normal hosting package. Screen shop from my Godaddy account
I also just found this (below) in my cPanel saying the SSL cerificate is expired?
If this is the issue, then the email on my phone and laptop should not work where I am using SSL/TLS in both, but it works there. |
P
|
PK author 6/15/2024 |
I cannot believe how dumb I have been in the last few days. So now I have changed all pages to lookup all credentials including the "fromEmail" from my db. Problem Solved. Thanks you all for your help and I feel terrible for wasting your time. Thanks again!! Percy |