Hi, we've used SMTP library to send an email through a commercial stmtp service (mail-up).
We need to login with user/password and specify a sender different from user.
Even if we used the sender property, seems the STMP server (postfix) don't read the from correctly (I saw in the postfix log user as sender).
Feb 26 16:16:10 fsteml03 postfix/smtpd[3200]: NOQUEUE: reject: RCPT from unknown[**.**.***.***]: 504 5.5.2 <s66360_1>: Sender address rejected: need fully-qualified address; from=<s66360_1> to=<s******@*********.com> proto=ESMTP helo=<10.10.**.**>
We've tried to use additional header with "Sender" and "From" but the result is the same.
Here our sample code:
There is a way to debug the connection (writing on the log the whole SMTP dialog with the server) or you have some idea?
The same SMTP connection works fine with iOs (Objective-C) and with web application using the same parameters.
Thanks.
Maurizio
We need to login with user/password and specify a sender different from user.
Even if we used the sender property, seems the STMP server (postfix) don't read the from correctly (I saw in the postfix log user as sender).
Feb 26 16:16:10 fsteml03 postfix/smtpd[3200]: NOQUEUE: reject: RCPT from unknown[**.**.***.***]: 504 5.5.2 <s66360_1>: Sender address rejected: need fully-qualified address; from=<s66360_1> to=<s******@*********.com> proto=ESMTP helo=<10.10.**.**>
We've tried to use additional header with "Sender" and "From" but the result is the same.
Here our sample code:
B4X:
Dim Mail As SMTP
Mail.Initialize("****.******.com", ***, "s66360_1", "***", "SMTP")
Mail.UseSSL = False
Mail.StartTLSMode = True
Mail.Sender = "****.********.com"
Mail.Subject = "Send email"
Mail.To.Add("s******@*********.com")
Mail.Body = "Body mail"
Log(Mail.Sender)
Mail.Send
The same SMTP connection works fine with iOs (Objective-C) and with web application using the same parameters.
Thanks.
Maurizio
Last edited: