• Resolved andy2201

    (@andy2201)


    I am having trouble figuring out the correct code to change the “From” parameter and add a “Cc” parameter. The documentation states the following ( see below), but nowhere could I find the actual code for “From” or “Cc” parameter.

    Any clarification is appreciated as I have tried countless codes variations, but none seem to work. Apologies if I missed something obvious in the documentation or forum, but I spend a lot of time searching and can’t seem find the right info.

    notifyheaders: This attribute defines additional headers to be included in the notification email (e.g. set “From”, “Cc” and “Bcc” parameters or use HTML code instead of text). Default value is “”. For example, in order to send HTML email please set this attribute to “Content-type: text/html”.

    Thanks,

    Andrew

    https://ww.wp.xz.cn/plugins/wp-file-upload/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi,

    Have you tried this?

    notifyheaders="From: [email protected]"

    Nickolas

    Plugin Author nickboss

    (@nickboss)

    In continuation of the previous message, the code notifyheaders=”From: [email protected]” must be put inside the shortcode.

    Thread Starter andy2201

    (@andy2201)

    This works partially. It changes the sender to [email protected] ( obviously I use my own actual email address ) within the details/header of the message, but under my “From” column in my email browser it still shows WordPress as the sender – which I would prefer to change as I want to cut down on the risk of my mail ending up in a Junk/Spam Folder.

    By chance I tried notifyheaders=”From: [email protected],[email protected]

    This helped a bit in that it put my email address under the From column of my email browser, but it was still preceded by the word “WordPress”.
    i.e. “WordPress,[email protected]” now appears as the sender in the From column.

    Ideally I would like to get rid of “WordPress” and have just my email address appear.

    Any more suggestions are appreciated – thanks for you help,

    Andrew

    Thread Starter andy2201

    (@andy2201)

    An additional note to my last post – I primarily use the GoDaddy mail browser and notifyheaders=”From: [email protected],[email protected]” does indeed add my email address after WordPress under the From column, however I just checked my Gmail account that also receives a copy of my mail and unfortunately this trick does not work. It still shows the email as being from “WordPress” under the From column and “WordPress <[email protected]>” in the details of the message.

    Andrew

    Try

    notifyheaders="From: Andy <[email protected]>"

    Just a guess.

    Thread Starter andy2201

    (@andy2201)

    Thanks everyone for your suggestions. I ended up finding this additional plugin and it seems to easily do the trick:

    https://www.tipsandtricks-hq.com/wordpress-plugin-change-wp-email-from-details-1883

    I will let you know should I run into any conflicts, but the first test seemed to work well.

    Best regards,

    Andrew

    If you run into problems in the future with email not appearing in your inbox, or your user’s (cc:) inbox, or going into spam, you’ll need a more powerful mail plugin than that one. Let us know.

    Plugin Author nickboss

    (@nickboss)

    As Postman SMTP suggested, notifyheaders=”From: Andy <[email protected]>” will set the email and the name of the sender correctly.

    Then sender’s email declared in From header must be a valid and existing one because some email servers reject the emails from being sent if the sender’s email is not valid.

    Nevertheless, wordpress file upload plugin is not an email sending plugin, it has basic email provisions. If something more complex is required (like custom SMPT email sending) then it can be combined with other more specialized plugins.

    Nickolas

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

The topic ‘From and Cc notifyheaders parameters – what is the correct code?’ is closed to new replies.