Solved

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

Posted on 2007-04-06
1
345 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

Independent Software Vendors: 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

Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

707 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