Connecting Tech Pros Worldwide Forums | Help | Site Map

send mail not working

nicholas
Guest
 
Posts: n/a
#1: Nov 19 '05
Why is this not working?
I get no error, but no mail is sent.
Thanks !

######## code: ########


Dim objMM as New MailMessage()

objMM.To = customeremail1.text 'I even replaced this with a simple
email: still not working
objMM.From = "mail@mydomain.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "the subjet"
objMM.Body = "the body text"

'Specify to use the default Smtp Server
SmtpMail.SmtpServer = ""

SmtpMail.Send(objMM)



nicholas
Guest
 
Posts: n/a
#2: Nov 19 '05

re: send mail not working


found it!

had my response.redirect before the send mail...

thx

"nicholas" <murmurait1@hotmail.com> wrote in message
news:uk3ErtnRFHA.688@TK2MSFTNGP10.phx.gbl...[color=blue]
> Why is this not working?
> I get no error, but no mail is sent.
> Thanks !
>
> ######## code: ########
>
>
> Dim objMM as New MailMessage()
>
> objMM.To = customeremail1.text 'I even replaced this with a simple
> email: still not working
> objMM.From = "mail@mydomain.com"
> objMM.BodyFormat = MailFormat.Text
> objMM.Priority = MailPriority.Normal
> objMM.Subject = "the subjet"
> objMM.Body = "the body text"
>
> 'Specify to use the default Smtp Server
> SmtpMail.SmtpServer = ""
>
> SmtpMail.Send(objMM)
>
>[/color]


Closed Thread