473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Email using MAPISendMail,

3
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")
Oct 19 '06 #1
2 2850
willakawill
1,646 1GB
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?
Oct 19 '06 #2
bambi
3
Is your IIS service running on your machine?
IIS? Please expnad your question
Oct 21 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

88
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.
0
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...
3
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...
1
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...
8
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) ...
1
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) ...
1
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...
1
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
tracyyun
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...
0
agi2029
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 project—planning, coding, testing,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.