.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

emailing using c#

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :.NET Framework
 
i want to email a picture. but before that i tried to send test mail
i used following code.


                NetworkCredential nc = new NetworkCredential(txtEmailuser.Text, txtPassword.Text, "http://www.yahoomail.com");
                SmtpClient sc = new SmtpClient("mail.yahoo.com", 25);
                sc.UseDefaultCredentials = true;
                sc.Credentials = nc;
                MailMessage mm = new MailMessage();
                mm.From = new MailAddress(txtEmailuser.Text, "urprob");
                mm.To.Add(txtResEmailid.Text);
                mm.Subject = txtSub.Text;
                mm.Body = txtMail.Text;
                sc.Send(mm);


but it is throwing exception 
"service not


View Complete Post


More Related Resource Links

Emailing the content of div tag

  

Hi,


Im having a div tag containing grid and tables and labels.

I want to email the whole content of div tag along with the image.

But it is giving me error.

Cannot get inner content of Invoice because the contents are not literal.

Plz help


emailing

  
Hi,   i wanted to give an email option to the admin of a website where he can enter multiple email id's and a costamized text etc , and the sending message must be stored with the details of the timings and date and to whom in send .please tell me the procedure

Emailing Calendar Item to SharePoint List

  
I have followed the various instructions around the net (specifically the TechNet article) on configuring MOSS2007 and Exchange for mail enabling your lists. I have also read and applied the changes specified by the Microsoft KB regarding the two forgotten Active Directory entries. At this point I am able to send an email to a list and have the email post. Some of my users want to make use of the Email enabled Calendar List. They create a standard Calendar list and mail enable it. They give the list a unique name for Active Directory. They then goto Outlook and try "inviting an attendee" to an event and wait to see the event get posted on the SharePoint list. I have applied the KB edits to the new Active Directory user and I can watch the emails come into the dropbox and then disappear, but nothing ever happens. I have permissions setup correctly as well as far as giving "Authenticated Users" contribute access.... I don't see any errors specifically.... I do notice all my emails come in as .eml attachments... Any ideas of where to look?

Emailing Calendar Item to SharePoint List

  
I have followed the various instructions around the net (specifically the TechNet article) on configuring MOSS2007 and Exchange for mail enabling your lists. I have also read and applied the changes specified by the Microsoft KB regarding the two forgotten Active Directory entries. At this point I am able to send an email to a list and have the email post. Some of my users want to make use of the Email enabled Calendar List. They create a standard Calendar list and mail enable it. They give the list a unique name for Active Directory. They then goto Outlook and try "inviting an attendee" to an event and wait to see the event get posted on the SharePoint list. I have applied the KB edits to the new Active Directory user and I can watch the emails come into the dropbox and then disappear, but nothing ever happens. I have permissions setup correctly as well as far as giving "Authenticated Users" contribute access.... I don't see any errors specifically.... I do notice all my emails come in as .eml attachments... Any ideas of where to look?

emailing many groups from Workflow

  
Hi I'm having 2 problems 1) Using 'Send an Email' action in SharePoint Designer workflow: when I choose a SharePoint group for the To field, the Workflow Designer puts * around the group and says there is an error 2) I am trying to put more that one group in the To field and it fails as only the people in the first group get emails, the email never gets sent to the second and subsequent groups I should clarify that what I am trying to do is this: a user selects many groups from a lookup column. each group corresponds to a sharepoint group. I am creating a workflow string variable with the list of selected groups and emailing the variable. Again, only the first group selected ever receives the email even tho, when I write out the variable to a SharePoint column is looks correct: group1;group2;group3      

error in emailing moudule frm production server

  
in my asp.net application i have a emailing module& i have 2 web server 1) is the development server  2) production serverdevelopment server  has all the source files & the code where i can debug  2) production server has the published files the problem that i am getting is when i am sending the email thr; development server it works fine without any error but when do the same process thr' production server i get error , the code files , teh database etc all is same - i am not able to trace the error as i am not able to debug on th eproduction system , and the mail is not senthow & where do i check out & solve the issue 

Emailing an Outlook Group

  
Having trouble figuring out how to send an email to an internal Outlook group.  Anyone done this before? Thanks! Jonathan

Emailing Attachments to Document Libraries

  

One of my users wants to send emails that have attachments to a document library email address.  When they try to send anything over 3 MGs they get an undeliverable message that says


This message is too large to send. To be able to send it make the message smaller, for example, by removing attachments.

I talked to our Exchange guy and he said everything is fine on that side.  Can anyone tell me if there is a Central Admin setting that can fix this?  The file upload size is set to 1000 MB. 


Emailing Sharepoint 2007 Form loses formatting

  

Hi,

I have a form built in infopath 2007 containing standard controls including dropdown lists, text boxes, tables etc.

When we submit the form it sends an email or the form rather than posting to a Sharepoint library. If the form is submitted from the InfoPath client then the email is formatted correctly looking exactly the same the form itself.

However if the same form is submitted from the web browser through Sharepoint 2007 (which is what all users do), then the formatting is all wrong e.g. the tables are now about 5 times wider then they should be.

It the issue is related to submitting from the browser and not info path. We have opened the emails on both Outlook 2007 or 2010 without success but Outlook 2003 has no issue. I understand that 2007 has changed the way it renders these emails but it still doesn't explain why the place of submital has such an affect on the result.

Any ideas or suggestions would be grreatly appreciated.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend