Sending e-mail using the SMTP class but it's a POP3 server.....

U

UJ

I'm way out of my league here but I'm having problems sending e-mails
programmatically. I have a web app that will allow users to have e-mail sent
to them (forgotten password/resetting password, ...) When I send it to the
same domain as our company, it works fine. When it's outside the company, I
get an error message saying '550 not local host <domain name>, not a
gateway.

So for instance - if I am trying to send an e-mail from our domain
(@test.com) and want to send to the domain (@stupiduser.com), I get the
message '550 not local host stupiduser.com, not a gateway. If I send from
(@test) and go to (@test) it works fine.

My e-mail server is a POP3 server - or at least that's what our provider has
given me - it's POP3.<ISP Company Name>.COM

The code to send the e-mail is:

SmtpMail.SmtpServer = pvsSmptServer;
SmtpMail.Send(pvsSendFrom, pvsSendTo, pvsSubject, pvsMailMessage );

where all of the pvs vars are passed in and look fine.

Any thoughts or suggestions?

TIA - Jeff.
 
S

ssamuel

Jeff,

Looks like your local SMTP host (the one the ISP gave you?) isn't set
to relay mail. This is likely not your fault. Try asking someone who
administers that server.

Stephan
 
U

UJ

Turns out this is exactly what was happening. I talked to the sys admin and
they are going to change it for me.

Thanks for the info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top