Re: SmtpException with email form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Given that your host is smtp.gmail.com, I would find it quite amazing that
Google would allow relaying through their mail server. In other words, you
probably are not getting through since relaying is not available on your
SMTP server.

Suggestion: Try use 127.0.0.1 as your SMTP host instead.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Helter Skelter" <HelterSkelter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CABCDE5F-AD10-4894-843C-DA7A87155D96@xxxxxxxxxxxxxxxx
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, "mensuur@xxxxxxxxx", "** 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!


.



Relevant Pages

  • Re: Why cant this XP machine send email to a particular Yahoo account?
    ... That doesn't stipulate that you are using one IP address (for the WAN-side of a NAT router) or have separate IP addresses for each of your hosts. ... You might have paid to get two IP addresses from your ISP and are using just a router so each host is seen as having a different IP address. ... If and only if a good status is received from the mail server by the e-mail client then the e-mail client moves that message into the Sent Items folder. ...
    (microsoft.public.windowsxp.general)
  • Re: 2 mail servers, 1 domain
    ... You would do this by assigning each mail server at each ... envelope addreses and header addresses. ... actually used by sendmail for delivery. ... delivery of the message to the correct host. ...
    (comp.mail.sendmail)
  • Re: host availability
    ... >>>google.com, my default gateway, comcast's mail server etc. ... a host was "up or down". ... If you don't get an answer to a ping request, ... happened to reset the interface right then, remote system got trojaned ...
    (comp.security.firewalls)
  • Re: NDR Outgoing mail to certain Domain (inexperienced exchange ad
    ... WARN -- Mail server host name in greeting WARNING: ... mailservers is claiming to be a host other than what it really is (the SMTP ... it's important just to have that PTR record. ...
    (microsoft.public.exchange.admin)
  • Re: sendmail relaying on FreeeBSD 5.4
    ... > John Rushford wrote: ... >> I have a mail server running FreeBSD 5.4 and assumed that relaying was ... I found that a misconfigured mail client not ... How can I configure the mail server to require ...
    (comp.unix.bsd.freebsd.misc)