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, "me*****@gmail.com", "** 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! 4 1293
What's the actual exception? What's the message?
If you don't know, you could simpy wrap the code in a try, and spit out the
exception in a catch for debugging.
Karl
-- http://www.openmymind.net/
"Helter Skelter" <He***********@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com... 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, "me*****@gmail.com", "** 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!
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" <He***********@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com... 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, "me*****@gmail.com", "** 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 just figured that was a dummy host for our benefit :)
-- http://www.openmymind.net/ http://www.fuelindustries.com/
"Christopher Reed" <ca****@nospam.nospam> wrote in message
news:Oj**************@TK2MSFTNGP10.phx.gbl... 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" <He***********@discussions.microsoft.com> wrote in message news:CA**********************************@microsof t.com... 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, "me*****@gmail.com", "** 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!
Check my blog: http://spaces.msn.com/sholliday/
the
2/8/2006
While my blog is more info than you're looking for, imbedded in the examples
are
1.1 code using smtp.gmail.com
and
2.0 code using smtp.gmail.com
Believe or not, my tests show that 1.1 and 2.0 need different port numbers.
My smtp configuration handler is ..... (if I can be so bold) ... very clean
and very nice.
...
Sloan
"Helter Skelter" <He***********@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com... 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, "me*****@gmail.com", "**
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: dmiller23462 |
last post by:
So here's my problem.....I need to set up different email
distributions based on which option in the following Select form has
been chosen....For instance if "Putaway" is chosen it needs to email...
|
by: Mike |
last post by:
Is there a way to determine what a user's default email client is? I
read a post from 3 years ago that said no. I guess I'm hoping
something has come along since then.
|
by: Hugh Van |
last post by:
Hi all,
I'm trying to use .Net.Mail to send email in my program but somehow it
always throws me error. I have checked everything in the configuration:
username, password, smtpserver, smtp...
|
by: Ken D. |
last post by:
I have an asp page that collects data on referrals. The user inputs the
information and selects the rep to receive the referral. My data is being
saved to a backend database (SQL) and the user is...
|
by: libsfan01 |
last post by:
Hi all!
Can anyone show me how to check and email field on a form for the
existence of these two characters.
Kind regards
Marc
|
by: kennykenn |
last post by:
Hi,
Ive producd code to send an email after capturing info off a form,it works fine locally but when i put it live it doesnt work! the code is stopin at 'msg.send' any ideas,
here the code!
...
|
by: rameshcse2005 |
last post by:
i caught by this error while sending mail using System.net.mail class
System.Net.Mail.SmtpException: Error in processing. The server response was:...
|
by: JoeP |
last post by:
Hi All,
Is that possible to convert an Exception object to SMTPException object. I tried CType() and it did not work!
Thanks,
|
by: JoeP |
last post by:
Hi All,
Is that possible to convert an Exception object to SMTPException object. I
tried CType() and it did not work!
Thanks,
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |