automatic mail

Results 1 to 2 of 2

Thread: automatic mail

  1. #1
    Join Date
    Dec 1969

    Default automatic mail

    Hi everybody,<BR>&#060;% <BR> set obJMail = server.createobject("CDONTS.newmail")<BR> objMail.From = ""<BR> .<BR> .<BR> objMail.Send<BR> set objMail = nothing<BR>%&#062;<BR><BR>The above code is working fine. See the following code<BR>&#060;% <BR> set obJMail = server.createobject("CDONTS.newmail")<BR> objMail.From = "Web Master"<BR> .<BR> .<BR> objMail.Send<BR> set objMail = nothing<BR>%&#062; <BR>If i put "Web Master" instead of "", the mail is not going to specified address. It is not giving any error. Means i want sent a mail without specifying from address. Pl. help me.<BR><BR>regards<BR>Vivek<BR>

  2. #2
    Join Date
    Dec 1969

    Default This is because...

    CDONTS won&#039t let you send an email without a From Address. Sorry. If you want it to appear like it&#039s coming from Web Master (as they user sees it in his/her email client) and also have the email addy (so they can reply to it or whatnot), use:<BR><BR>objJMail.From = " (Web Master)"<BR><BR>HTH. Happy Programming!

Posting Permissions

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