ASPemail usage

Results 1 to 2 of 2

Thread: ASPemail usage

  1. #1
    Srilatha Guest

    Default ASPemail usage

    can somone tell me what&#039s wrong with the code below -<BR>&#060;%<BR>Sub SendMail()<BR>Set Mail = Server.CreateObject("Persits.MailSender")<BR>Mail. Host = ""<BR>Mail.Port = "25"<BR>Mail.From = ""<BR>Mail.AddAddress = Session("email")<BR>Mail.FromName = "Srilatha"<BR>Mail.Subject = "Test asp mail"<BR>Mail.Body = "Registration completed successfully"<BR>Mail.Send<BR>Set Mail = Nothing<BR>End Sub<BR>%&#062;<BR><BR>Call this subroutine from the main.asp as SendMail<BR><BR>Error encountered is -<BR><BR>Microsoft VBScript runtime error &#039 800a01b6&#039 <BR><BR>Object doesn&#039t support this property or method: &#039Mail.AddAddress&#039 <BR><BR>/know_center/SendMail.asp, line 6 <BR><BR>Pls. help,<BR>Thanks,<BR>Srilatha

  2. #2
    Sampath Guest

    Default RE: ASPemail usage

    Hi,<BR>As it is failing at Session("Email") first check whether your are getting any value in session("email").also try to write like this in that line Mail.AddAddress Session("email")<BR>that remove = and then test.<BR><BR>Hope it works.If you have any problem let me know.<BR><BR>U can reach me at<BR><BR>Sampath.<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts