G
Guest
hi everyone,
i'm sorry for bugging you with this email form but i need it done.
i have some code that is executes at the press of a button:
System.Net.Mail.SmtpClient EmailMessage = new System.Net.Mail.SmtpClient();
EmailMessage.Host = "smtp.gmail.com";
EmailMessage.Send(FromAddress.Text, "(e-mail address removed)", "** BRUNEL
WEBSITE CONTACT E-MAIL **", "Name: " + FullName.Text + "\n\nE-mail Address: "
+ FromAddress.Text + "\n\nMessage:\n\n" + EMailMessage.Text);
Sorry for the bad presentation.
EmailMessage is the System.Net.Mail.SmtpClient
EMailMessage is the textbox with the message text in it
FullName is a textbox in which one enters ones full name
FromAddress is the email address that is sending it to me
when i push the button, i get an SmtpException. i dont know what it is/does
and i dont know how to handle it. can anyone help me with this exception?
thanks in advance
--
Look Out!
Helter Skelter
Yellow Submarine
Pepperland
PS. Get Back!
i'm sorry for bugging you with this email form but i need it done.
i have some code that is executes at the press of a button:
System.Net.Mail.SmtpClient EmailMessage = new System.Net.Mail.SmtpClient();
EmailMessage.Host = "smtp.gmail.com";
EmailMessage.Send(FromAddress.Text, "(e-mail address removed)", "** BRUNEL
WEBSITE CONTACT E-MAIL **", "Name: " + FullName.Text + "\n\nE-mail Address: "
+ FromAddress.Text + "\n\nMessage:\n\n" + EMailMessage.Text);
Sorry for the bad presentation.
EmailMessage is the System.Net.Mail.SmtpClient
EMailMessage is the textbox with the message text in it
FullName is a textbox in which one enters ones full name
FromAddress is the email address that is sending it to me
when i push the button, i get an SmtpException. i dont know what it is/does
and i dont know how to handle it. can anyone help me with this exception?
thanks in advance
--
Look Out!
Helter Skelter
Yellow Submarine
Pepperland
PS. Get Back!