stergiosnik
Technical User
Hello.
I am trying to send email using Microsoft Access 2007 with a special code utility from AXOSOFT.
I get this error message: "Error initiating communication with Smtp server. (501)"
I tested the mail server using Outlook Express and it works fine.
Any ideas what might be the problem that causes this error message?
Next follows a sample of part of the code used:
Thank you in advance.
Stergios.
private static void sendEmail(MailMessage msg, string email)
{
Smtp smtp = new Smtp();
msg.EmailFrom = "myname@myname.gr";
msg.AddEmailTo(email); // pou 8a fugei to email?
msg.EmailMessageType = MessageType.HTML;
msg.EmailSubject = "Personal Schedule for FALL'13";
smtp.SmtpServer = "mail.myname.gr";
smtp.SmtpUser = "myname";
smtp.SmtpPassword = "0000000";
if (!regno.Contains("EX")) { smtp.SendEmail(msg); Thread.Sleep(1000); Console.WriteLine("Sended Number : " + sendCount + " with email : " + email + " and reg:" + regno); }
sendCount++;
}
I am trying to send email using Microsoft Access 2007 with a special code utility from AXOSOFT.
I get this error message: "Error initiating communication with Smtp server. (501)"
I tested the mail server using Outlook Express and it works fine.
Any ideas what might be the problem that causes this error message?
Next follows a sample of part of the code used:
Thank you in advance.
Stergios.
private static void sendEmail(MailMessage msg, string email)
{
Smtp smtp = new Smtp();
msg.EmailFrom = "myname@myname.gr";
msg.AddEmailTo(email); // pou 8a fugei to email?
msg.EmailMessageType = MessageType.HTML;
msg.EmailSubject = "Personal Schedule for FALL'13";
smtp.SmtpServer = "mail.myname.gr";
smtp.SmtpUser = "myname";
smtp.SmtpPassword = "0000000";
if (!regno.Contains("EX")) { smtp.SendEmail(msg); Thread.Sleep(1000); Console.WriteLine("Sended Number : " + sendCount + " with email : " + email + " and reg:" + regno); }
sendCount++;
}