if it is possible to send email to distribution list of oulook contacts within asp.net using the System.Net.Mail namespace?I can send email to multiple addresses by seprating them with ";" but i like to send email to certain group in comtact list.
Actually i am developing a web application for leave,,if the employee wants to take a leave,the employee working under the senior people,if the employee 001 wants to take a leave,if the employee 001 logins in the web application,if he is working in sales dept,automatically this mail is forwarded to sales manager..like wise for all the employee..if the employee works in accounts dept,whenever the employee logins in the web application,to email address automatically change to the accounts manager..i dont no how to do this
I am building an email feature in my website (jobs site). By using this functionality, recruiters will be able to send emails to candidates. I want an option so that the user can also set 'From Address' and the email should be ANTI-SPAM compliant.
In addition to the process of regex syntax validation of Email Addresses entered by users, I'm trying to check if the entered email address is a real one and does exist?The best I could achieve is to "Ping" the host the email address is associated with. But there are some other terms in the industry like Handshaking with Email Server, etc.not necessarily with 100% confirmation accurary!
How me can validate a email textbox to take only valid email address if error occur it show the error message in this textbox or as a tooltip. because in the form there is no space to show error message.
For a certain project I need to be able to send the contents of a webpage to people who enter their e-mail address somewhere. For this I've scoured the internet and came upon a couple of possible sollutions. The first would be to use a scraper which would just look up the webpage and then mail the html contents to someone. The problem with this is that internet html (and more importantly css) and mail html might be completely different things when you look at outlook. This also takes the entire masterpage with it, while I pretty much just want the inner content.
Second sollution was completely rebuilding the pages in my mail function, based on a few given parameters. Seeing as there's many different types of pages that need to be sent, this would take ages to do...
Last sollution I came upon was manually calling rendercontrol. This actually seemed like a viable way of doing this, but of course, things go wrong. The structure of the website is as follows: Masterpage includes default.aspx, default.aspx has a placeholder which gets filled with a control I manually load (loadcontrol(path)) based on what page I need. This control is the one I need. My way of trying to render this control to send through mail is the following: first, I create a page, then I'll load the user control and finally I use UC.RenderControl(writer)
This does give me the basic html lay-out, but it seems that the Page_Load isn't being called, causing none of my variables to actually be filled in. Is there any way I can cause the control to be rendered just as if it were rendered inside a page's lifecycle?
i am trying to send emails to internal as well external email id(like gmail,yahoo,rediff etc.) .but the problem is that i can send the email to internal email id and recieve it but when i try to send the mail to external email id iam not able to receive the email. the process runs fine cause no errors are occurring.
SmtpClient emailClient; emailClient = new SmtpClient("184.108.40.206", 252); MailMessage message = new MailMessage("firstname.lastname@example.org", email@example.com", "Report", "Dear All,"); message.IsBodyHtml = true; message.Body ="Dear All,"+"<br/>"+ "Please find the attached file."; System.Net.Mime.ContentType mimeType = new System.Net.Mime.ContentType(); message.Attachments.Add(new System.Net.Mail.Attachment("Report.xls", mimeType)); emailClient.Credentials = new System.Net.NetworkCredential("a.b", "pass123"); emailClient.UseDefaultCredentials = false; emailClient.Send(message); emailClient = null; message.Dispose();