Android Question SMTP 503 "sender not given yet"

Hagen Schloemer

Member
Licensed User
Longtime User
I see the error 503 "sender not given yet", but i have send the login-name in the init statemaent and in the "sender" statement. I think the lib need a "from"-flied, but i cant see where i can set this....
I think in moment both statements are the same.

oSMTP.Initialize("smtp.xxxx.de",587, "username", "password", "SMTP")
oSMTP.Sender="sender@sender.de"
oSMTP.AuthMethod=oSMTP.AUTH_LOGIN
oSMTP.StartTLSMode = True
oSMTP.UseSSL =True
oSMTP.To.Add("touser@tomail.de")
oSMTP.Subject = "das ist eine Testmail"
oSMTP.HtmlBody = True
oSMTP.Body = "Mailtest !!!!" '
oSMTP.Send
 

Hagen Schloemer

Member
Licensed User
Longtime User
Hi Erel!

Thanks for your answer.
I have tested with all combinations. Nothing works. I think the reason is the "Reply to" field with no email-address inside. Is it possible to set this field?

best regards
Hagen
 
Last edited:
Upvote 0

Hagen Schloemer

Member
Licensed User
Longtime User
Hi Erel!

I have installed wireshark and tested it with the desktop outlook. The provider supports also unencrypted connections so i have everything turned off (also on my smartphone!) The desktop connects and transfer the mail, the smartphone means theat the sender is not given. In moment i have no emulator on my pc and the switch does not support port-mirroring, so i can not use wireshark to read the smartphone-data. my pc-data looks like the following:

220 mi4 ESMTP
EHLO hagenPC
250-mailin04.ims-firmen.de Hello hagenPC [ip]
250-SIZE 1048576000
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN CRAM-MD5
250-STARTTLS
250 HELP
AUTH LOGIN
334 ----removed-----
334 ----removed-----
235 Authentication succeeded
MAIL FROM: <mysourcemail@mail.de>
250 OK
RCPT TO: <mysourcemail@mail.de>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
From: Microsoft Outlook <mysourcemail@mail.de>
To: <mydestmail@mail.de>
Subject:----removed-----
MIME-Version: 1.0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: 8bit
---Message----

...and the mail arrives correctly.

I have found a similar entry in your forums, the result was a provider-change. In the last consequence i will do it also, but i think the failure must be to found.

best regards.
Hagen
 
Upvote 0

Hagen Schloemer

Member
Licensed User
Longtime User
Thanks Erel!

The provider does not support eMail-adresses als login-names. The provider means that the sender eMail must set separatly. I use an other provoder to solve this problem. I have tested gmail and everything is ok.

best regards
Hagen
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…