Questions tagged [smtpclient]

on .NET Framework , allows applications to send e-mail by using the Simple Mail Transfer Protocol (SMTP)

1275 questions
-2
votes
1 answer

SMTP Error: Failure Sending Email

I've downloaded a sample application sending email silverlight application here. via gmail. But I cant make it work. Its error is "Failure sending mail." {"Failure sending mail."} [System.Net.Mail.SmtpException]: {"Failure sending mail."} …
xscape
  • 3,318
  • 9
  • 45
  • 86
-2
votes
1 answer

Where the smpt configuration is located in solaris

I am would like to know where can I find (in case it exists) the smtp configuration parameters under unix solaris.
Rubenex
  • 469
  • 2
  • 8
  • 23
-2
votes
3 answers

smtpclient send mail failure

The code works on a local machine, but one the target machine I get: "Unable to connect to the remote server" and "An attempt was made to access a socket in a way forbidden by its access permissions xxx.xxx.xxx.xxx:587" Could permission be…
Jiminion
  • 5,080
  • 1
  • 31
  • 54
-2
votes
1 answer

How to display the actual result from SmtpClient.SendAsync() in a asp.net MVC view?

SmtpClient.SendAsync() call will not return a result as SmtpClient.Send() does, but will proceed and cannot display a result in a view. So how do I hook a callback function here, get a send email result/error and display it in a view?? Thanks.
Alexander
  • 65
  • 1
  • 6
-3
votes
1 answer

I am going to send email but the error says the failure to send email what's wrong in my code

var userClient = new SmtpClient("smtp.gmail.com") { Port = 587, Credentials = new NetworkCredential("email_sender", "sender_password"), EnableSsl = true …
-3
votes
1 answer

Finding smtp for my account

I have a gmail id for my school's account. once I give that id, it will direct me to my school's website where i enter my username and password. Now I tried to create an application using Visual Studio 17 where I can send mail directly using an app.…
-3
votes
1 answer

How can I add an attachment to a MailMessage?

I've got this code that sends a simple email using SmtpClient, MailMessage, and MailAddress objects: private void EmailMessage(string msg) { string TO_EMAIL = "cshannon@proactusa.com"; var windowsIdentity =…
-3
votes
1 answer

Error Send Mail From Gmail

Plz help I don't know solve this problem, the error msg I uploaded in this image I need help ??? the error description here Code C#
Miidow
  • 11
  • 4
-3
votes
2 answers

Assigning string and Int with If statement

Ok I have been searching for a solution for this but am stumped. I'm making an email client in C#. I can get around in c# but sometimes get caught up with syntax. Heres my problem. I am trying to assign the smtpclient settings based on the user…
RynoZ
  • 1
  • 3
-3
votes
2 answers

How to avoid sending duplicate mail in c#

I have written a code which sends mail to the admin for moderation whenever a user adds a content from front end.....the problem is sometimes the admin gets two mails of same content. below is my code MailMessage mail = new…
vidyasagar85
  • 131
  • 1
  • 2
  • 11
-3
votes
3 answers

How to find smtp server name

I created this email address "info@mydomain.com" and I want users be able to send email for me through my website. Here is my code: MailMessage mailObject = new MailMessage("a@b.com(this is fake email)", "info@mydomain.com", "contact us", "Test…
Masoud Keshavarz
  • 2,166
  • 9
  • 36
  • 48
-4
votes
1 answer

Error in desktop mail client application in C# | Smtp error

I was building a desktop mail client using C# This application works fine in my friend's pc but not working in my pc. Its showing me a list of exception. Pls help me. System.Net.WebException: The remote name could not be resolved:…
-4
votes
2 answers

What is SMTP Server Address and how to get SMTP Server Address?

i am trying to send email from c# windows application and i need SMTP Server Address to send email but i don't know about SMTP Server Address, what is SMTP Server Address, how to get SMTP Server Address and how to use it. this is the…
VICKY Shastri
  • 133
  • 2
  • 3
  • 12
-5
votes
1 answer

C# cancel an email sending using smtpClient

I woulkd like to intercept the send event, and cancel the email before it is actually sent. I meand: every time a user clicks send button in a client (using smpt of course) i want to cancel the send operation and add some custom stuff to email's…
-5
votes
1 answer

Is email message sent from programmatically from C# will be found in gmail.com account?

I am using gmail to send email from C# program, my question is that email found under sent items if logged in into gmail.com via browser? if I am sent an email from c# program and that email fails(bounce back) then Is failover notification found if…
skiskd
  • 423
  • 2
  • 9
  • 20
1 2 3
84
85