Click to See Complete Forum and Search --> : [RESOLVED] Help with system.net.mail.


Pale
July 24th, 2008, 11:08 PM
My current application uses gmail to send information specified by the user to my email address.

I use this code to do this:
System.Net.Mail.MailMessage MyMessage = new System.Net.Mail.MailMessage("Myemailaddress", "SendingEmailAdress", "subject", "body");
MyMessage.IsBodyHtml = false;
System.Net.NetworkCredential mailAuthentication = new
System.Net.NetworkCredential("emailsendinglogin", "emailsendingloginpassword"); // Email used to send email
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.gmail.com", 25);
mailClient.EnableSsl = true;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = mailAuthentication;
mailClient.Send(MyMessage);

The problem is Gmail keeps thinking that i am "spamming" but i am only sending emails to my email address, and both email address belong to me.
I am just using one to send it and one to receive. Gmail keeps deleting the account i use to send it.

Its perfectly legal i assure you, i have a friend who was doing it and it was working fine for him(I assume he was using some other way of sending it through Gmail). I would ask him how to do it, but i have no way of contacting him("Hes in Iraq").

-Can someone show me a different way of doing this that may work?

-Show me where to rent a good Smtp server that i could use for this that would work just as well if gmail if there is no fix to this?

Thanks, :)

Pale.

MMH
July 25th, 2008, 06:07 AM
There is one way, you can configure your own SMTP server and send the mails across.

messycan
July 25th, 2008, 10:21 AM
My current application uses gmail to send information specified by the user to my email address.

I use this code to do this:
System.Net.Mail.MailMessage MyMessage = new System.Net.Mail.MailMessage("Myemailaddress", "SendingEmailAdress", "subject", "body");
MyMessage.IsBodyHtml = false;
System.Net.NetworkCredential mailAuthentication = new
System.Net.NetworkCredential("emailsendinglogin", "emailsendingloginpassword"); // Email used to send email
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.gmail.com", 25);
mailClient.EnableSsl = true;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = mailAuthentication;
mailClient.Send(MyMessage);

The problem is Gmail keeps thinking that i am "spamming" but i am only sending emails to my email address, and both email address belong to me.
I am just using one to send it and one to receive. Gmail keeps deleting the account i use to send it.

Its perfectly legal i assure you, i have a friend who was doing it and it was working fine for him(I assume he was using some other way of sending it through Gmail). I would ask him how to do it, but i have no way of contacting him("Hes in Iraq").

-Can someone show me a different way of doing this that may work?

-Show me where to rent a good Smtp server that i could use for this that would work just as well if gmail if there is no fix to this?

Thanks, :)

Pale.

At what rate are you sending emails? I have not encountered this problem myself...

Pale
July 25th, 2008, 01:22 PM
about 2 an hour all day long, all from different ips.

messycan
July 25th, 2008, 03:37 PM
hmm thats weird. probably because of different IP addresses, because if that was the case, anyone using outlook would get their accounts canceled.