Home
Level Extreme platform
Subscription
Corporate profile
Products & Services
Login
FRANÇAIS
Home
FRANÇAIS
Level Extreme platform
Login
Best practices
Testimonials
Downloads
Articles
Subscription
Subscribe or renew
Benefits
Donate 5$
Donate 10$
Donate 15$
Donate 20$
Donate 25$
Corporate profile
Overview
Portfolio
Products & Services
Consulting services
Enterprise hosting
Web Site Hosting
Graphic design
Book publishing
Support
Troubleshooting
Problem with logins
Contact us
Legal
Copyright
Privacy policy
Terms & Conditions
Français
Email with Attachment without using Outlook
Message
From
23/07/2004 16:42:04
Warren Murphey, Jr.
Mechanicsville
,
Virginia
,
United States
To
10/07/2004 17:32:35
Ravi Taxali
Markham
,
Ontario
,
Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Re:
Email with Attachment without using Outlook
Miscellaneous
Thread ID:
00923038
Message ID:
00927462
Views:
31
If you have access to SMTP, you can do the following:
The only issue is that the oSMTP.From can not be blank.
oSMTP = CREATEOBJECT("cdo.message")
oSMTP.To = THISFORM.txtTo.VALUE
oSMTP.From = THISFORM.txtFrom.VALUE
oSMTP.Subject = THISFORM.txtSubject.VALUE
oSMTP.TextBody = THISFORM.edtMessage.VALUE + CHR(13) + CHR(13)
IF THISFORM.txtNumAttachments.VALUE > 0
oSMTP.AddAttachment(THISFORM.Attachment1)
ENDIF
oSMTP.Configuration.Fields.Item ;("
http://schemas.microsoft.com/cdo/configuration/sendusing
").VALUE = 2
oSMTP.Configuration.FIELDS.Item ;("
http://schemas.microsoft.com/cdo/configuration/smtpserver
").VALUE ;
= "169.155.24.4"
oSMTP.Configuration.FIELDS.Item ;("
http://schemas.microsoft.com/cdo/configuration/smtpserverport
").VALUE = 25
oSMTP.Configuration.FIELDS.UPDATE
oSMTP.Send()
RELEASE oSMTP
The oSMTP.Configuration.FIELDS.Item("
http://schemas.microsoft.com/cdo/configuration/smtpserver
").VALUE = is the SMTP server IP Address.
Any questions please let me know.
Thanks,
Warren Murphey
Previous
Next
Reply
Map
View the map of this thread
View the map of this thread starting from this message only
View
View all messages of this thread
View all messages of this thread starting from this message only
Click here to load this message in the networking platform
Level Extreme platform
Best practices
Testimonials
Downloads
Articles
Subscription
Subscribe or renew
Benefits
Donate 5$
Donate 10$
Donate 15$
Donate 20$
Donate 25$
Corporate profile
Overview
Portfolio
Products & Services
Consulting services
Enterprise hosting
Web Site Hosting
Graphic design
Book publishing
Support
Troubleshooting
Problem with logins
Contact us
Legal
Copyright
Privacy policy
Terms & Conditions
Login
Google
Copyright © 1993-2024 by Level Extreme Inc. All rights reserved · Website by
levelextreme.com