Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CDO Email with VFP
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00749445
Message ID:
00751770
Vues:
32
>You code gives the error "The server rejected one or more recipient address - not local host, nota gateway"

This code works for me from ASP:
<% Set objEmail = Server.CreateObject("CDONTS.NewMail") 
'Create an object for the component with ProgID CDONTS.NewMail 
objEmail.From = "fromemail@yourserver.com" 
'Enter the address of who the email will be sent from. 
objEmail.To = "toemail@yourserver.com" 

'Enter the address of who the email will be sent to. 
objEmail.Subject = "Test e-mail from ASP" 
'Enter the subject of your email. 
objEmail.Body = "The body of the email." 
'Enter the Body of the email. 
objEmail.BodyFormat = 1    '1 = plain text, 2 = HTML 
'This tells what type of format the email will be sent in. 
objEmail.MailFormat = 1    '1 = text message, 0 = MIME Formatted 
'This tell if the email will be just plain text of if it is in HTML or if any attachments will be sent with the email. 
objEmail.Importance = 2 '0 = low, 1 = normal, 2 = high importance 
'This tells what level of importance or priority the email will be sent in. 
objEmail.Send 
'Send the email. 
Set objEmail = Nothing %>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform