Smtp:SendMail() only delivers e-mails to my own account...

Smtp:SendMail() only delivers e-mails to my own account...

Post by Hans Rattin » Sat, 16 Nov 2002 06:51:42



Hi all,

I want to use the class authSMTP to send mail notifications with my Cgi. And
actually that works, if i work locally. Then every mail gets sended. But,
when i upload the Cgi it'll only deliver e-mails to me (allthough it says
the others went well).

The only difference between the e-mails that get sended and not is the
addres i send them to. Could this have something to do with my ISP that
connects me to internet? I'm puzzled...

Hans.

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Gary Star » Sat, 16 Nov 2002 07:03:44


Hans,


> Hi all,

> I want to use the class authSMTP to send mail notifications with my Cgi. And
> actually that works, if i work locally. Then every mail gets sended. But,
> when i upload the Cgi it'll only deliver e-mails to me (allthough it says
> the others went well).

> The only difference between the e-mails that get sended and not is the
> addres i send them to. Could this have something to do with my ISP that
> connects me to internet? I'm puzzled...

I'd say it's quite likely something to do with that ISP, but not exclusively.

Have you tried connecting to that ISP in a telnet session to see what happens
when your application attempts a connection?

Is the ISP hosting an open relay?

Are you tracking error messages from the ISP's mailserver?

If it's not the ISP ...

Are you sending to the correct address?

Are you providing a correct return address, in case the message isn't
deliverable?

Is the "from" address you're using resolvable? If it's not, the message may
(correctly) be dropped at the email server as it could be considered (by the
server) to be spam. But this one is not a server issue.
.

--
g.
Gary Stark

http://RedbacksWeb.com

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Phil McGuinnes » Sat, 16 Nov 2002 07:37:57


Hans,

I checked out the authSMTP email class re  CC and BCC and found nothing
wrong, but you should be aware of the following anomoly.   I spent some
hours checking all the instructions be assemble under SMTP and what went out
to the mail server.

On my Mail server which is a W2K server I have email addresses like


other two Email addresses I would expect I would receive 3 copies when I
check my Email........

Guess what I only get ONE as the Mail server even though instructed to send
3 decides to send one as all email addresses resolves to my parent user
which owns all email addressses.  I do not know if I like this feature of
the Exchange server but now that I know that is how it works fine..

However if I CC to an external or other internal Email addresses which are
not linked to me ( as a user..) then multiple emails are sent.  Interesting
indeed.......

I am not sure whether this is a feature of an email server which is 'locked
down' to stop spamming or what, but initially I thought there was something
wrong with the email class as well.

I just tried the same thing with Outlook express and I got exactly the same
result.

Phil McGuinness
-------------------


Quote:> Hi all,

> I want to use the class authSMTP to send mail notifications with my Cgi.
And
> actually that works, if i work locally. Then every mail gets sended. But,
> when i upload the Cgi it'll only deliver e-mails to me (allthough it says
> the others went well).

> The only difference between the e-mails that get sended and not is the
> addres i send them to. Could this have something to do with my ISP that
> connects me to internet? I'm puzzled...

> Hans.

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Hans Rattin » Sat, 16 Nov 2002 07:29:37


Hi Gary,

That was a fast one! I'll try to answer your questions:

Quote:> Have you tried connecting to that ISP in a telnet session to see what
happens
> when your application attempts a connection?

I'm not very experienced but tried telnet a few times, and am not that far i
can reproduce that (without some detailed hints).
What i could do was send debug messages to my debug window and so i could
follow a bit of the conversations. As locally everything goes fine, nothing
strange happens.

Quote:> Is the ISP hosting an open relay?

I'm afright i don't know what that means...

Quote:> Are you tracking error messages from the ISP's mailserver?

I wouldn't know how to do that.

Quote:> Are you sending to the correct address?

I have 4 mailboxes to test upon, with different providers. When doing the
test locally they all arive. With the Cgi on the webserver, only my mailbox
on planet.nl arives.

 > Are you providing a correct return address, in case the message isn't

Quote:> deliverable?

Stupid, i haven't thought of that. I'll do that straight away.

Quote:> Is the "from" address you're using resolvable? If it's not, the message
may
> (correctly) be dropped at the email server as it could be considered (by
the
> server) to be spam. But this one is not a server issue.

Yep: the from address does work and is okay (i just did another test).

Regards, Hans.

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Hans Rattin » Sat, 16 Nov 2002 08:15:17


Hi Phil,

Perhaps the CC-error has something to do with my other problem (sending
normal e-mail from a different location). But it's strange indeed. I'll
experiment more with this tomorrow night and let you know the outcome.
Especially the cc-thing sound intriging.

Question: is "method SendHeader(lFiles)" the actual code that describes what
is send to whom and "SendHeaderInfo(cFrom, xTo, xCC)" more a description but
not used by mailservers? If that's the case i understand why the BCC should
be send as well, but why does it come after "self:__StartData()".

Bye!

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Phil McGuinnes » Sat, 16 Nov 2002 08:53:18


If you step through the code you will see a string constructed which is then
handed to the SMTP engine.

It is done in stages and each string is Acknowledged..

Phil
----


Quote:> Hi Phil,

> Perhaps the CC-error has something to do with my other problem (sending
> normal e-mail from a different location). But it's strange indeed. I'll
> experiment more with this tomorrow night and let you know the outcome.
> Especially the cc-thing sound intriging.

> Question: is "method SendHeader(lFiles)" the actual code that describes
what
> is send to whom and "SendHeaderInfo(cFrom, xTo, xCC)" more a description
but
> not used by mailservers? If that's the case i understand why the BCC
should
> be send as well, but why does it come after "self:__StartData()".

> Bye!

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by malcolm.gra » Sat, 16 Nov 2002 18:54:30



Quote:> Guess what I only get ONE as the Mail server even though instructed to
send
> 3 decides to send one as all email addresses resolves to my parent user
> which owns all email addressses.  I do not know if I like this feature of
> the Exchange server but now that I know that is how it works fine..

I know exim does this (unless you take care to stop it)
and exchange certainly has code to make sure that if you
are in multiple mailing lists that are received at the same
time you only get one copy.

I guess everyone in this thread already knows that as far
as the MTA are concerned From:, To:, CC: and BCC: don't exist,
the servers only care about MAIL FROM: and RCPT TO:

An open relay is one that will send mail from anymachine to anyone.
(e.g. the exim server I admin at work will receive mail from
anyone if addressed (RCPT TO:) to one of our domains and will
process mail to anyone if sent from one of our machines (IP addresses)
or the sender has correctly authenticated. (if you are using auth
then you should be able to send to anyone)

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by malcolm.gra » Sat, 16 Nov 2002 23:52:10



Quote:> Hi all,

> I want to use the class authSMTP to send mail notifications with my Cgi.
And
> actually that works, if i work locally. Then every mail gets sended. But,
> when i upload the Cgi it'll only deliver e-mails to me (allthough it says
> the others went well).

> The only difference between the e-mails that get sended and not is the
> addres i send them to. Could this have something to do with my ISP that
> connects me to internet? I'm puzzled...

What sender address are you using - does it exist and have you checked it
for mail - the mail server you send to may have accepted the mail
and then failed to send it on it next hop and either be queuing it
(for a temporary failure) or have bounced it (for a permanent one)
and it either case may have notified the envelope sender.

When you tried telnet how far did you get - did you manage
to send any email?
Which sort of AUTH are you using?
I would test it with:
telnet <hostname> 25
EHLO <my host name>
<the auth command>
MAIL FROM: <the sender you program uses>
RCPT TO: <the recipient>
DATA
Subject: test mail
this is the body
.

I think the auth might be
auth login
user <username>
pass <password>

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Hans Rattin » Sun, 17 Nov 2002 07:45:31


Hi Malcom,

Thanks for your assistance: i works!!! I already do get a bit more from
telnet and got a few mail sended. First i had to take out Norton Antivirus,
but thereafter it wojked! Really great.

I couldn't get the logon right (manually), so i could only send mails to
not-relayed addresses if i wasn't logged in. That is: if i used my internet
connection (ic) from Planet.nl, i could send everybody e-mails from
mail.planet.nl. With Zonnet.nl that was the same. But with an ic of planet i
couldn't send a relayed mail with zonnet.

But perhaps that's the issue. My Cgi does a  smtp logon:
________________________________________
 cUserID := b64Enc( AllTrim( self:cUserName2 ) )
 cPassW := b64Enc( AllTrim( self:cPassWord2 ) )

  cBuffer := "AUTH LOGIN " + cUserID
  cBuffer += CRLF
  self:SendRemote(cBuffer)
________________________________________

In my debug window i see
________________________________________
[1748] AUTHSMTP:SENDREMOTE(3): cData = AUTH LOGIN cmF0dGkwMTU=
[1748] AUTHSMTP:REPLY:ASSIGN(3): self:cReply = 501 Invalid Login
________________________________________

(this takes a few hours to type as every time i understand a bit more and i
retype parts)

Nevertheless: i now understand it a bit more. Obviously my smtp-logon (both
manually as by program) go wrong... Am i right and if so: how to correct it?

Regards, Hans.

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Hans Rattin » Sun, 17 Nov 2002 07:49:43


Thanks: that clearifies it a bit more, like the difference between
SendHeader() and SendHeaderInfo(). To me it seems these names are
misleading: the last one appears to be the actual header that get's the
mails sended, the first one only seems to be for informational purposes.
 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by malcolm.gra » Mon, 18 Nov 2002 17:14:07



Quote:> Thanks: that clearifies it a bit more, like the difference between
> SendHeader() and SendHeaderInfo(). To me it seems these names are
> misleading: the last one appears to be the actual header that get's the
> mails sended, the first one only seems to be for informational purposes.

If I was naming them I think I would call them
sendheader - sends subject etc
sendenvelope - RCPT TO: etc
but like most things once they have been chosen we are all stuck with them.
 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by malcolm.gra » Mon, 18 Nov 2002 17:19:32



Quote:> Hi Malcom,

> Thanks for your assistance: i works!!! I already do get a bit more from
> telnet and got a few mail sended. First i had to take out Norton
Antivirus,
> but thereafter it wojked! Really great.

yes - Norton is well known to break SMTP AUTH.
 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Hans Rattin » Mon, 18 Nov 2002 20:17:44


I've tried some more and it appears that the smtp logon doesn't work with
me: telnet allways responds with "501 invalid login", both manually as with
the program. Nevertheless the mails get sended when i do it from my own
machine. Could you perhaps give me the exact syntaxes that should apply?
 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Andriashyk Yur » Tue, 19 Nov 2002 16:10:31


There is a question, whether in general it is possible to send means VO
letters. HELO_EHLO.SMTP does not work! MAPI destroys memory! Sellexecute
does not attach fragments! Features take away...



Quote:> I've tried some more and it appears that the smtp logon doesn't work with
> me: telnet allways responds with "501 invalid login", both manually as
with
> the program. Nevertheless the mails get sended when i do it from my own
> machine. Could you perhaps give me the exact syntaxes that should apply?

 
 
 

Smtp:SendMail() only delivers e-mails to my own account...

Post by Gary Star » Tue, 19 Nov 2002 17:48:49


Yuri,

If there's a problem, it's in what you're doing.

This works fine for me.


> There is a question, whether in general it is possible to send means VO
> letters. HELO_EHLO.SMTP does not work! MAPI destroys memory! Sellexecute
> does not attach fragments! Features take away...



> > I've tried some more and it appears that the smtp logon doesn't work with
> > me: telnet allways responds with "501 invalid login", both manually as
> with
> > the program. Nevertheless the mails get sended when i do it from my own
> > machine. Could you perhaps give me the exact syntaxes that should apply?

--
g.
Gary Stark

http://RedbacksWeb.com
 
 
 

1. My relative's problems with secure.smtp.email.msn.com from a dialup MSN account

Hi,

I have a relative who has MSN and has had problems sending me email.
I went through a 2 hour troubleshooting process with him using MSN
instant messenger to figure out what was going on.  He was able to
send email to his own Hotmail account okay, but not to my account at
mindspring.com.  It turns out that it started happening after he
called MSN support with other email-related issues.  One of the things
they told him to do was change his SMTP server address from
smtp.email.msn.com to secure.smtp.email.msn.com (he is on a dialup).
After running all sorts of experiments, we finally ended up changing
the SMTP server name back to smtp.email.msn.com.  This fixed the
problem.  Could there be some DNS-related issue with
secure.smtp.email.msn.com that would allow it to send email to
hotmail.com okay, but not mindspring.com?  Will using
smtp.email.msn.com cause any unexpected problem now or in the future?

This failure to send mail to the mindspring.com domain wasn't just a
one-time glitch BTW.  It was repeatable.  Everything's been working
perfectly since after he switched the server name back.

Thanks,
Andy C

2. DNS multiple ip addresses - one name???

3. Can I get 2nd Email account for my MSN account?

4. CRISP

5. Smtp:SendMail() using a formated ReachEditText

6. Opening a Lotus 1-2-3 v5.0 Sheet with Excel v5.0

7. Kerberized Sendmail or other SMTP?

8. Size of a folder on WPS Desktop

9. Seeking for Sr BA to deliver new reports with Securities and accounting industries

10. Problems emailing to MSN email account

11. Limits on e-mail attachments to MSN e-mail accounts

12. 2 Email Accounts (MSN and ATT) Problem sending email to MSN.

13. A deliver worksheet that doesn't deliver!