Solved

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

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

821 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