Simply.com is available in english

Siųsti el. laišką su JMail komponentu

Kaip siųsti e‑mail su JMail per websmtp.simply.com klasikinėje ASP

Galite naudoti JMail komponentą siųsti laiškus per websmtp.simply.com.

Čia yra pavyzdys, kaip tai padaryti.

<%
set msg = Server.CreateOBject("JMail.Message")
msg.Logging = true
msg.silent = true
msg.Charset = "UTF-8"
msg.From = "admin@xxxxx.com"
msg.FromName = "admin@xxxx.com"
msg.AddRecipient "test@ue-example.com"
msg.Subject = "Your subject"
msg.Body = "Your message"
msg.MailServerUserName = "admin@xxxx.com"
msg.MailServerPassword = "xxxxx"
 
msg.Send("websmtp.simply.com:587")

Response.write "<pre>" & msg.log & "</pre>"

%>

Straipsnis iš palaikymo kategorijos: ASP & ASP.NET