I am not able to send email using SmtpMail.Send. I imagine that it is a
configuration issue. I see that the emails that I attempt to send are in the
Mailroot/Queue folder but they never actually get sent. I have an anti-virus
program that I disabled but it still doesn't work.
I also know that we have a spam filtering program called AppRiver SpamLab.
Could it be this?
Any suggestions? Thanks.RH,
Some parts of your message bring me in doubt that you are using Smtp mail.
Can you show a little piece of code.
Cor
Thanks for any assistance. Here is part of the code:
Dim loMail As New MailMessage()
loMail.From = "FromEmail@.yahoo.com"
loMail.To = "ToEmail@.yahoo.com"
loMail.Subject = "Test Email Subject"
loMail.Body = "Test Email Body"
loMail.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(loMail)
"Cor Ligthert" <notmyfirstname@.planet.nl> wrote in message
news:upHcDEM$EHA.2540@.TK2MSFTNGP09.phx.gbl...
> RH,
> Some parts of your message bring me in doubt that you are using Smtp mail.
> Can you show a little piece of code.
> Cor
>
Rh,
That "localhost" is has to be an mailserver by instance IIS mailserver.
In this situation it will work only on your test environment when you have a
mailserver installed on that.
It has to be an dns name or an ip adres from a real smtp mailserver.
Cor
That was it. Thanks!
"Cor Ligthert" <notmyfirstname@.planet.nl> wrote in message
news:eHHXRQM$EHA.3700@.tk2msftngp13.phx.gbl...
> Rh,
> That "localhost" is has to be an mailserver by instance IIS mailserver.
> In this situation it will work only on your test environment when you have
> a mailserver installed on that.
> It has to be an dns name or an ip adres from a real smtp mailserver.
> Cor
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment