Solved

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

Posted on 2007-04-06
1
330 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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction Ever had certain email messages or responses that you find yourself using over and over again? Do you use Google's Gmail system? If so, then this article is here to help you save time by teaching you how to create email templates from …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The purpose of this video is to demonstrate how to set up a Mailchimp Template which will let the user create a uniform look for all of their campaigns. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mail…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 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