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.
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.