473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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

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.

Oct 24 '06 #1
3 1445
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
UJ wrote:
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.
Oct 24 '06 #2
Check my
2/8/2006 entry
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)
http://sholliday.spaces.live.com/blog/

Push comes to shove, you can get your own gmail account and piggyback on
their smtp server.


"UJ" <fr**@nowhere.comwrote in message
news:Oc**************@TK2MSFTNGP04.phx.gbl...
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.



Oct 24 '06 #3
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.

"ssamuel" <ss*****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
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
UJ wrote:
>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.

Oct 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Abel | last post by:
I have written a script that makes a telnet connection, runs various commands, and returns the output. That was the easy bit :) However, to close the session, I need to send ^] followed by quit. ...
8
by: WindAndWaves | last post by:
Hi Gurus I am trying to send a newsletter from Access. Can anyone tell me what is the simplest way to send an email from Access? I would prefer not to use outlook, because this gives me all...
2
by: Patrick de Ridder | last post by:
I can send (email_address,subject,text) to outlook express. What I can't do is retain the line breaks. Could anyone please tell me how to do that? Sending "\r\n" doesn't force line breaks. ...
4
by: Winston Nimchan | last post by:
Hi: I'm currently developing a socket application and would like to precede the data being sent with a 4 byte message length header (bin4). Can anyone help Regards Winston
1
by: Brian Mitchell | last post by:
I have an interesting problem when I try to send bulk data over a UDP connection. When my message length is over 1,400 bytes I get the error "A message sent on a datagram socket was larger than the...
1
by: Paul Aspinall | last post by:
Hi I'm writing a web based system, which needs to direct prints to a Zebra barcode printer. I plan to use the ZPL (Zebra's own) programming language for sending Raw ASCII to the printer, and...
2
by: =?Utf-8?B?UHJ6ZW1v?= | last post by:
Hi, I would like to have a web service method sending a bitmap image. But code like do not work: <WebMethod()_ Public Function GetBitmap() As Drawing.Bitmap Dim a As New...
1
by: pkay044 | last post by:
Currently i am putting up an application software that will be able to read and send any kind of file through a usb, but i am stuck as regards to reading and sending the file, i can open the file but...
1
by: Charlie | last post by:
Hi: I need a way to test my TcpListner, but not sure what applications are sending data to tcp ports. How about Email or Instant Messenger? If they are tcp, what ports are they sending data...
2
by: =?Utf-8?B?QXJuZSBCZXJ1bGRzZW4=?= | last post by:
In my vb.net 2005 app ...I'm sending email via Outlook 2003. How do I eliminate that annoying outlook box when sending the email. Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.