I tried sending an E-mail using the MAPISendMail. The mail sits/lies in my outbox as unsent. Then I have to open the E-mail in the outbox, double-click the recipient in the 'TO' box and change the E-mail option as "SMTP" from Internet, THen the mail goes off. What should I do in the coding to reflect this change. Please see the code belwo I am using
/* Register the Windows OS function MAPISendMail(), callable as SendOneEMail */
MapiRecipDesc = "32u, 32u, str *, str *, 32u, void"
MapiMessage = "32u, str *, str *, void, str *, void, 32u, struct MapiRecipDesc *, 32u, struct MapiRecipDesc *, 32u, void"
FUNCDEF("SendOneEMail", "32u, void, void, struct MapiMessage, 32u, 32u", "mapi32", "MAPISendMail")
/* Register the Windows OS function MAPILogon() */
FUNCDEF("MAPILogon", "32u, void, str, str, 32u, 32u, void stor", "mapi32")
/* Register the Windows OS function MAPILogoff() */
FUNCDEF("MAPILogoff", "32u, void, void, 32u, 32u", "mapi32")
2 2850
I tried sending an E-mail using the MAPISendMail. The mail sits/lies in my outbox as unsent. Then I have to open the E-mail in the outbox, double-click the recipient in the 'TO' box and change the E-mail option as "SMTP" from Internet, THen the mail goes off. What should I do in the coding to reflect this change. Please see the code belwo I am using
/* Register the Windows OS function MAPISendMail(), callable as SendOneEMail */
MapiRecipDesc = "32u, 32u, str *, str *, 32u, void"
MapiMessage = "32u, str *, str *, void, str *, void, 32u, struct MapiRecipDesc *, 32u, struct MapiRecipDesc *, 32u, void"
FUNCDEF("SendOneEMail", "32u, void, void, struct MapiMessage, 32u, 32u", "mapi32", "MAPISendMail")
/* Register the Windows OS function MAPILogon() */
FUNCDEF("MAPILogon", "32u, void, str, str, 32u, 32u, void stor", "mapi32")
/* Register the Windows OS function MAPILogoff() */
FUNCDEF("MAPILogoff", "32u, void, void, 32u, 32u", "mapi32")
Is your IIS service running on your machine?
Is your IIS service running on your machine?
IIS? Please expnad your question
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Mike |
last post by:
Is there a way to determine what a user's default email client is? I
read a post from 3 years ago that said no. I guess I'm hoping
something has come along since then.
|
by: MikeM |
last post by:
The email address stays through each loop and keeps adding the next
email address. joe@email.com then the next run would be joe@email.com;
mike@email.com etc... The subject and the attached file...
|
by: Karl Roes |
last post by:
Hi all,
I am after some suggestions on ways to email an errorlog table. I have
been working on remote interfaces and would like the users to email
the errorlog back to me at the push of a button...
|
by: handokowidjaja |
last post by:
Hi All,
Several weeks ago i started a topic with the same subject, however the
solutions provided was for using MS Outlook (fullblown version). I
finally found something that works directly with...
|
by: MLH |
last post by:
130 Targets(0) = "smtp:CRCI@NorthState.net"
135 MySubject = "Some relevant subject"
140 MyBodyText = "Blah, blah, blah"
150 Call SendMailWithOE(MySubject, MyBodyText, Targets)
...
|
by: MLH |
last post by:
130 Targets(0) = "smtp:CRCI@NorthState.net"
135 MySubject = "Some relevant subject"
140 MyBodyText = "Blah, blah, blah"
150 Call SendMailWithOE(MySubject, MyBodyText, Targets)
...
|
by: rogeriol |
last post by:
Hi, iŽd like to know if somebody knows how to get the emails from the
inbox of outlook express, get the name of the files atached to it, and
send it to other people depending on the file sent. I...
|
by: Danny |
last post by:
Hi
Am trying to send emails via simple mapi. The application will be running
on a machine which has outlook 2003 installed. My test app works but the
file email is placed in the outbox within...
|
by: zivon |
last post by:
now for the bigger problam :)
I know you pepole hate using OE for sending emails, but its user friendly and its needed in this case...
I found on this forum, a code that sends email using OE...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| | |