there is an issue with sending mail from @yahoo.com accounts through non-yahoo servers. yahoo has a policy, which, if you happen to be an smtp server and you agree to cooperate with yahoo, you will reject the mail because it was not sent by a yahoo server. (if you don't follow the policy - and you don't have to - you deliver the mail as normal.) my app uses the net library to send mail through a third party server, and i happen to have an @yahoo.com account. any mail i send to servers cooperating with yahoo reject the mail. (gmail cooperates, so mail "from" yahoo to gmail, but not going through yahoo servers, will be bounced. the policy is "dmarc".)
setting aside some obvious workarounds for the moment, i wanted to know how the smtp dialog in the net library is coded. specifically, what is the string that follows the "ehlo" statement when the library begins the session with the stmp server? i see the "ehlo" in the $stmp class file and a reference to a string that follows. what does that string point to? "ehlo" is supposed to be followed by a fully qualified domain name, but technically you can get away with putting nothing. the receiving server does a reverse lookup even if you say nothing. anyway, my third party smtp server says my "software" is showing @yahoo.com account as "return-path" even though i have manually set every header i can (either through net or smtpextras) to something else. my "software", of course is the b4a app and the net library (enhanced with smtpextras). i say i've done what i can with the app. what i can't speak to is what the net library does. so, i'm asking: what does it do when it sends "ehlo"? and what does it do when it sends "mail from:" (and i'm making the distinction between "From:" and "mail from:". "From:" is not part of the smtp dialog between net and the server.) it must be getting the strings that follow those commands from somewhere. my guess is it's taking something from smtp.initilize(). in my case, it's the only place where a reference to @yahoo.com is made. all the other headers which i set or add do not refer to yahoo.
thanks for any help.
-go
setting aside some obvious workarounds for the moment, i wanted to know how the smtp dialog in the net library is coded. specifically, what is the string that follows the "ehlo" statement when the library begins the session with the stmp server? i see the "ehlo" in the $stmp class file and a reference to a string that follows. what does that string point to? "ehlo" is supposed to be followed by a fully qualified domain name, but technically you can get away with putting nothing. the receiving server does a reverse lookup even if you say nothing. anyway, my third party smtp server says my "software" is showing @yahoo.com account as "return-path" even though i have manually set every header i can (either through net or smtpextras) to something else. my "software", of course is the b4a app and the net library (enhanced with smtpextras). i say i've done what i can with the app. what i can't speak to is what the net library does. so, i'm asking: what does it do when it sends "ehlo"? and what does it do when it sends "mail from:" (and i'm making the distinction between "From:" and "mail from:". "From:" is not part of the smtp dialog between net and the server.) it must be getting the strings that follow those commands from somewhere. my guess is it's taking something from smtp.initilize(). in my case, it's the only place where a reference to @yahoo.com is made. all the other headers which i set or add do not refer to yahoo.
thanks for any help.
-go