Home › Forums › The libraries hosted on the site › EMailSender send email with attachments › SMTP server to use with the EMailSender library › Stuck: SMTP AUTH error (500 unrecognized command )
- This topic has 1 reply, 1 voice, and was last updated 2 minutes ago by
Bruce.
-
AuthorPosts
-
-
22 September 2025 at 15:28 #33342
Hello,
Ciao Renzo for all the hard work!
I am SO wanting my Arduino controller boards I make for clients / projects to email daily log files. Its been a long long road. Seems to simple yet so complex.
I am now using Due clone (ARM Cortex-M3 CPU) and SPI W5500 wired Ethernet, SD etc That all works okay, and I can run the https test okay.
But I need to use my own smtp server with TLS port 587. Serer has been tested independently.
The config is:
EMailSender emailSend(“eman@wisenet.co.za”,”passsswqord”,”eman@wisenet.co.za”,”smtp.wisenet.co.za”,587);
Running my test, which is much the same as the STM32w5500_GMail_SSL_Attach_SD example, I get this on the serial monitor:
Initializing SD card…initialization done.
Begin Ethernet
DHCP OK
Ethernet Successfully Initialized
Local IP : 192.168.0.109
Subnet Mask : 255.255.255.0
Gateway IP : 192.168.0.1
DNS Server : 192.168.0.1
Write file content!
All structure created!
Sending status:
0
235
SMTP AUTH error (500 unrecognized command)So its talking to the SMTP Server but can’t authenticate…?
I generated trust_anchor.h for wisenet.co.za,smtp.wisenet.co.za and that is in the sketch folder
I uncommented
#define SSLCLIENT_WRAPPERAs I say h/w is all tested okay with all works with the https: test example
One thing, I can’t use #include <EthernetLarge.h> it generates reams of errors like
libraries\EthernetLarge-master\Dhcp.cpp.o:C:\Users\User\Documents\Arduino\libraries\EthernetLarge-master\src/Dhcp.cpp:29: first defined herelibraries\Ethernet\Dhcp.cpp.o: In function `__static_initialization_and_destruction_0′:
So I am using #include <Ethernet.h>
Any advise highly appreciated, I really would like to get this working
Thanks.
Bruce
-
This topic was modified 2 hours, 16 minutes ago by
Bruce.
-
This topic was modified 2 hours, 16 minutes ago by
-
22 September 2025 at 17:44 #33344
This is the test results from the SMTP server
This mail was directly sent by smtp.wisenet.co.za.
SMTP host: smtp.wisenet.co.za
Port: 587
Use SLL: True
Use Authentication: True
Authentication name: eman@wisenet.co.za
Authentication password: [not applicable]
Email from: eman@wisenet.co.za
Email to: kosmos303@gmail.comThis service is provided by https://smtper.net
-
-
AuthorPosts
- You must be logged in to reply to this topic.