i am trying to send a mail.

Results 1 to 2 of 2

Thread: i am trying to send a mail.

  1. #1
    Durairaj A K Guest

    Default i am trying to send a mail.

    Hi all ,<BR><BR>i am trying to send a mail.<BR>my program is given below.i have configured SMTP in my server.<BR>but it is not working.<BR>if u can please help me.<BR>=========================================== ===========<BR>my program is <BR>============================================== ========<BR>Set objMail = Server.CreateObject("CDONTS.NewMail")<BR>objMail.F rom = "durai.raj@aexp.com"<BR>objMail.To = "durai.raj@aexp.com"<BR>objMail.bcc = "akdurairaj@usa.net,akdurairaj@hotmail.com,akdurai raj@yahoo.com,akdurairaj@mailcity.com"<BR>objMail. Subject="Test Email By durai"<BR>objMail.Body = "Test Email By durai"<BR>objMail.Send<BR>Set objMail = nothing<BR>======================================= ==================<BR><BR>Thank u in advance.<BR><BR>Durairaj

  2. #2
    Aishu Guest

    Default RE: i am trying to send a mail.

    When i did that it asked me to specify the to anf from. May be u should try this. Hopefully it works <BR>&#060;%<BR>Dim myMail<BR>Dim strFrom<BR>Dim strTo<BR>Dim strSubject<BR>Dim strMessage<BR>Dim strBody<BR>Dim lngImportance<BR><BR>strFrom="customer"<BR>strTo=" sreelaththa.sreekantan@mlj.com.my"<BR>strSubject = request.form("txtSubject")<BR>strBody=request.form ("txtMessage")<BR> <BR>Write("strFrom = " & strFrom)<BR>Write("strTo = " & strTo)<BR>Write("strSubject = " & strSubject)<BR>Write("strMessage = " & strBody)<BR>Write("Importance = " & lngImportance)<BR><BR>Set myMail = CreateObject("CDONTS.NewMail")myMail.SendstrFrom,s trTo,strSubject,strMessage,lngImportance<BR>Set myCDONTSMail = Nothing<BR>Write "Mail has been sent."<BR>%&#062;<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