• The phpmailer class has functions for external and internal attachments; while the wp_mail function does not support any. The problem in using these funtions is the path or file name.

    Since my code operates from my server the local file name from
    <INPUT type=file> can not be used.

    Also for internal images all I have is a cid name. What is a cid? It does not appear to be a vaild file name for the image. Here I use the HTML email text to access the src field of the image, which is a cid.

    Any help is appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi tsbalaban,

    could you explain with some detail what you are trying to do?

    Normally PHPMAILER needs a valid local filename, the input field is for using remote files. A cid is an identifier, you can say a number or token per image (attachment).

    Thread Starter tsbalaban

    (@tsbalaban)

    My original email message is in Outlook Express, the Source tab (HTML). I email using wp_mail with clearAttachment commented out. I send to many addresses and it works! I receive test email containing formatted text. What I miss is imbedded images. I use phpmailer->AddEmbeddedImage and use a cid as a file name; but it doesn’t work. Also I wish to receive external files as attachments. I tried phpmailer->AddAttachment; but the file name is local and is_file in the function works for a remote server file.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Email attachments using phpmailer class’ is closed to new replies.