How To Send Email From Server To Home Network Clients (via Outlook)

Apr 9, 2010

I'm a newbie in asp.net (and vb.net)..

I have an application which will sent an automatic email from my company mail server to all the client/employee in my company every week. how to make this happen... everytime i applied the codes that i'm searching in google always give me some errors cause it always discuss how to send email to outside the company...

How can i achieve this goal ? what codes should i use ?

Note : i'm using vb.net 2005 and microsoft office outlook

View 5 Replies


Similar Messages:

Web Forms :: Using System.Net.Mail To Send Email To Gmail Account From Outlook Web Server

Jul 15, 2010

I am trying to send an email from our web server to a gmail account via System.Net.Mail but am failing miserably receiving this error message:

Mailbox name not allowed. The server response was:

that domain isn't in my list of allowed rcpthosts (#5.7.1) Using this code I am able to send emails to other email addresses on our Outlook email server:

[Code]....

So I know I am capable of sending email to Gmail with port 587 and using the proper credentials of my own Gmail account. That is not the problem.


The problem is I want to be able to have the mail sent from my application from whatever the user puts in the FROM (Email address): text box to a Gmail account. When I use the above code, the address that the email is sent from is my own.

So the question is: Is there any way to configure this to be able to send from an Outlook email server to a Gmail account without having to use my Gmail account to actually do it (using my credientials). Therefore showing the email as sent from whatever the user puts in the txtEmail text box, and having it sent from the Outlook server?

I know my SMTP uses the port 25 for outgoing mail and I am pretty sure that the Gmail settings block port 25 for incoming mail, which makes sense, but what doesnt make sense is I can compose a message in Outlook and send it to a gmail account, but I cannot automate this through my programming, which makes me feel certain its my programming.

View 3 Replies

Can't Send Smtp Email From Network Using C# Error / Unable To Connect To The Remote Server

Apr 1, 2010

I have my code here, it works fine from my home, where my user is administrator, and I am connected to internet via a cable network.

But, problem is when I try this code from my work place, it does not work. Shows error:

"unable to connect to the remote server"

From a different machine in the same network:

"A socket operation was attempted to an unreachable network 209.xxx.xx.52:25"

I checked with our network admin, and he assured me that all the mail ports are open [25,110, and other ports for gmail].

Then, I logged in with administrative privilege, there was a little improvement, it did not show any error, but the actual email was never received.

note that, the code was tested from development environment, visual studio 2005 and 2008.

try
{
MailMessage mail_message = new MailMessage("xxxxx@y7mail.com", txtToEmail.Text, txtSubject.Text, txtBody.Text);
SmtpClient mail_client = new SmtpClient("SMTP.y7mail.com");
NetworkCredential Authentic = new NetworkCredential("xxxxx@y7mail.com", "xxxxx");
mail_client.UseDefaultCredentials = true;......

View 4 Replies

Web Forms :: How To Send Email To Multiple Clients Located In Different Domains

Sep 21, 2010

How can i send email to multiple clients located in different domains such hotmail,yahoo,and gmail

is it required to provide Smpt server name, if we have multipe domain id, what should we do?

I am using fowling code but getting exception failed.

MailMessage mailMsg = new MailMessage();
mailMsg .From = "from@fromServer.com";
mailMsg .To = "to@toServer.com";
mailMsg .Cc = "cc@ccServer.com"";
mailMsg .Bcc = "bcc@bccServer.com";
mailMsg .Subject = "SubjectOfTheMailString";
mailMsg .Body = "BodyOfTheMailString";
SmtpMail.Send(mailMsg );

View 2 Replies

Controls :: How To Send Email Using Microsoft Outlook

May 7, 2015

i want to send a Email through outlook using vb.net

View 1 Replies

Configuration :: Configuring IIS To Send Email Via Home Adsl Account?

Sep 24, 2010

Working from home on an XP Machine, trying to configure IIS to send emails from Asp.Net via my broadband provider (BT).

Relay 127.0.0.1 enabled, so now errors are:The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.3 Client was not authenticated

Pertinent settings that I can see are (in IIS Default SMTP Virtual Server properties):

Access, Authentication (presumably app to IIS): Basic + Integrated Windows

(However Basic includes correct BT server smtp.btconnect.com -> suggests this is authentication relevant IIS to BT, not app to IIS)

Access, Relay: 127.0.0.1 added

Delivery, Outbound Security: (presumably IIS to BT) Basic Authentication

UserName: my.btusername@btconnect.com (tried with and without @domain)

Password: ***** per my account at Bt

Integrated Windows Authentication disabled

TLS Encryption NOT selected

---

I cannot see any other obvious candidates for authentication.

I presume model is Asp.Net App -> IIS (step 1) and IIS -> BT (step 2)

I presume Access, Authentication specifies step 1, and Delivery, Outbound Security handles step 2 - though why then does IIS recognise my bt server in step 1?

View 4 Replies

Fails To Send Email Through Gmail SMTP, But From Outlook 2007 Succeeds?

Dec 12, 2010

a couple weeks ago, my ASP.NET website stopped sending user comments which I implemented by emailing those comments to my email account through Gmail SMTP server [URL]. I opened the project on my development machine and again it fails to send the email after a couple minutes with the following exception message:

Failure sending mail

Unable to read data from the transport connection: net_io_connectionclosed.

I'm using Gmail's SMTP with port 465, and MailClient.EnableSSL = True.

The weird thing is my Office Outlook 2007 is using the same settings and it doesn't have any problems sending mail using the same Gmail account.

View 3 Replies

C# - Add New Calendar Appointments To Clients Outlook From Webpage?

Mar 9, 2011

I have a website (ASP.net MVC2) where a database stores data/times of events. I want a client to be able to log in and sync these items to their Outlook. Is this at all possible? I've had a look around but haven't found anything useful, other than this isn't possible in javascript as that would open up all sorts of security holes snooping through users' registrys... If not, I may have to look into basic alternatives such as downloading xml documents with the event details.

View 1 Replies

Web Forms :: Add Network Printers To Clients When They Click A Button?

Aug 3, 2010

I am trying to find an easy way to add network printers to clients when they click a buttong. I am trying to do it with the shell command however it is working on the machine I am building the site on with visual web developer, hoewever it does not run when I publish the application. I am using asp.net VB

[Code]....

View 3 Replies

Send Files From A Server To A Storage Server On The Same Network?

Oct 18, 2010

i have a folder on the server which contains jpeg files,mp4 files and also xml files...........

i would like to transfer the folder to a centralised storage server ,i would like to pass the credentials from the web page itself,,,,,,,,

what do i use for it

the storage server is within the network and all it needs is credentials to copy the folder which i m ready to pass....but i dont know the code which has to be used......

whether to use system.io.move

or

httpwebrequest.

View 10 Replies

C# - How To Make Webiste Viewable In Private Home Network Using IIS 6.0

Feb 26, 2011

I want to know how I can make website available in my private home network? I know I am supposed to make my IP address static but I still do not know the complete steps to accomplish what I want to do. Is this even possible? If it is can someone please explain to me what I have to do?

View 3 Replies

Preview Of Different Browsers/email Clients?

Jan 21, 2010

I got a task from my boss to do a email previewer for different mails/browsers/clients. How should approach this task? How is such a thing done?EDIT:A tool to see how an email will render in different email clients

View 2 Replies

How To Send Email Without Smtp Server

May 11, 2010

I want to send email without declare username and password in smtp server. I am using asp.net c#, this is possible in asp below is the code , anybody tell me how can i use this code in asp.net.

<%
Dim ObjSendMail
Dim iConf
Dim Flds
Set ObjSendMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")....

View 5 Replies

Use SQL SERVER Trigger To Send Email In C#?

Jan 23, 2010

I am building service failure notification system which notifies customers and management whenever there is a delay in the service. How can I use SQL SERVER trigger to send an email to a group of people when I add an alert in the alert database table using c#.

View 3 Replies

Send Email Using Godaddy Server

Oct 28, 2010

I try to use smtp relay-hosting [URL] and [URL] but both are not work fine in my vb.net site..

View 3 Replies

Use A Queue To Send Email To An Smtp Server?

Dec 9, 2010

module thats available for asp.net that uses a queue to send email to an smtp server? the queue being the operative word here.. we need a proper fallback mechanism for storing any messages that can't be sent so that the send can be re-attempted later

View 1 Replies

Web Forms :: Email Doesn't Send On New Server

Jul 16, 2010

I have been using a C# asp.net email form for a while on an old server (administered by a friend who has moved away) and now I have my own server. The problem is the form appears to send but the message never turns up in the mail box. Because the form used to work, I suspect its my server settings. The code behind for the form is:

[Code]....

I have set the web site up as ASP.NET and the pages load ok etc. So I go to the form, fill it out and it is processed and I get the confirm message. What do I need to check at the server end? Sorry if its a dumb question I am quite new to the finer points of server management

View 6 Replies

How To Send Email From Local Host On Server

Jan 13, 2011

I am using gmail smtp server and email account to send email from my asp.net site. It works fine when I use it on some hosing server but it is strange it do not work on local machine. Plz guide me what should I do ? Do I need to install some smtp server (if yes plz mention the name as I am not aware of it) .

View 14 Replies

Send Email From A Win2008 Dedicated Server?

Oct 24, 2010

I know how to send email from asp.net using my pc and my provider smtp server. But doing the same thing from a Win2008 dedicated server is confusing for me. I have installed the smtp server and configure for my virtual web as explained here :

[URL]

But I'm confused by these two lines

serv.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
serv.Credentials = new NetworkCredential(ConfigurationManager.AppSettings["SmtpServerUserName"], ConfigurationManager.AppSettings["SmtpServerPassword"]);

1°) Why PickupDirectoryFromIis since in configuration localhost smtp server has been chosen and not pickup directory ?

2°) When setting up the smtp server no login / password has been asked so is the same as the computer login / password ?

View 2 Replies

Configuration :: Way To Configure The Server To Send An Email

Mar 28, 2011

is there a way to configure the server / something else to send me an email every time asp.net crashes (with the error - just like the "yellow" screen it shows)

View 3 Replies

SQL Server :: Send Automatic Email To Customers?

Sep 7, 2010

I need to write a stored procedure to schedule a job that will send automatic email to customers based on some condition as follows:

1. I have two tables. One table is table1 like the following:

Name Date1 Date2 Date3 Rahim, Khan 29'10 30'11 25'08 Karim,Abedin 12'10 28'11 26'09 Fahad, Alam 26'10 12'11 25'10 Another Table is table 2 like the following:

Name Email Rahim,Khan rahim@yahoo.com Karim,Abedin karim@yahoo.com Fahad, Alam falam@yahoo.com In table 1 the date format is in format where 30'11 mean work week is 30 and 11 means last two digits of the year.

2. Now , I need to write a stored procedure that will check :

a) What is current work week and current year?

b) It will then determine the difference between the current work week (now 37) and work week mentioned in date (Date1, Date2 and Date3) columns from table1 and if for current year(it's 2010) at least one difference in each row is>=8 then it should send an automatic email to the corresponding email address of Name column using the relation between Table1 and table2. For example: For first record in Table1 the three difference is: 37-29=8, 37-30=7 and 37-25=12. There are two differences >=8, but only first difference is for year 2010 and third one is not for current year. But, since at least one difference in this row satisfies condition (That means >=8 for year 2010)hence email message should be sent to the address rahim@yahoo.com using relation of table1 and table2.

I know how to set a schedule job in SQL mail but I need this stored procedure to run this job on daily basis.

View 8 Replies

Web Forms :: Send Email Using SMTP Server?

Nov 21, 2011

I want to send emails using SMTP server in ASP.Net. I amusing C#

View 1 Replies

IIS Configuration :: How To Send Email From Domain Server

May 11, 2013

I have read several articles to send emails in Asp.net C# major are by using Gmail, I want to send email from a email id from mydomain name.The code that I am using is:

The code works properly would like to know whether the code is correct as I have have tested it by sending mails to gmail and rediffmail, it works properly, would also like to know the reason for using client.Port = 25;

MailMessage Msg = new MailMessage();
Msg.From = new MailAddress("sales@mydomain.com", "Testing");
Msg.To.Add(TxtEmail.Text);
Msg.Subject = "Send Mail with HTML File";
Msg.Body = "Checking";

[Code] .....

View 1 Replies

Web Forms :: Send Gridview To Outlook In C#?

Apr 19, 2010

How to send the gridview contyrol content to microsoft outlook mail body.

View 6 Replies

Web Forms :: How To Send Email Through SMTP On Server 2008

Sep 1, 2010

I have the following form and trying to click a button and email through an SMTP server.

[Code]....

Code behind:

[Code]....

Web.config file:

[Code]....

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved