Changing from address but not sender account with outlook PropertyAccessor - email

I am trying to send from a specific outlook account using SendUsingAccount, but then I want to change the From address so it shows a different address to that of the sending account.
So I am doing the following:
Mail.SendUsingAccount := Outlook.session.accounts.item(SenderAccount);
mail.propertyAccessor.SetProperty('http://schemas.microsoft.com/mapi/proptag/0x0C1F001E', senderAddress);
Mail.send
Mail is an olMailItem.
The setProperty function is not raising an exception, however, the from address for the email is being shown as he email address of the sender account.

Related

SAP BW SMTP unique sender

I've configured SMTP on BW4HANA.
Everything works correctly only if the user that send the email have a certain email setted in SU01 (Example: testemail#test.com), if an user, with a personal email setted in SU01, try to send an email receive an error like "...not authorized to send as...".
What i want is that every user have their own personal email setted in SU01 but when they send an email this will be send using testemail#test.com. Basically i want that every email will be send with testemail#test.com address even if the user that send the email have another email setted in SU01. it's possible ? how ? can the parameter SMTP_TECH_SENDER help in this ?

Godaddy email forwarders not working when sending from php mail

I have an email forwarder set up on my GoDaddy account, which works fine when sending from an individual email account, but when I sent to it from a PHP script, it never gets received.
Here are a few additional details (I feel like the first two items here might be key in figuring out the answer):
The email forwarder is on a GoDaddy account with a domain name. The Website for this domain name is hosted on another godaddy account. The nameservers set on the Domain name account are the default name servers (The website is working properly, because both accounts are GoDaddy).
I have tried setting the email forwarder up on the hosting account instead of the domain name account. Interestingly, the email then does receive emails from php mail, but it does not receive emails sent directly from an email account. Instead, I get the error message "Your message wasn't delivered to name#xxx.com because the address couldn't be found, or is unable to receive mail."
I can successfully send an email to any other email account from the same php script, so the problem is not my php mail function
I had made some changes to MX records at one point, but then changed them back. A GoDaddy support tech said that they were correct and should work
I've spent lots of time with Godaddy support, they said that they can not help me since the email forwarder is "working" when sent from a regular email account.

Can Thunderbird choose the correct account?

I have a question about sending a mail with mozilla thunderbird. I have several email-addresses and i want thunderbird to choose a certain account when i send an email to a certain recipient.
For example I have two accounts: mail#myaddress.com and mail#anotheraddress.com
If I send an email thunderbird uses per default mail#myaddress.com. So far so good. Sometimes I have to send an email to companies, where I have to use mail#anotheraddress.com as sender address. If I forget to switch the account theses companies get mails from the wrong mail address. Is there a way to connect a recipient emailaddress to an certain account?
You can compose email using command line:
"preselectid" : an identifier for the "From" identity to choose from the menu*
note that you cannot directly specify an e-mail address but need to find the identity key
for example, "preselectid=id2" would select the identity #2
Reference:http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29

How do I make the Drupal default From: e-mail different than the email of the user who receives system e-mails?

I am creating a site that requires admin approval before creating a user account. In Site Information settings I have set the site's e-mail address to "noreply#mysite.com"
New registrants request an account and they correctly get an e-mail From:noreply#mysite.com
No problems there.
However, the useful "Approve New User" e-mail also gets sent to "noreply#mysite.com" when I need it to go to "me#mysite.com." The noreply address is strictly a garbage address I will never check.
So, how do I set up a different email for the default "From:" address and the default system alert e-mail recipient address?
You can use Drupal's hook_mail_alter to intercept the email that gets sent to noreply#mysite.com send it to the desired email address. http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_mail_alter/6
It's also possible to do this kind of customization using Triggers and Actions:
http://drupal.org/node/199254
http://drupal.org/documentation/modules/trigger
There is a module, User Registration Notification, that does what I needed. Keep the site e-mail "no-reply" and change the To: value in the module to "me".
User registration notification

MailApp.sendEmail method doesn't get through to accounts with URL in the body - Message Blocked

I am working on Google Apps Script. I am trying to send email as follows:
function test_sendmail(){
var subject = "subject";
var body = "https://www.google.com/";
var emailBody = body;
var options = {
htmlBody: body
}
var recipient = "XXXXXXXXX#gmail.com";
MailApp.sendEmail(recipient, subject, emailBody, options);
}
"XXXXXXXXX#gmail.com"(email address A) is not valid, but it's only for showing you an example. I use a real email address in the GAS execution.
The GAS execution is run by another G-suite domain google account(email address B) by which account the code is written.
The email address A has editing rights to the spreadsheet that has the above code in the GAS editor.
But, the email from the above function doesn't get through the email address A. I got this email in the email address B.
LEARN MORE:
https://support.google.com/mail/answer/6596?visit_id=637267406328019079-2003975007&rd=1
Then, I replace the email address with the email address B. and I tried to send it, and it did get through successfully.
Secondly, I changed the URL part:
var body = "https://www.google.com/";
to:
var body = "";
Then, the email successfully get through to both email addresses A and B.
The results listed as below:
The failure of sending email with URL to email address like the email address A has occurred recently like from 1 week or 2 weeks ago. Until then, the 4 cases had been successfully done before. I have no idea why this started happening recently.
I checked if the sender email address B is in the contact list of the recipient email address A.
It is not in my contacts.
But when I searched it, it appeared, so it seems in all contacts.
Added 1:
I tried sending email to the email address C which is another G-suite mail address in the same domain as the email address B, but email address C doesn't have rights to the spreadsheet and the editor.
It sent to the email C successfully even it has no right to the spreadsheet.
Added 2:
I tried sending email to the email address D which is other email address that is neither G-suite domain or #google.com address. The result is the same as the email address A.
Gmail anti-spam algorithms are complex. To prevent that the messages sent by your script being blocked by them, follow the guidelines on Prevent mail to Gmail users from being blocked or sent to spam
Possible Workaround
One of my clients had the same issue, I replaced MailApp.sendEmail(message) by GmailApp.sendEmail(recipient,subject,body,options) apparently this worked (No bounce messages after 10 minutes)
Rafa Guillermo added in a comment:
Just want to add that in this case if this is an ongoing issue you should get your admin to contact G Suite support
If you hasn't access to G Suite Support I think that you could report this issue to Google by using Google Feedback (Open Gmail web UI > click the settings button (gear icon) > Send feedback)
Related
MailApp.sendEmail() in Google Apps Script not sending email (it looks that this is first Q/A about this issue that also suggest replace MailApp by GmailApp)
Message blocked when sending email from Google Script