H Hagen Schloemer Member Licensed User Longtime User May 17, 2014 #1 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="[email protected]" oSMTP.AuthMethod=oSMTP.AUTH_LOGIN oSMTP.StartTLSMode = True oSMTP.UseSSL =True oSMTP.To.Add("[email protected]") oSMTP.Subject = "das ist eine Testmail" oSMTP.HtmlBody = True oSMTP.Body = "Mailtest !!!!" ' oSMTP.Send
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="[email protected]" oSMTP.AuthMethod=oSMTP.AUTH_LOGIN oSMTP.StartTLSMode = True oSMTP.UseSSL =True oSMTP.To.Add("[email protected]") oSMTP.Subject = "das ist eine Testmail" oSMTP.HtmlBody = True oSMTP.Body = "Mailtest !!!!" ' oSMTP.Send
Erel B4X founder Staff member Licensed User Longtime User May 18, 2014 #2 Which mode do you want to use? Either StartTLSMode or UseSSL should be true. Not both of them. Such errors usually occur because of the wrong authentication mode. Upvote 0
Which mode do you want to use? Either StartTLSMode or UseSSL should be true. Not both of them. Such errors usually occur because of the wrong authentication mode.
H Hagen Schloemer Member Licensed User Longtime User May 18, 2014 #3 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: May 18, 2014 Upvote 0
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
Erel B4X founder Staff member Licensed User Longtime User May 18, 2014 #4 I'm pretty sure that this error is not related to the reply to field. Are you able to send emails from the desktop with this server? If yes then you can use a tool such as wireshark to monitor the network traffic and then post the exact messages (without any sensitive information). Upvote 0
I'm pretty sure that this error is not related to the reply to field. Are you able to send emails from the desktop with this server? If yes then you can use a tool such as wireshark to monitor the network traffic and then post the exact messages (without any sensitive information).
H Hagen Schloemer Member Licensed User Longtime User May 18, 2014 #5 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: <[email protected]> 250 OK RCPT TO: <[email protected]> 250 Accepted DATA 354 Enter message, ending with "." on a line by itself From: Microsoft Outlook <[email protected]> To: <[email protected]> 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
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: <[email protected]> 250 OK RCPT TO: <[email protected]> 250 Accepted DATA 354 Enter message, ending with "." on a line by itself From: Microsoft Outlook <[email protected]> To: <[email protected]> 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
Erel B4X founder Staff member Licensed User Longtime User May 19, 2014 #6 If you like you can send me the credentials by mail and I will test it. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 20, 2014 #7 Seems like the user name is not correct. I've tested it with B4J. This makes it easier to monitor the network traffic: Upvote 0
Seems like the user name is not correct. I've tested it with B4J. This makes it easier to monitor the network traffic:
H Hagen Schloemer Member Licensed User Longtime User Jun 1, 2014 #8 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
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