473,834 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
programmaticall y. 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.co m), 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.SmtpSe rver = pvsSmptServer;
SmtpMail.Send(p vsSendFrom, 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 1464
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
programmaticall y. 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.co m), 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.SmtpSe rver = pvsSmptServer;
SmtpMail.Send(p vsSendFrom, 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.c omwrote in message
news:Oc******** ******@TK2MSFTN GP04.phx.gbl...
I'm way out of my league here but I'm having problems sending e-mails
programmaticall y. 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.co m), 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.SmtpSe rver = pvsSmptServer;
SmtpMail.Send(p vsSendFrom, 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.goog legroups.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
programmatical ly. 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.co m), 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.SmtpSe rver = pvsSmptServer;
SmtpMail.Send(p vsSendFrom, 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
1384
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. I've tried sending chr(29), which is the ascii equivalent, but that doesn't seem to work. Is there something I'm missing? Any pointers would be much appreciated. Thanks
8
2367
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 these security warnings and besides, I would prefer not to look outlook at all, so that people with Access RT could also use my code. Is there a way to send an email from DOS perhaps?
2
1680
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. Sending rtf doesn't work because outlook express cannot deal with rtf. I would prefer to send ASCII across.
4
3128
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
2594
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 internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself" Is there anyway to compress the messages before sending or some way to break up the datagrams? I am...
1
3349
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 therefore enabling the printing. Does anyone have any sample code on sending Raw ASCII to a printer share location, ie. \\computer1\printer1, \\computer1\printer2
2
2361
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 Drawing.Bitmap("1.bmp", False) Return a End Function
1
3639
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 still need help with reading and sending the file to the usb port. Can someone be so kind to point me in the right direction or example link that will be of help to me.
1
1676
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 to? Any other suggestions? Also, what port do Http responses target on client machine before being rendered in browser? Thanks,
2
1275
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
9797
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10793
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10547
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7757
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6954
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5626
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5793
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3081
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.