schilly Posted May 8, 2009 Share Posted May 8, 2009 anyone know if this is possible? i would like to get the MESSAGE-ID header from an email sent through the mail cmd. i am guessing it's not possible and i would have to go directly through the mail server for this. any ideas? thx. Quote Link to comment https://forums.phpfreaks.com/topic/157414-solved-get-message-id-header-from-sent-email-through-mail/ Share on other sites More sharing options...
premiso Posted May 8, 2009 Share Posted May 8, 2009 You will most likely have to go through the mail server. If your server allows for it, you should be able to use IMAP to retrieve the email and headers etc. Quote Link to comment https://forums.phpfreaks.com/topic/157414-solved-get-message-id-header-from-sent-email-through-mail/#findComment-829831 Share on other sites More sharing options...
schilly Posted May 8, 2009 Author Share Posted May 8, 2009 ok so if i needed to send out an email through php and wanted to get the message-id afterwards, what would be the best way to do so? Quote Link to comment https://forums.phpfreaks.com/topic/157414-solved-get-message-id-header-from-sent-email-through-mail/#findComment-829844 Share on other sites More sharing options...
premiso Posted May 8, 2009 Share Posted May 8, 2009 ok so if i needed to send out an email through php and wanted to get the message-id afterwards, what would be the best way to do so? Set up an email account you can imap into, add a bcc to the mail you send and put the email you setup that you can imap into as the bcc. Then use imap to read the mail and grab the email you just sent. Complicated issue, but yea. Quote Link to comment https://forums.phpfreaks.com/topic/157414-solved-get-message-id-header-from-sent-email-through-mail/#findComment-829850 Share on other sites More sharing options...
schilly Posted May 8, 2009 Author Share Posted May 8, 2009 ok yea i was thinking something similar. i have an account set up that is piped to php already for reading responses so ill just bcc the replies to that address and grab the message-id that way. thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/157414-solved-get-message-id-header-from-sent-email-through-mail/#findComment-829864 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.