View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
It's outside the scope of this site to provide instructions on how to configure the IIS SMTP server to relay email messages.  Please use the IIS documentation, or, use your regular SMTP server.  In general, we can't help you with problems that are unrelated to FoxWeb, such as the inability to send email via a particular SMTP server.
 
You should be able to find out the IP address of your SMTP server, but asking your ISP, or by looking in the configuration of your email client software (for example Microsoft Outlook, or Mozilla Thunderbird).  Once you figure out the address, you will need to use it to populate the Server property of the ASPSmartMail object.

FoxWeb Support Team
support@foxweb.com email

Sent by Larry Zhang on 12/28/2005 10:42:56 AM:
Thank you, but I really don't know how to set up IIS SMTP to relay email.  This is not working either within VFP
 

o=CREATEOBJECT('cdo.message')

o.From='lzhang@mymail.com'

o.To='lh_zhang@yahoo.com'

o.Subject='my test file'

o.TextBody= "testing....."

o.Send

How to use my regular SMTP server (the one that I'm using to send email from my email client application)?  Thanks a lot.
 
 
 
Sent by FoxWeb Support on 12/27/2005 07:42:54 PM:
Apparently you are running an SMTP server on your FoxWeb PC (probably IIS SMTP server), but it is not configured to relay email.  Your script would probably work if you set mySmartMail.Server to "localhost", but you may also have to modify the IIS configuration.  Alternatively you can use your regular SMTP server (the one that you are using to send email from your email client application).

FoxWeb Support Team
support@foxweb.com email

Sent by Larry Zhang on 12/27/2005 08:52:59 AM:
I tried to use ASPSmartMail to send email. But hit an error on the recipients.add line:
 
OLE IDispatch exception code 0 from aspSmartMail.SendMail : Error 40: Error when check Recipient address : 550 5.7.1 Unable to relay for lhzhang@hotmail.com ..
 
Is it because I did not install ASPSmartMail control? If so, where should I get the control? Thank you.
 
 
<%
 mySmartMail =CREATEOBJECT("aspSmartMail.SmartMail")
 mySmartMail.Server = "NJ-LZHANG.xyz.com"     && my PC name
 mySmartMail.SenderName = "My Name"
 mySmartMail.SenderAddress = "lzhang@xyz.com"   && my default company email address
 mySmartMail.Recipients.Add("lhzhang@hotmail.com", "Friend's name")  && error on this line
 mySmartMail.Subject = "aspSmartMail Sample 1"
 mySmartMail.Body = "This mail has been sent with aspSmartMail."
 
 SendFailed = .F.
 OldErr = ON("ERROR")
 ON ERROR SendFailed = .T.
 mySmartMail.SendMail
 
ON ERROR &OldErr
 IF SendFailed
    Response.write("Failed to send e-mail.  The error message was:<br>" +MESSAGE())
 ELSE
     Response.write("An e-mail has just been sent to " + mySmartMail.Recipients.Item(1).Name)
 ENDIF
%>