JunglesMcBeef
Programmer
- Sep 18, 2003
- 266
Hi,
I'm trying to send an email through SMTP. I had it all working but for some reason it has stopped working after making minor changes I thought wouldn't change a thing. Anyway here's my current code:
Can you see anything wrong with this? It doesn't return any error messages, it continues processing, but the email disappears in the process. I'll keep slugging away in the meantime. Thanks
I'm trying to send an email through SMTP. I had it all working but for some reason it has stopped working after making minor changes I thought wouldn't change a thing. Anyway here's my current code:
Code:
strMsg = "PO Number: " & oReceival.PONumber & _
vbCrLf & "Item Code: " & oReceival.ItemCode
With oMail
.To = "tgale@provimi.com.au"
.From = "idministrator@hotmail.com"
.Subject = "Receival #" & oReceival.ReceivalNo
.Body = strMsg
.BodyFormat = Mail.MailFormat.Text
End With
System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1"
System.Web.Mail.SmtpMail.Send(oMail)
Can you see anything wrong with this? It doesn't return any error messages, it continues processing, but the email disappears in the process. I'll keep slugging away in the meantime. Thanks