Solved

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

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

I tend toward trying the newest hardware and software.  Thiss sometimes works out to my benefit, and sometimes not.  Because I downloaded and installed Android 5.x (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.htm…
This is my first article on Expert Exchange on the Manual Method of Exporting Office 365 Mailboxes to PST format by using the eDiscovery mechanism of Office. Hope you will enjoy the article.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

943 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now