Questions tagged [smtpclient]

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

1275 questions
-1
votes
1 answer

C# Send HTML email with Smtp

I want to send a html email with smtp account My Smtp Information is like that : SMTP Hostname Default SMTP Login password port 587 And How can I modified this code to use It ? public static RestResponse SendSimpleMessage(string result, string…
I.R
  • 51
  • 1
  • 1
  • 5
-1
votes
1 answer

smtp.gmail.com, port: 587 fails

I'm trying to send mail using java in my web project.E-mail sending is perfectly working in my pc, but when I run it on my office computer,I received following error. In my applicationcontext.xml
chk.buddi
  • 554
  • 1
  • 8
  • 29
-1
votes
1 answer

Error sending mail with SmtpClient

I've been struggeling a lot with this now. I try to send mail with my mvc application using my google apps account. But I keep getting errors. It doesn't matter which settings I use. I tried using both port 465 and 587 with ssl and authentication…
jorx
  • 481
  • 5
  • 7
-1
votes
1 answer

Send email using smtpClient and smtpserver other than smtp.gmail.com

I searched and came across many codes demonstrating mail sending using gmail's smtp with c# Here is my smtpclient configured to send email. SmtpClient smtp = new SmtpClient { Host = MailSettings.SMTP, // smtp server address here... Port =…
MARKAND Bhatt
  • 2,428
  • 10
  • 47
  • 80
-1
votes
1 answer

'The parameter 'addresses' cannot be an empty string' with 2 messages

I'm trying to send 2 emails from the same codebehind, but it gives me this error: The parameter 'addresses' cannot be an empty string. If I delete 1 of this message, it sends it without any problem... why? This is my code: MailMessage…
ProtoTyPus
  • 1,272
  • 3
  • 19
  • 40
-1
votes
1 answer

Get SmtpClient errors and pass them on

So the question is: How do I get SmtpClient's errors in such a way that I can pass them on to containing object? I can get Event properties from SendCompletedEventHandler and display them in console application with single static method but I don't…
ArtK
  • 1,157
  • 5
  • 17
  • 31
-1
votes
1 answer

string handling (non escaping slashes in SMTP email)

I need to send an email containing a string like this: CSAclsEN\t001\t\\\\sgprt\\Projects2\t001\tCSAclsEN-2010-1140609\t10:03\t09JUN14\t2010\tNorth London branch\tGG02\t001\t****09\tCustomer 340509\t\r01\t******35 \tVariable rate Cash…
Our Man in Bananas
  • 5,809
  • 21
  • 91
  • 148
-1
votes
2 answers

sand smtp mail php class SMTPClient

I SMTPClient class mail utf-8 post, but I did not do anything! Please Help me get thank you class SMTPClient { function SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body) { $this->SmtpServer =…
-1
votes
2 answers

SMTP mail errors

I am developing a C# application to send mail using the SMTP server of our company mail. The following is the code. MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("10.203.195.48"); mail.From = new…
-1
votes
1 answer

Send email via asp.net throw exception

I wrote this code in asp.net for sending email: MailMessage mailObject = new MailMessage("a@b.com(I use fake email, exactly this email)", "info@mydomain.com", "contact us", "Test message"); SmtpClient smtpC = new SmtpClient("my smtp server…
Masoud Keshavarz
  • 2,166
  • 9
  • 36
  • 48
-2
votes
2 answers

How to find out what SMTP port you are using?

How do i find out what SMTP port the corporation i work for has set up for it's email server? I've tried searching for it via outlook but it doesn't give me the option. I'm looking for an answer that i'll be able to do via cmd. Posting this…
WorkerBee
  • 31
  • 2
  • 10
-2
votes
1 answer

Use SMTP / Email Client behind proxy in GO

I am using "net/mail" and "net/smtp" to create an email client in Go, but it fails when it's behind the proxy. I had the same issue for http client but it got resolved using &http.Transport{Proxy: http.ProxyFromEnvironment} couldn't find a similar…
Chinmay Samant
  • 258
  • 1
  • 3
  • 13
-2
votes
1 answer

Email sending application

Can i send email without giving password on the NetworkCredentials? here is my code. public partial class Form1 : Form { public Form1() { InitializeComponent(); } MailMessage Myemail = new MailMessage(); private void…
-2
votes
1 answer

send email through proxy .net

i need to send an email from the company SMTP server but i need to go through proxy (because i am unable to connect to the internet unless i go through a proxy,the email server can send to the outside world, but i am trying to send from a the…
User7291
  • 1,095
  • 3
  • 29
  • 71
-2
votes
2 answers

I need to loop through the email addresses in a table within a SQL Server database and all an Email

I was wondering if someone could help me. I've got a simple Suppliers table that has email addresses for my suppliers. I need to loop through the email addresses 'SuppEmail' in the Suppliers table in the SQL Server database SpecCars and send them…
Chuck
  • 11
  • 4
1 2 3
84
85