Re: send email from webform
Have you referenced the System.Web.Mail namespace?
DJ
Re: send email from webform
just done that there now buddy, searchin the web,
now the only error it seems is that the name email is not declared
SmtpMail.Send(EMail) - also not declared
where should i declare this,
thanks
Re: send email from webform
There is no Email object try changing it to objEmail which is the MailMessage object.
DJ
Re: send email from webform
dj that took away all my errors and now the form works i think,
i say i think because the message appears "message sent thankyou" but no message appears in my hotmail box.
the reason i think for this is that i am on a network coming from a router.(just started today)
my forms are unable to be viewed over the internet from other machines
this change has just happened today but i can test it when i get home
this ip situation is getting corrected tommorow
i tested a message earlier using my pickup folder and although the notepad file dissappeared nothing appeared in my hotmail.
i hope thats why they arent reaching me.
Re: send email from webform
If an exception isn't thrown then the message should have been sent.
Where is this script being executed? If it's on your local machine is an SMTP server installed? It might be worth changing localhost to the SMTP server you use for your email client.
DJ
Re: send email from webform
yeah no email is being sent,
no errors are thrown
i checked at home machine
im using smpt on iis i think