Solved

Get back Message-Id when sending mail via SMTP in PHP

Posted on 2007-04-06
1
344 Views
Last Modified: 2010-08-05
I have webserver which uses external SMTP for sending mail.
(SMTP server runs Windows-HMail server )

Now I'd like to send from the script e-mail and to know what is the Message-Id of sent e-mail on the server.
If I know I can find message later on the mail-server.
But when I use PHPMailer I get back only 1 when sending is succesful.
How can I get also Message-Id ( if it is possible )  ?

0
Comment
Question by:APRESTOUS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Stacy Spear earned 500 total points
ID: 18864638
I know only two ways:

1. BCC: the message to a mailbox you can parse, and extract it from the messages there.

2. Add a self generated message-id to the headers and a lot of mail servers will accept that as valid. Try it out and see if it works.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question