In ASP.NET its easy...
This is what I have in my contact page at my site, below. In php though, I wouldnt have a clue!
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSend.Click Dim Msg As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage() Dim MailObj As New System.Net.Mail.SmtpClient("smtp.mysite.co.uk") Msg.From = New System.Net.Mail.MailAddress("michael@mysite") Msg.To.Add(New System.Net.Mail.MailAddress("michael@mysite")) Msg.IsBodyHtml = "False" Msg.Body = tbxName.Text & " [" & tbxEmail.Text & "]" & Chr(13) & Chr(10) & tbxMessage.Text Msg.Subject = "Website Message" MailObj.Send(Msg) End Sub
This is what I have in my contact page at my site, below. In php though, I wouldnt have a clue!