473,746 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

local smtp quistion plz

18 New Member
how could i configure my local smtp to be able to send eamails via it??
and can i send emails from my yahoo mail or gmail via my local smtp?? that yahoo and gmail have a limitation per day sending via smtp so i want to use my local smtp to break thi limitation

the code i use for this is
Expand|Select|Wrap|Line Numbers
  1. System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
  2.             msg.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"] = "localhost";
  3.             msg.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = "25";
  4.             msg.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = "2";
  5.             //sendusing: cdoSendUsingPort, value 2, for sending the message using 
  6.             //the network.
  8.             //smtpauthenticate: Specifies the mechanism used when authenticating 
  9.             //to an SMTP 
  10.             //service over the network. Possible values are:
  11.             //- cdoAnonymous, value 0. Do not authenticate.
  12.             //- cdoBasic, value 1. Use basic clear-text authentication. 
  13.             //When using this option you have to provide the user name and password 
  14.             //through the sendusername and sendpassword fields.
  15.             //- cdoNTLM, value 2. The current process security context is used to 
  16.             // authenticate with the service.
  17.             msg.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = "1";
  18.             //Use 0 for anonymous
  19.             msg.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = "mail@yahoo.com";
  20.             msg.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "password";
  21.             msg.Fields["http://schemas.microsoft.com/cdo/configuration/smtpusessl"] = "true";
  23.             msg.From = "mail@yahoo.com";
  24.             msg.BodyFormat = System.Web.Mail.MailFormat.Html;
  25.             msg.To = "mail@yahoo.com";
  26.             msg.Subject = "subject";
  27.             msg.Body = "message body";
  28.             System.Web.Mail.SmtpMail.SmtpServer = "localhost:25";
  29.             System.Web.Mail.SmtpMail.Send(msg);
note that this code succeeded when using yahoo smtp but when using localhost it throw an exception

The transport failed to connect to the server.

could u help??
Mar 15 '09 #1
20 2365
3,525 Recognized Expert Specialist
Q: How many emails can I send via SMTP? Is there a limit?
A: Yes, your outbound email messages are limited to 500 per day, and each message can be sent to no more than 100 contacts at once.
In an effort to help protect all of our customers from spam, Yahoo! has become more aggressive in its requirements around SMTP limits. In addition to placing limits around the number of emails you can send from your desktop email software each day, we reject connections that don't conform to Internet best practices.
If you are hitting up against these limits, then I suspect you are trying to build a SPAM system and I doubt anyone here is going to help with that.
Mar 15 '09 #2
18 New Member
i am not going to build a spam but i am responsible for advertising in a company and i send messages to thier customers a bout thier products so i need to send the add to all the customers in one day not to send 500 add per day
i hope i can find help
Mar 19 '09 #3
3,525 Recognized Expert Specialist
yahoo mail or gmail via my local smtp
This doesn't sound like a corporate job sending mail to their customers. Maybe I'm wrong, but any company with a mailing list of 500 customers a day can just set up their own mail server and would not be going through Yahoo mail or G-mail.

So, if this is a legitimate work need that would be my recommended solution: To use the company's own mail server.
Mar 19 '09 #4
18 New Member
dear sir its not a great corporate but at all i think u are going to understand my question "local smtp" this is what i am asking for
Mar 19 '09 #5
7,872 Recognized Expert Expert
Did you turn on the local SMTP server?
It's a service called "Simple Mail Transfer Protocol (SMTP)" and is part of the iis suite I believe
Mar 19 '09 #6
18 New Member
i have configuered it but i dont know how to use it
what is the smtp address that i can use as i used "localhost" but it dont succeded
Mar 19 '09 #7
7,872 Recognized Expert Expert
You would connect to it through localhost, but there will be no "myname@localho st" emails

This is a .NET1.1 project is it (visualstudio20 03)? I've never seen the Fields[] property used like that, so I cannot speak to how that works. I was not aware you could get the old version of the smtp to authenticate either.
Mar 19 '09 #8
18 New Member
its working in vs 2005 and vs 2008
Mar 19 '09 #9
7,872 Recognized Expert Expert
Well System.Web.Mail is depricted after .NET1.1, you should be using System.Net.Mail instead.
Mar 19 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

by: jason | last post by:
What are the technical challenges in getting a local SMTP email server set up on a win3k system or alternatively on a win2k pro local work statation. We are on the verge of acquiring a new win3k system for local asp testing development purposes and to allow satellite branches to ftp-in and grab images. I need to utilize the bulk emailing facility to send up to 20,000 emails a day after looping through my customer list which resides in...
by: Ashish Sharma | last post by:
HI All, I urgently require a work around to get local SMTP Server Settings in IIS or smart host value if specified. We r using a Thiry Party Component which basically sends Secure Mails. Unlike System.Web.SMTPMail, it is not able to get local SMTP Server Settings and has to be given explicitly.. is there any solution to find the local SMTP Server Settings.. How can i send the mail without specifying any of the confuiguration
by: Kikoz | last post by:
Hi all. I'm using one PC/XP Pro as my development environment. Its IIS has one default web site, of course, which is the site I'm working on. When some feature is finished I deploy it to my "production" site which is hosted somewhere else. Very common situation, I guess. This app uses email to notify customers of some particular events. Works on production, but sometimes I need to change something in the way those notifications work....
by: zubair | last post by:
Hello All I have just comeacross a problem: I'm debugging a site on my local computer using Visual Studio.net. When I send mail it gives error "System.Runtime.InteropServices.COMException: The transport failed to connect to the server" Should I configure the SMTP server correctly or there is another problem. Please help me. I wud be great ful
by: Gancy | last post by:
Is there a way to programatically find a SMTP server available on the network? I am writing a C#.Net program, which should first find a SMTP server on LAN and use that SMTP server to send an email. Thanks Ganesh
by: | last post by:
I want to send email without Smtp Server. We have a Imail Server installed on our web server which requires Smtp server is not working on it. When i disable Smtp Server on the local machine Cdo Emails is not being sent ? how can i solve it ?
by: huntedsnark | last post by:
I am working on a webpage that is on a different server than the email server that the company wants me to use to send emails. Is it possible to change the PHP.ini file to use this non-local SMTP server, or is it not that simple?
by: lage | last post by:
Hi, I am working with a web site that uses CDONTS from a function in a Com+ component to send mail to clients after sign up etc, as well as sending clients mail to support from a web form. A virtual default SMTP server is running in !!S (6.0) We have moved the system to a new server (Windows 2003 Server as the previous installation) and the mail worked fine a few days. Now we cannot send any mail from the system. SMTP is not my...
by: btreddy | last post by:
Hii all, I've been searching in the internet just to know abt SMTP server. Can anybody tell me how to configure the SMTP server and how can i send the mails and how could i check whether they are deliverd or not ? Plz provide me any links you've or give me a detailed explanation. im using asp.net 2.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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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,...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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...
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();...
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...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.